Normal Topic OnTabPage Events (Read 576 times)
obfusc88
Full Member
***
Offline


No personal text

Posts: 194
Joined: Dec 17th, 2005
OnTabPage Events
Oct 9th, 2007 at 10:43pm
Print Post Print Post  
How can I make an event trigger when the Tab Index is clicked?  I have added a single Text element, and a single Boolean element, and a single command button.  I have put in programming for each of those in OnElementEnter, On ImmediateChange hoping that the element would immediately get the focus and trigger some programming code but noe of these work.  The all require an additional mouse click or keypress, etc.

Another thing about Tab Pages is how to change the name?  I can change the labels. but I wanted to number the tabs so I can run a loop to change TabPage label names.  If th names are TabPage1, TabePage2, etc, then I can name them so I can process using a counter value with the names.  But the TabPages get numbered i the order that they are created so those numbers are pretty random.  I can have multiple tabelements on the same form, but if I add another page to TabElementA, and then add new page to TabElementB then I have a different set of TabPage#s on each TabElement.

In my file if I have Tabs labeled A,B,C,D.....Z and want the labels to shift and wrap around so the first tabs are labeled H,I,J......G, then I have to make 26 separate Attribute commands vs. a simple loop because I cannot control the names of the Tab Indexes

And this is an exmple of why I want to execute program when Tab Index is clicked.  I can use command buttons vs. tabs but want the appearance of Index Tabs   And it would also be ggod to allow Width of each  Indexe can only control now by using space characters to center Label and pad the width

  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2492
Joined: Aug 20th, 2003
Re: OnTabPage Events
Reply #1 - Oct 10th, 2007 at 2:09pm
Print Post Print Post  
If you are using 2.0, Have you tried using the On Reveal event of an element that is on a Tab Page? That is one of the main reasons they were added.

Tab page names are static and can not be changed.

You can still use a loop to do the attributes. What you are going to need to do is have a string array that has in it all 26 Tab page names. Then your loop will loop through that and get the appropriate tab page name

-Ray
  

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


No personal text

Posts: 194
Joined: Dec 17th, 2005
Re: OnTabPage Events
Reply #2 - Oct 16th, 2007 at 10:03pm
Print Post Print Post  
I used teh OnReveal to make this work.  But I could not find the TabPages to load the program code that I wanted to run.  I decsided to add a text box with nothing in it and put the code i there.  It will be good to use some of the new commands in the version 2.  And now this problem works good.  Thank you to Ray the Reaper
  
Back to top
 
IP Logged