If I try this on a TextGadget, it ends up changing the pointer for ALL TextGadgets, not just the one I specified. What am I doing wrong? See below:
Code: Select all
OpenWindow(1, 0, 0, 270, 460, "HyperlinkGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ;And CreateGadgetList(WindowID(0)) ;Only needed for PB4.20 and older.
TextGadget(2,50,50,50,50,"hello",#SS_NOTIFY)
TextGadget(3,100,100,50,50,"hello",#SS_NOTIFY)
TextGadget(4,200,200,50,50,"hello",#SS_NOTIFY)
hCursor1 = LoadCursor_(#Null, #IDC_HAND)
SetClassLong_(GadgetID(3),#GCL_HCURSOR,hCursor1)
Repeat
event=WindowEvent()
Until event = #PB_Event_CloseWindow