tabcontrol without tab headers?

Started by Paul D. Elliott, March 29, 2007, 02:08:15 PM

Previous topic - Next topic

Paul D. Elliott

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.

TechSupport

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.


Paul D. Elliott

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.

TechSupport

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"

Paul D. Elliott

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.


TechSupport

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

Paul D. Elliott

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 )?

Paul D. Elliott

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 ).

TechSupport

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.