Autofill or Dock

The place for threads about TimoSoft TabStrip.
Post Reply
User avatar
Mex
Captain
Posts: 130
Joined: 24 Sep 2009, 19:47

Autofill or Dock

Post by Mex »

Hi, its me... again :D

Maybe you know a better solution for the following problem.
Let's say I have a TabStrip and a Frame control on it.
Currently i'm calculating Frame's height and with in form_resize event, to fill frame to TabStrip.
Sometimes I want to use TabStrip Align property (Align-Top) and now we have a problem, because I can't use TabStrip Width,Height propery in form_resize because value is changed after the event is completed.

One way is to the calculations also in Form_Paint, but is this a good idea?

Maybe there is any other good solution, how "dock" frame automatically on tabstrip, when parents align property is used?
Or maybe you can add a Dock property like in .NET and the user can just select Fill :D


Meelis
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Autofill or Dock

Post by TiKu »

You could use the TabStrip's ResizedControlWindow event. It should be fired at the correct time.

Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Post Reply