Problem with using tab control

Started by Anonymous, June 07, 2004, 05:02:07 PM

Previous topic - Next topic

Anonymous

I'm now using the tab control on a form. It's a little different to what I've been used to in VB and elsewhere, but once you get the hang of it it rocks.

I feel there is a small issue with regard to the child form. Let me explain by way of example because that's easier.

My tab control is 3120 thingies high (pixels or twips, can't remember - doesn't matter). Allowing for the tab buttons at the top that makes a usable area of very roughly 2750 thingies.

So, I design my child form to be 2700 high. Works brilliantly.

But, when the child displays on the tab the controls of the child leave a lot of wasted space below. Even though when designing the child you've used up all usable space.

Back to the child form, make it a bit higher to add some new controls at the bottom.

Back to the tab control. New child controls visible - but the child form is overwriting the bottom margin of the tab. Aaarrrgggghhhhh!!!!

It's as though when the tab is displayed it is taking the height of the child plus it's caption bar height, but not displaying the caption bar (which is correct of course).

It's a cosmetic bug, but it is very irritating because you either put up with blank space at the bottom of each tab which could be used productively, or feature the tab overwrite in the application - which is bound to be seen as negative by customers running the application.

Andrew

TechSupport

Hi Andrew,

Sorry that I haven't responded to the several Tab related posts that you've made recently. I will look at the Tab control implementation for version 1.07 because I have had several discussions with users about it.

I will need to devise a Poll to get feedback on some of the issues involved.

Sean Roe

Currently using 2.10 and I am still noticing this problem. Is there a fix or workaround?

Thanks,
Sean

TechSupport

hmmm... not fixed (yet). Sorry. I will add it to the FireFly bug tracker. It will be sure to get fixed then.

Anonymous


Jean-Pierre LEROY

Hi Paul,

I could be wrong, but I think that this problem with the tab control is solved since you solved the problem with caption for the Form that is toggled off :

Extract of your post below :

- When a Form's "TabControlChild" property is set to "True", then the
Caption bar for the Form is toggled off.


http://www.planetsquires.com/forums/viewtopic.php?t=1609

Sean, I think you sould try downloading the latest FireFly engine and do some tests.

Jean-Pierre LEROY

Sean Roe

Thanks Jean-Pierre!

I downloaded the latest engine and I don't see a problem with the tab control where there is some dead space at the bottom of the tab. I had downloaded the latest release 2.10 but I failed to notice postings about an update to the engine. Or is this for non-production environments?

Everything looks great.

Thanks Paul for all your hard work.

TechSupport

Yes, I have posted updates to the engine from time to time. Nothing really official, just updates to fix certain issues that users have reported. I still need to deal with 12 reported issues before I upload an "official" update.

Scott Wolfington

Is there an easy way to calculate the required child form (WxH) dimensions for a specific tab control in a project?  Right now it seems it takes a lot of trial and error to make sure the child form takes on the exact dimensions of the tab control.  Thanks!

Scott

EDIT: Sorry, please ignore this post.  Just saw Paul's post here:  http://www.planetsquires.com/forums/viewtopic.php?t=1687&highlight=tab+control+child+dimensions