1 | #cs ---------------------------------------------------------------------------- |
---|
2 | |
---|
3 | AutoIt Version: 3.3.0.0 |
---|
4 | Author: TayouFabrice |
---|
5 | |
---|
6 | After creating a GUICtrlTreeView the GUI take focus it is a problem for an app |
---|
7 | whish start on Background and dosn't want ot get focus before being visible |
---|
8 | i have put sleep ( ) at line 21 to shaw that gui is not visible but has allready |
---|
9 | focus. This problem is serious |
---|
10 | #ce ---------------------------------------------------------------------------- |
---|
11 | |
---|
12 | |
---|
13 | #include <GUIConstantsEx.au3> |
---|
14 | #include <TreeViewConstants.au3> |
---|
15 | #include <WindowsConstants.au3> |
---|
16 | #Region ### START Koda GUI section ### Form= |
---|
17 | $Form1 = GUICreate("Form1", 633, 447, 192, 215) |
---|
18 | ConsoleWrite ( "> GUI is created but have no focus"&@CRLF) |
---|
19 | Sleep ( 6000) |
---|
20 | $TreeView1 = GUICtrlCreateTreeView(96, 32, 345, 273) |
---|
21 | ConsoleWrite ( "> GUI has already focus"&@CRLF) |
---|
22 | Sleep ( 6000) |
---|
23 | GUISetState(@SW_SHOW) |
---|
24 | #EndRegion ### END Koda GUI section ### |
---|
25 | |
---|
26 | While 1 |
---|
27 | $nMsg = GUIGetMsg() |
---|
28 | Switch $nMsg |
---|
29 | Case $GUI_EVENT_CLOSE |
---|
30 | Exit |
---|
31 | |
---|
32 | EndSwitch |
---|
33 | WEnd |
---|
34 | |
---|