PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Paul D. Elliott on March 29, 2007, 02:08:15 PM

Title: tabcontrol without tab headers?
Post by: Paul D. Elliott on March 29, 2007, 02:08:15 PM
Is it possible to create a tabcontrol without the tab headers? I like the idea of using a tab control
to show different forms and to automatically handle data entry  without the need for me to control
creating the form & showing it & hiding when done. The switching between tabs would be totally
under program control. I can't seem to find the correct style to elminate the headers.

Thanks.
Title: Re: tabcontrol without tab headers?
Post by: TechSupport on March 29, 2007, 02:51:35 PM
I don't think that is possible... at least I have not heard of a way to suppress the header even using OwnerDraw.

The best thing would be to create your data entry on separate forms and set their WindowStyle to WS_CHILD. Then all you need to do is load them as non-modal during the WM_CREATE message of the main form and show/hide the child forms as needed. I use this technique all the time and it is not as painfull as it sounds.

I have attached a very simple FireFly project showing this technique.

Title: Re: tabcontrol without tab headers?
Post by: Paul D. Elliott on March 29, 2007, 03:00:40 PM
Well, I set the TabHeight & TabWidth to 1 and it reduced to a small smudge. Setting to 0 had no
effect ( same as full size ).

I'll just go on from here. Couldn't see where your sample was.

Thanks.
Title: Re: tabcontrol without tab headers?
Post by: TechSupport on March 29, 2007, 05:06:54 PM
Quote from: Paul D. Elliott on March 29, 2007, 03:00:40 PM
....Couldn't see where your sample was.
The sample is at the bottom of my post as an attachment. It is called "PropDialog.zip 5.85 KB"
Title: Re: tabcontrol without tab headers?
Post by: Paul D. Elliott on March 29, 2007, 05:24:37 PM
Sorry but I've tried IE & FireFox and can't see anything that looks like an attachment. I've hovered the
mouse over everything I can see and can't find it.

Title: Re: tabcontrol without tab headers?
Post by: TechSupport on March 29, 2007, 08:00:57 PM
That is odd. Maybe I don't have the Forum settings correct or something... but I am able to see the link in my post. Here is a screenshot of what I see: http://www.planetsquires.com/files/screenshot.gif

Nonetheless, here is a link to the sample code that I just uploaded to the server: http://www.planetsquires.com/files/PropDialog.zip
Title: Re: tabcontrol without tab headers?
Post by: Paul D. Elliott on March 30, 2007, 12:21:49 PM
I sent you an email with what I see. Have you tried looking at it without logging in?

I seem to be having occasional problems loggin in/out. I logged in earlier and read your message and
took a snapshot of the screen. then logged out at the main forum screen and it seemed to work
( in that it then showed Guest ). Now later, when I came to the main forum screen, it said I was
logged in. But down in the Tech Assistance forum I was still Guest and had to log in again.
Are they still working the bugs out of this software? Or could it be me with my old-old-old
proxy server program ( AdSubtract Pro from around 2002 )?
Title: Re: tabcontrol without tab headers?
Post by: Paul D. Elliott on March 30, 2007, 02:03:05 PM
Ok, I can see the attachment and download it.  Thanks.

Is anybody else having problems logging in or out?  I just tried logging out from the main forum
screen and got an error ( no number or info ... just said to try again ). I've gotten this 2 or 3 times
in the last week. Figured it was something on my system ( old proxy software or anti-virus ).
Title: Re: tabcontrol without tab headers?
Post by: TechSupport on March 30, 2007, 02:53:43 PM
hmmm.... can't say that I've ever had a problem logging in and out. I would be interested in hearing if someone else can duplicate the problem.