How to rename tabs?
-
TheVelvetTeddyBear
- New User

- Posts: 4
- Joined: Tue May 27, 2003 9:49 pm
How to rename tabs?
says it all in the topic, i have 5 tabs, and i need to be able to rename anyone of them at any time, i cant find how.
This could work.
Code: Select all
TabNumber = 1
Text$="TabText"
TabParameter.TC_ITEM
TabParameter\mask = #TCIF_TEXT
TabParameter\pszText = @Text$
SendMessage_(GadgetID(#Gadget), #TCM_SETITEM, TabNumber, @TabParameter)
RedrawWindow_(GadgetID(#Gadget), 0, 0, #RDW_INVALIDATE )
Last edited by Berikco on Sat May 31, 2003 4:39 pm, edited 1 time in total.
LOL ... it's much easier to just use native PB commands:
SetGadgetItemText(#Panel,tabindex,"Text",0)
#Panel is the constant of your PanelGadget
tabindex is the tab you wish to change (first tab starting at 0)
So if you have a PanelGadget with 3 tabs and wish to change the last tab, the tabindex would be 2.
Enjoy
SetGadgetItemText(#Panel,tabindex,"Text",0)
#Panel is the constant of your PanelGadget
tabindex is the tab you wish to change (first tab starting at 0)
So if you have a PanelGadget with 3 tabs and wish to change the last tab, the tabindex would be 2.
Enjoy

