PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: jthompson on November 10, 2006, 02:25:19 AM

Title: Tab Control (With No Tabs)
Post by: jthompson on November 10, 2006, 02:25:19 AM
It might have been Visual Basic 6, but I thought you could display a tab control with no tabs (you could change tabs via code).  I heard this is how they make a lot of dialogs with different tab pages in the middle and <back>, <next>, and <finish> buttons at the bottom.  Does anyone else know what I'm talking about?  Is this a tab control option?  Thanks!  -John
Title: Tab Control (With No Tabs)
Post by: Rudolf Fürstauer on November 10, 2006, 10:25:54 AM
maybe like this?

http://www.planetsquires.com/forums/viewtopic.php?t=1956&highlight=multiple+dialog
Title: Tab Control (With No Tabs)
Post by: TechSupport on November 10, 2006, 12:19:06 PM
You can display a tab control with no pages (simply delete the three default pages that FireFly creates via the "Custom" property for the tab control). However, as Rudolf has pointed out, the best way to handle your problem is to create a child form for each of the pages that you need to dicplay. As you click on your navigation buttons simply write code in the BTN_CLICKED message handlers to show/hide the appropriate child form. This is actually quite easy to do and I use it all the time in most of my applications.
Title: Tab Control (With No Tabs)
Post by: jthompson on November 10, 2006, 12:51:36 PM
Very, very cool.  Thank you Rudolph and Paul!
Title: Tab Control (With No Tabs)
Post by: jthompson on November 10, 2006, 03:29:34 PM
In frmMain, the size of the frame where the three children forms are displayed is 248 x 430.  I tried making one of the forms 248 x 430 but it was too big to completely fit in the frame.  Do the children forms have anything extra I need to take into account when trying to make a form that will completely fit the parent's space?  Thanks again!  -John