[lazarus] GTK team: please specify!

Micha Nelissen M.Nelissen at student.tue.nl
Sat Nov 1 05:34:11 EST 2003


Mattias Gaertner wrote:

> On Fri, 31 Oct 2003 18:07:58 +0100
> Micha Nelissen <M.Nelissen at student.tue.nl> wrote:
>>
>>I think we're making this WAY too difficult and hackish with DC 
>>size/position calculations all over the place.
> 
> 
>>I suggest making the grabbers windows, derivative of a TCustomForm or so.
>>
>>I suggest using a window, derivative of TCustomForm, for drawing 
>>invisible components on.
> 
> 
> I'm not sure, what you mean. Can you give more details?

In win32 (and I guess in gtk also), windows have a certain z-ordering 
that can be influenced. (BringToFront, SendToBack and friends). Now if 
we make a special designer-type window, call it container, (which 
doesn't have to be in the LCL), in which we can draw what we want. So 
each of the grabberhandles is drawn in such a container. Each of the 
invisible components is drawn in such a container. The result is that we 
let the interface do the position and visibility calculations (that's 
what it's good at, after all) and we simply state their position 
relative to their parent which are simple calculations.

Is this clearer?

Micha.






More information about the Lazarus mailing list