Jump to content

GuiCtrlSetData Inconsistency?


kylomas
 Share

Recommended Posts

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

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

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...