Sign in Join

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

Mailing lists / lazarus / 2002-12

Problem with onshow event

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Tony Maro

I'm attempting to resize and position components during the form's onsize event.

Unfortunately it seems to fire before the form is shown, so when I read the size of the form, I end up with only the design-time sizes and not the runtime sizes that my window manager is remembering apparently.

Short of putting in a ttimer that triggers after the show, is there any way around this?

The code I'm trying to trigger is in the onsize event, but since the onsize isn't called at show, I'm trying to call the onsize manually from the onshow event, but it doesn't get correct size info for the form.

Also:
Any progress on making default OK buttons work right for carriage return? Trying to make checkbook entry as keyboard-friendly as possible...

Thanks!

Tony Maro http://tony.maro.net/ Check out my software "CheckBook Tracker" A GPL (free) replacement for Microsoft Money!

Reply by email

Mattias Gaertner
to Tony Maro
Show quoted text 13 lines
I'm attempting to resize and position components during the form's onsize event. Unfortunately it seems to fire before the form is shown, so when I read the size of the form, I end up with only the design-time sizes and not the runtime sizes that my window manager is remembering apparently. Short of putting in a ttimer that triggers after the show, is there any way around this? The code I'm trying to trigger is in the onsize event, but since the onsize isn't called at show, I'm trying to call the onsize manually from the onshow event, but it doesn't get correct size info for the form.

The windowmanager resizes the form, but no OnSize event is triggered?

Also: Any progress on making default OK buttons work right for carriage return? Trying to make checkbook entry as keyboard-friendly as possible...

I will have a look ...

Mattias

Reply by email