Label Controls
-
- Enthusiast
- Posts: 340
- Joined: Tue Apr 24, 2007 11:14 pm
Label Controls
How would you replicate a Visual Basic Label Control in PB
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
...or add #SS_NOTIFY to the flags (windows only)
Edit:
Edit:
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
Windows 7 & PureBasic 4.4