[lazarus] 10998 bug has been killed

Baeseman, Cliff Cliff.Baeseman at greenheck.com
Mon May 17 14:00:47 EDT 1999


This is making me think a little. We could use fixed then instead of these
darn tables for widget placement. Maybe I should try to move a widget using
a fixed type placement. Once again I may have to unparent it before
reattaching to the fixed object.

It may make for a slow resize?  Not sure the code seems to run pretty fast
right now.

Cliff



-----Original Message-----
From: Shane Miller [mailto:SMiller1 at stvgb.org]
Sent: Monday, May 17, 1999 12:53 PM
To: lazarus at miraclec.com
Subject: Re: RE: RE: RE: [lazarus] 10998 bug has been killed


Right.  We need to send the signal to each child and then in their resize
(tcontrol's resize) we need to check their alignment.

I think that a TLISt is already being recorded for each parent and child.
Perhaps it's defined in TComponent or something though.  I thought there was
already a list though.  Maybe TApplication or TForms?  In TApplication you
could run though all the controls and see if their parent is SELF (if self
worked) and if it is then send them the resize signal.

Shane


>>> "Baeseman, Cliff" <Cliff.Baeseman at Greenheck.com> 05/17 12:46 PM >>>
so the parent will have to hold a list of the components that have been
attached. On a parent resize the parent will
loop the list of children and have them emit the resize signal?

Just thinking ;)

Cliff

-----Original Message-----
From: Shane Miller [mailto:SMiller1 at stvgb.org] 
Sent: Monday, May 17, 1999 12:40 PM
To: lazarus at miraclec.com 
Subject: Re: RE: RE: [lazarus] 10998 bug has been killed


That's not really my issue though.  Your talking about resizing a widget and
displaying it correctly.  I'm talking about a form that contains a memo and
a status bar.  When the Form is resized, I would like to call the
Memo.Resize and the Statusbar.resize so we can check to see if their
alignment was alCLient or alBottom or whatever.  Somehow when a parent
(form) is resized, it has to tell the child widgets to resize too....

Shane


>>> "Baeseman, Cliff" <Cliff.Baeseman at Greenheck.com> 05/17 12:31 PM >>>
Ok so you have it working again. Thats good.

I have bee trying to move the widget once resize is called but have not been
successful.

In order to do this the object references need to work properly. 


steps for dynamic movement I was trying.

1. When add control is called set fParentGrid on the passed child to the
parents grid (attached to the form).

2. When resize is called take the new height and width properites do a table
attach on the parent grid.

This in theory should move the widget to the new location. Maybe I need to
call gtk_widget_unparent first to blow 
the current parent reference away and remove the child from the internal
list first..

I should really look at the internal GTK code to see how that stuff is
implemented.. In this way you could just set
the new position during a form resize event.

Cliff


-----Original Message-----
From: Shane Miller [mailto:SMiller1 at stvgb.org] 
Sent: Monday, May 17, 1999 12:16 PM
To: lazarus at miraclec.com 
Subject: Re: RE: [lazarus] 10998 bug has been killed


I changed my GTK so the flags portion is the same as the old version and I
can use the '+' sign when dealing with the GTK_SHRINK + GTK_FILL ... and the
memo resizes now.  Has GTK been changed in CVS so that this will compile on
other people's systems?

Shane (again)


>>> "Baeseman, Cliff" <Cliff.Baeseman at Greenheck.com> 05/17 12:01 PM >>>
We have to get the flags working again in the table attach method. I have it
set to fill right now but it should be
gtk_fill or gtk_stretch or gtk_expand  set for both of the sizing methods.
With these three set the widgets will expand and shrink with the parent
which is the grid....

Cliff

-----Original Message-----
From: Shane Miller [mailto:SMiller1 at stvgb.org] 
Sent: Monday, May 17, 1999 11:57 AM
To: lazarus at miraclec.com 
Subject: Re: [lazarus] 10998 bug has been killed


I will be updating CVS soon with a version that can open almost all .pp
files and color them.  Currently I am still having the "self" problem where
SELF isn't assigned and therefore I have to generically assign a local
variable to "self" which is stored in the unitlist.objects property.

I need someone to look at the following:  Determine a way to resize the
child widget when the parent resizes.  For example, open a file using
file-open and rtesize the form.  The memo stays the same size.  We need to
send a RESIZE message to it and then check it's alignment or something and
resize it accordingly.  

I assume we'll want to have a TList or something of all child widgets, then
send this mesdsage to each of them.....

Thoughts?

Shane


>>> Peter Vreman <pfv at cooldown.demon.nl> 05/14 11:37 AM >>>
Nothing more to say here ;)

Peter

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus 

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus 

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus 

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus 

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus 

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus 

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus

_________________________________________________________________
     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