[lazarus] Control Positioning has been solved.

Cliff Baeseman vbman at pcpros.net
Mon Jul 5 20:17:53 EDT 1999


Here is how it works ...

All of the positioning code is in the addcontrol method of class tcontrol.

When the addcontrol method is called if it is a container widget a fixed
widget is added to the component. I pass in a pointer to this fixed widget
on the added component that is passed in.
When any of the position stuff is called it uses the passed in pointer to
reposition itself on the fixed widget.

So if I where adding a button to a form it would go something like this

Form -- FixedWidget -- Component

Component.ParentGrid = FixedWidget


Button then uses the ParentGrid to reposition itself


Cliff

-----Original Message-----
From: Michael A. Hess <mhess at miraclec.com>
To: lazarus at miraclec.com <lazarus at miraclec.com>
Date: Monday, July 05, 1999 6:08 PM
Subject: Re: [lazarus] Control Positioning has been solved.


>> Cliff Baeseman wrote:
>>
>> I have the control positioning problem finally solved. I can now move
>> controls at will and resize based on top, left, height, width...
>
>What did you do? I am working on some of this with my separated callback
>routines and if you have done something different I'd like to see it to
>put it into my routines.
>
>> Now for the event handlers!!
>
>By this do you mean the callback stuff. If so I have that all done. I am
>working on integrating it along with some other aspects.
>
>--
>==== Programming my first best destiny! ====
>
>Michael A. Hess      Miracle Concepts, Inc.
>mhess at miraclec.com   http://www.miraclec.com
>
>_________________________________________________________________
>     To unsubscribe: mail lazarus-request at miraclec.com with
>                "unsubscribe" as the Subject
>    archives at http://www.miraclec.com/list_archives/lazarus
>






More information about the Lazarus mailing list