Jump to content

Which GUICtrl I need?


Ozzy
 Share

Recommended Posts

Hi all,

I need to show a log of every action performed by my script, control's text must be fixed (not editable) and control needs to be scrollable...

Which must I use?

Is it possible to disable editing text in a edit control leaving scrolls enabled?

Is it possible to apply to a lable a scroll?

Link to comment
Share on other sites

Hi all,

I need to show a log of every action performed by my script, control's text must be fixed (not editable) and control needs to be scrollable...

Which must I use?

Is it possible to disable editing text in a edit control leaving scrolls enabled?

Is it possible to apply to a lable a scroll?

I recommend that you have a look at Koda in the sticky at the top of Graphical User Interface Help And support. It makes all these things very easy.

#include <guiconstants.au3>

$g = GUICreate("")
$Edit1 = GUICtrlCreateEdit("", 32, 144, 185, 89, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_READONLY,$ES_WANTRETURN,$WS_HSCROLL,$WS_VSCROLL))
GUICtrlSetData($Edit1,FileRead(@ScriptFullPath))
GUISetState()
while 1
$m = GUIGetMsg()

switch $m
    case -3
     Exit
EndSwitch
    
WEnd
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

I recommend that you have a look at Koda in the sticky at the top of Graphical User Interface Help And support. It makes all these things very easy.

#include <guiconstants.au3>

$g = GUICreate("")
$Edit1 = GUICtrlCreateEdit("", 32, 144, 185, 89, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_READONLY,$ES_WANTRETURN,$WS_HSCROLL,$WS_VSCROLL))
GUICtrlSetData($Edit1,FileRead(@ScriptFullPath))
GUISetState()
while 1
$m = GUIGetMsg()

switch $m
    case -3
     Exit
EndSwitch
    
WEnd
Thanks!

I tried with it but Koda doesn't love me so much! :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...