Normal Topic Is there a command to hide a tabpage? (Read 1467 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Is there a command to hide a tabpage?
Jul 20th, 2011 at 10:23pm
Print Post Print Post  
I can set visibility of elements on the tabpage to 0. But that would be quite a few command lines. Just wondering if I could handle the task with single line command.
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Is there a command to hide a tabpage?
Reply #1 - Jul 21st, 2011 at 3:33am
Print Post Print Post  
Yes, there is a command for that. Check out HideTabPage() on page 268 of the Programming Guide.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Is there a command to hide a tabpage?
Reply #2 - Jul 21st, 2011 at 3:50am
Print Post Print Post  
Thanks Carl.
  
Back to top
 
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Is there a command to hide a tabpage?
Reply #3 - Dec 6th, 2011 at 2:12am
Print Post Print Post  
In ver 2.5.3, I don't see the TabPage group name spelled out anywhere in the 'application editor' or in sDesigner. Did it get moved or removed?

I was finally able to determine the TabPage name (LE3) by moving the tab page and then viewing the change log in sDesigner. An easier method is to press F5 in the Property Editor to display (and change) the Name.

Also, the 'page number to hide' took some guesswork. In order to hide 4 of 5 tab pages but keep the first page visible, I had to use this code:

HideTabPage(LE3,2)
HideTabPage(LE3,2)
HideTabPage(LE3,2)
HideTabPage(LE3,2)
forceRedraw()

It's working great now, but was oddly documented, compared to other Sesame programming steps.

Just fyi, in case you were looking for more things to tweak. Wink

Edit: Sorry, I meant to say: I checked Attributes Table but did not see 'LE3' spelled out anywhere.
  
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Is there a command to hide a tabpage?
Reply #4 - Dec 6th, 2011 at 7:12pm
Print Post Print Post  
Ughh...now I see 'Tab Set' with the name LE3 in the Attributes Table.  Undecided

Time to buy some eye-glasses, I guess.
  
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Is there a command to hide a tabpage?
Reply #5 - Dec 6th, 2011 at 7:33pm
Print Post Print Post  
Quote:
In ver 2.5.3, I don't see the TabPage group name spelled out anywhere in the 'application editor' or in sDesigner. Did it get moved or removed?



Is ver 2.5.3 out? When did it come out? Am I missing something?
  
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: Is there a command to hide a tabpage?
Reply #6 - Dec 6th, 2011 at 7:45pm
Print Post Print Post  
Bharat_Naik wrote on Dec 6th, 2011 at 7:33pm:
Is ver 2.5.3 out? When did it come out? Am I missing something?


Hello Bharat,

You're not missing anything. 2.5.3 is not released yet but a few people such as Steve have a Hotfix version of it to fix a particular problem in Client/Server.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Is there a command to hide a tabpage?
Reply #7 - Dec 6th, 2011 at 8:52pm
Print Post Print Post  
Thanks Ray for explanation. Just wondering when is ver 2.5.3 is going to be released? I am looking forward to have a couple of changes that Mark has made, one is @Calendar ( ) respecting @SelectPopUpPosition ( ) and other is RunEntryOnInterval() command change.
  
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: Is there a command to hide a tabpage?
Reply #8 - Dec 6th, 2011 at 9:34pm
Print Post Print Post  
Hello Bharat,

I am not sure on the release schedule of it, but I do know that it is in the works.

-Ray
  

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