Tabbing with tab control (OpenInsight 32-Bit)
At 18 MAY 2005 09:33:16AM Colin Rule wrote:
If I am on form with a tab control, and I use the tab key to step focus through the controls (in runtime), when the focus control goes to another page, the page becomes active, but the tab-control still remains on the first tab.
Is there anyway to get this to change.
I have added code for the PAGE event but the event does not get called when the system changes pages in this way… at least from what I can see.
Thanks
At 18 MAY 2005 11:12AM ftomeo@srpcs.com's Frank Tomeo wrote:
Colin,
This may not be the solution, but it may give you some ideas. In cases like you've describe, we normally use the NEXT and PREVIOUS properties to programmatically keep the cursor on the same window page until the user clicks the tab to jump to the next page. When they do that, we "reset" the tab order again for that page, and so on.
ftomeo@srpcs.com
At 18 MAY 2005 12:03PM Sean FitzSimons wrote:
The following code on the VSCROLL event of the window will set the TabControl to the proper value:
x=Set_Property(tabcontrolID,"VALUE",value)
The VSCROLL event passes in the value of the page that you are on. If the TABControl contains the same values as the page numbers then the code will work.
Sean
At 19 MAY 2005 03:42AM Colin Rule wrote:
Excellent, I wrongly assumed that when the PAGE event would be triggered when the PAGE changed, but VSCROLL works a charm.
Frank, I would also prefer to use the tab char to tab within a page only, but the effort involved is not worth it.
I will request this as a feature for OI 7.x.
At 19 MAY 2005 08:33AM ftomeo@srpcs.com's Frank Tomeo wrote:
Colin,
It may not be as much work as you think. For our multi-paged tabbed forms, we have one routine that controls all windows. It gets called whenever the tab is clicked and the page is changed. It would not require a change to your tab order (as long as they are in some logical order to begin with). For reference, it may be as simple as something like:
ftomeo@srpcs.com