Normal Topic Tabs (Read 942 times)
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Tabs
Oct 8th, 2010 at 2:34pm
Print Post Print Post  
I have two tabs, with a command button on each, and a text box. I have the following code on-entry to the command buttons:

GotoTabPage(LE0,Tabpage0)
ThrowFocus(TabPage0)

I have tried both, can't get it to change tabs?? Help!!

Huh
  
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: Tabs
Reply #1 - Oct 8th, 2010 at 2:36pm
Print Post Print Post  
Try the following and let me know if it works

GotoTabPage(LE0, 1)

-Ray
  

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


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Tabs
Reply #2 - Oct 8th, 2010 at 2:52pm
Print Post Print Post  
No joy  Cry
  
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: Tabs
Reply #3 - Oct 8th, 2010 at 3:08pm
Print Post Print Post  
Are you sure the Tab Groups name is LE0?

To find it's name click on any tab in the tab group in Sesame Designer
Go to the Property Editor(Note: The Viewer will show you the tab page name which we don't want)
Click in the Name Field
Press the F5 key on your keyboard.
Is it LE0?

-Ray
  

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


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Tabs
Reply #4 - Oct 8th, 2010 at 4:01pm
Print Post Print Post  
Pressing F5 affirms it's "LE0"

TabPage 1 code:

GotoTabPage(LE0,1)//Don't work.Command Button 1 Tab-1
//ThrowFocus(Address) Works using this.

GotoTabPage(LE0,0)// Don't Work. Tab-2 Comand Button2
//ThrowFocus(Name) Works Using This.


  
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: Tabs
Reply #5 - Oct 8th, 2010 at 4:45pm
Print Post Print Post  
From TabPage1 the code to go to the second tab should be

GotoTabPage(LE0, 2)

From TabPage2 the code to go to the first tab should be

GotoTabPage(LE0, 1)

-Ray
  

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


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: Tabs
Reply #6 - Oct 8th, 2010 at 5:07pm
Print Post Print Post  
So tab pages are numbered in sequential order 1,2..... in reference to programming them?
  
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: Tabs
Reply #7 - Oct 8th, 2010 at 5:11pm
Print Post Print Post  
For use in commands such as GoToTabPage(), and HideTabPage(), Yes.
  

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