kylomas Posted December 4, 2017 Share Posted December 4, 2017 When I populate an edit control before GuiSetState() the data in the edit control is highlighted (selected?). When I run GuiSetState() before populating the edit control the data is NOT highlighted. Is this expected behavior? #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Local $gui010 = GUICreate('Static CTL Example') Local $edt010 = GUICtrlCreateEdit('', 10, 10, 380, 380, BitOR($ES_READONLY, $WS_VSCROLL)) GUISetState() For $1 = 1 To 300 GUICtrlSetData($edt010, 'Line ' & StringFormat('%04i', $1) & @CRLF, 1) Next ;GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd kylomas Skysnake 1 Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Danyfirex Posted December 4, 2017 Share Posted December 4, 2017 I think is expected. It happens to me in C# too. Saludos Skysnake 1 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
kylomas Posted December 4, 2017 Author Share Posted December 4, 2017 Thx Danyfirex... Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now