Re: Problem with a GUICtrlCreateUpdown in Windows 2000
"valery_vi" <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
Test it:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$TEST = GUICreate("TEST", 255, 91, 197, 115)
$Input1 = GUICtrlCreateInput("0", 26, 28, 36, 21)
$Updown1 = GUICtrlCreateUpdown($Input1, BitOR
($UDS_WRAP,$UDS_ALIGNRIGHT))
GUICtrlSetLimit($Updown1, 59, 0)
$Hide = GUICtrlCreateButton("Hide", 87, 27, 53, 21, 0)
$Show = GUICtrlCreateButton("Show", 162, 27, 53, 21, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Hide
GUICtrlSetState ($Input1, $GUI_HIDE)
; GUICtrlSetState ($Input1, $GUI_DISABLE)
GUICtrlSetState ($Updown1, $GUI_HIDE)
; GUICtrlSetState ($Updown1, $GUI_DISABLE)
Case $Show
; GUICtrlSetState ($Input1, $GUI_ENABLE)
GUICtrlSetState ($Input1, $GUI_SHOW)
; GUICtrlSetState ($Updown1, $GUI_ENABLE)
GUICtrlSetState ($Updown1, $GUI_SHOW)
Case $Updown1
MsgBox(0, "test", "test updown")
EndSwitch
WEnd
It works for me.
Valery
--- In [email protected], "txkm1073wm" <txkm1073wm@...>
wrote:
>
> I am using an updown to walk through an array. When I test it on
my
> home computer with XP its works fine. When I use it at work with
2000
> it does not work. The message box will not even pop up when I
click on
> the up down buttons. Like in the example below. The numbers will
> increment in the input box but it will not trigger the code that I
have
> to walk through the array in a different input box.
>
> Case $msg = $updownControl
> MsgBox(0, "test", "test updown")
>
> Is some kind of as nofity option that I am miss?
>