Label Controls
Posted: Sat Nov 24, 2007 2:41 am
How would you replicate a Visual Basic Label Control in PB
Code: Select all
If OpenWindow(0, 0, 0, 130, 25, "TextGadget Events", #PB_Window_SystemMenu|#PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
TextGadget(1, 5, 5, 120, 18, "See? I'm clickable...", #SS_NOTIFY)
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_CloseWindow : Break
Case #PB_Event_Gadget
If EventGadget() = 1
MessageRequester("Event", "TextGagdet Event received...")
EndIf
EndSelect
ForEver
End
EndIf
EndIf