Ticket #1145: Test.au3

File Test.au3, 1.0 KB (added by tayou fabrice, on Aug 21, 2009 at 7:18:14 PM)

This file demontrate my Problem

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