View Full Version : tab control
Heinz
08-16-2007, 02:44 PM
Has anybody a short example on how to use the tab control (i.e. creating 2 tabs and adding something on each)?
PointOfLight
08-16-2007, 03:00 PM
This code is taken from a form with only a tab control that wasn't renamed, so your control name will most likely be different.* However, the process is the same.* In the form creation event, do the following:
Tab_Clear(TabControl101$);
Tab_Add(TabControl101$, "Tab 1");
Tab_Add(TabControl101$, "Another Tab");
You can, of course, create as many tabs as you want.* In the OnSelChange event of the tab control, use the following to get the currently selected tab:
curSel$ = Tab_GetSel(TabControl101$);
Check out all of the Tab_* functions in swapi.ppl to find out more about what you can do with the tab control.
Heinz
08-16-2007, 03:02 PM
Hi Eric,
thanks a lot for your help! That's exactly what I needed :-)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.