Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-07

Control Positioning has been solved.

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael A. Hess
to Cliff Baeseman: I have the control positioning problem finally solved. I can now move controls at will…
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. http://www.miraclec.com

Reply by email

Cliff Baeseman

I have the control positioning problem finally
solved. I can now move controls at will and resize based on top, left, height, width...
�
Now for the event handlers!!
�
Cliff

Reply by email

Cliff Baeseman

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

Earlier message 32 lines
-----Original Message----- From: Michael A. Hess To: 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. > http://www.miraclec.com > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email