Code: Select all
date$=FormatDate("%mm/%dd/%yy", Date())
workoutdate$=InputRequester("Enter The Date For The Workout","",date$)
if workoutdate$<>""
else
endif
Code: Select all
date$=FormatDate("%mm/%dd/%yy", Date())
workoutdate$=InputRequester("Enter The Date For The Workout","",date$)
if workoutdate$<>""
else
endif
Code: Select all
!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
Code: Select all
If OpenWindow(1,300,250,400,200,#PB_Window_SystemMenu,"Window")
CreateGadgetList(WindowID())
ButtonGadget(1,50,50,60,25,"test")
Repeat
ev=WaitWindowEvent()
If ev=#PB_Event_Gadget
a$=InputRequester("title","message","default")
EndIf
Until ev=#PB_EventCloseWindow
EndIf
Code: Select all
!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
Your above code works fine for me.. specs below (win2k)PB wrote:Localmotion, to bring your window back to the front after using the requester
just call SetForegroundWindow_(WindowID()) and it should do it. Also, did my
example above work properly for you? I'm curious as I've never had this bug
with PureBasic at all.