Re: Icon in input
"valery_vi" <[email protected]> Wed, 15 Aug 2007 05:27:43 -0000
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
magician13134 wrote:
http://www.autoitscript.com/forum/index.php?showtopic=51183
"
Oh! I got it! It's an Exstyle... $WS_EX_TOOLWINDOW... Cool.
"
Really cool.
Thus, AutoIt Input Gui can have the following form:
#include <GuiConstants.au3>
$Gui = GuiCreate("Input Box", 260, 100)
;set other GUI icon...
GUISetIcon(@AutoItExe,2)
GUICtrlCreateLabel("", 15, 39, 230, 20, $SS_SUNKEN)
GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlSetBkColor(-1, 0xFFFFFF)
GUICtrlCreateIcon(@AutoItExe, -1, 18, 41, 16, 16)
GUICtrlCreateInput("", 45, 42, 190, 14, -1, $WS_EX_TOOLWINDOW)
GUISetState()
While 1
$Msg = GUIGetMsg()
Switch $Msg
Case -3
Exit
Case Else
EndSwitch
WEnd
Valery