I have a situation where a Form has a vertical splitter dividing it
in half, and with each side containing a GroupBar set to align alClient.
Each GroupBar contains the same number of groups and thus are of the same
over-all height as each other when all groups are closed.  Consider this
height, the clientheight of the Form, as the minimum constraint height for
the GroupBars, or the minimum constraint clientheight of the splitter/form.
        Each GroupsBar's OnResize event is coded so that as it's Groups are
opened/closed, the form will resize + or - in height so that all it's
Groups, and if opened, it's Group Items, will remain in view and no
scrollbars will appear.  
        Of course since there are two GroupBars side by side I must re-set
the minimum constraint height of the GroupBar opposite the GroupBar being
resized, to it's current height in each other's OnResize events before
making any actual adjustment, otherwise such an adjustment could cause the
opposite GroupBar's groups, if one or more are opened, to be hidden from
view.  So far so good!
        In order to make this solution viable for all resolutions I thought
I would set up Integer constants for each resolution equal to the two
GroupBar's minimum constraint height...which is their height when all it's
Groups are closed...But then that would require a number of constants,
whereas a single variable could be set based on the resolution the app is
running at, and it then used as the minimum constraint height in each of the
re-size events.  Or am I wrong...is there a way to set up a single constant
to do this?  And also, let's say I want to enable the app for the four most
commonly used resolutions, 800 x 600, 1024 x 768, 1152 x 864, and 1280 x
768.  Where and using what method is the best way to set this constant or
variable to it's base value?  

>From "Robert Meek" 
Personal e-mail:  [EMAIL PROTECTED]
dba / "Tangentals Design"
Visit us at:  www.TangentalsDesign.com
Home of "The Keep"!

Member of:  "Association of Shareware Professionals"
Moderator for:  "The Delphi", "Delphi-DB", and "Delphi-Talk"
programming lists at elists.org, and "DelphiTalk.net"
at www.DelphiTalk.net




_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to