Normal Topic changing TabPage label from Sbasic (Read 279 times)
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
changing TabPage label from Sbasic
Nov 4th, 2011 at 4:30pm
Print Post Print Post  
I am constantly using the Attribute command to change element labels based on conditions, but until now I cannot remember ever needing to change a tabpage label before.

I am trying to change the tabpage element label for LE1,2 - When I try adding the comma 2 to the standard method it gives me an error when I test the code.

Is there a technique I can use to change tabPage labels on the fly?

(maybe wrapping the Le1,2 in parentheses so it looks  as 1 number or something)
Thanks
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: changing TabPage label from Sbasic
Reply #1 - Nov 4th, 2011 at 6:16pm
Print Post Print Post  
Hello Robert,

You will want to use the TabPage itselfs name for the Attribute() call, not the Tab Group.

Click on the Tab Page you want to relabel in Sesame Designer
Switch to the Other tab of the Property Viewer
Note the name specified. Probably something like TabPage1

Your code would be similar to this
Code
Select All
#Include "sbasic_include.sbas"

	Attribute(TabPage1, ATTR_ID_LABEL, "My New Label")
	ForceRedraw() 




-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged