PanelGadgetLabels

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by naw.

Anyone know of a way to change the *Labels* of a PanelGadget without redrawing the GUI?

Ta - NAW
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

This changes the label of the activ panel:
SetGadgetItemText(#PanelGadgetID,GetGadgetState(#PanelGadgetID),"newname",0)

This changes the label of the 5rd panel: (starting 0 ...)
SetGadgetItemText(#PanelGadgetID,4,"newname",0)


Cu
WolfgangS
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by naw.

Hey Thanks Wolfgang, Stupid me - I got so used to using the "-1" parameter to add panels, I totally forgot I could set a *real* position - duh! :wink:

Ta - N
Post Reply