Board index » delphi » How do I ensure that a component always takes up left half the screen

How do I ensure that a component always takes up left half the screen

As above.. I have tried Boundsrect.. but it lags behind one cycle..

any help would be appreciated..

Kevin

 

Re:How do I ensure that a component always takes up left half the screen


Quote
k...@netfront.net wrote:

> As above.. I have tried Boundsrect.. but it lags behind one cycle..

> any help would be appreciated..

> Kevin

What about the TScreen object:

Component.Left := Screen.Left;
Component.Height := Screen.Height;
Component.Width := (Screen.Width div 2);

Is that what you meant?

Rkr
--

                   \|||/
                   /'^'\
                  ( 0 0 )
--------------oOOO--(_)--OOOo--------------
. Reid Roman                              .
. Programmer / Analyst                    .
. TVisualBasic := Class(None)             .
. May the Source be With You              .
-------------------------------------------
. Auto-By-Tel (http://www.autobytel.com)  .
. Irvine, CA U.S.A                        .
. E-Mail : rkroman (at) home (dot) com    .
-------------------------------------------

Other Threads