PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: paulDiagnos on February 09, 2005, 10:55:48 AM

Title: Tab Control
Post by: paulDiagnos on February 09, 2005, 10:55:48 AM
Hi, me again

is there any way i can (in code) show tabs, and then select them.

thanks Paul
Title: Tab Control
Post by: TechSupport on February 09, 2005, 01:44:16 PM
You should look at the FireFly functions as described in the FF_Functions.chm file. There are 11 function wrappers that deal specifically with Tab Controls. FF_TabControl_SetSelectedTab and FF_TabControl_SetTabFocus should be what you are looking for.
Title: Tab Control
Post by: paulDiagnos on February 11, 2005, 06:41:00 AM
ahh yes updated fire fly, thats better,

but how do i add the form to it

ie i add the tab called "stuff", but gives just a blank window, i need to have the child form added to it

thanks Paul
Title: Tab Control
Post by: TechSupport on February 11, 2005, 08:23:58 AM
You should probably check out the TabControl source example (in the \Samples directory).

For a TabControl, you need to define Forms that will be set as 'Child' to the Tab Control. You simply create a Form and set its 'TabControlChild' property to TRUE. You then go to the property list for the Tab Control and click on "Custom". In there, you can add/delete tabs - add icons to the tabs - and define which child Form belongs to which tab *i.e. the Child Page Dialog combobox).

Using a Tab Control in PowerBASIC is more difficult than Visual Basic, but using it in FireFly is getting easier and easier all the time.  :)
Title: Tab Control
Post by: paulDiagnos on February 11, 2005, 01:00:17 PM
yes ive managed to do that, at least, ages ago

what im waffling about is doing it in code.

as using the #if xxxxx statement to miss things out in the compiler for different versions