Sign in Join

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

Mailing lists / lazarus / 1999-07

TEdit Resize problems

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Cliff Baeseman

For some reason no matter what I try I cannot get a TEdit to resize?

It is doing nothing different that TLabel and TButton which has basically the same layout. What could possibly be the problem it is driving me crazy.

Cliff

Reply by email

Stefan Hille
to Cliff Baeseman

Hi!

Cliff Baeseman wrote
For some reason no matter what I try I cannot get a TEdit to resize? It is doing nothing different that TLabel and TButton which has basically the same layout. What could possibly be the problem it is driving me crazy.

I have a similiar with TGroupBox. When the component was first commited everything worked fine. About a week I tested again and get the following effects:

* The groupbox is always placed in the upper left corner of the form, independant of the values for "top" and "left"
* The values for "width" and "height" can be set only once when I create the component. Every attempt to change them later will not be reflected on the form.

Another thing which may be related: When I open the editor and resize the window, the form will only be resized if I move the window around a little. Seems as if the editor form waits for some kind of repaint event from the X server.

Hypothesis:

If I remember right, things changed for TgroupBox at about the time when Shane got his canvas working and somebody else introdued the code for TAlignment. Maybe one of these classes required some changes to the resize code in gtkint.

Hope this helps a little

bye,

Stefan

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Pascal Dutilleul
Show quoted text 7 lines
Another thing which may be related: When I open the editor and resize the window, the form will only be resized if I move the window around a little. Seems as if the editor form waits for some kind of repaint event from the X server.

I've also played around with the editor. (in fact the only thing I see is a window with a white rectangle in, I don't know if this is normal ?)

When resizing, it's just like the rectangle resizes to the previous position. If you resize first to a small square, and then to a bigger square, the rectangle now takes the size of the first square. If you resize now to a bigger size, you'll see that the rectangle has resized to the square.

Could it be that the resizing logic takes place before the coordinates of the window are updated ?

Pascal

_____________________________________________________________ Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com

Reply by email