On my laptop (win7 x64) it works, on my dev machine (win2003 x86) it doesn't. Any ideas?
Code: Select all
Macro CenterStringGadget(a)
SetWindowLong_(GadgetID(a), #GWL_STYLE, GetWindowLong_(GadgetID(a), #GWL_STYLE)|#ES_CENTER)
EndMacro
OpenWindow(0, 370, 321, 535, 227, "Employee Clock In/Out", #PB_Window_SystemMenu|#PB_Window_TitleBar|#PB_Window_WindowCentered|#PB_Window_SizeGadget)
Frame3DGadget(0, 355, 0, 175, 42, "[ Current Time ]")
StringGadget(1, 360, 18, 165, 20, "YYYY-MM-DD HH:MM", #PB_String_ReadOnly)
CenterStringGadget( 1 )
Repeat
Until WaitWindowEvent(10)=#PB_Event_CloseWindow