[lazarus] Problem with onshow event

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Dec 25 05:42:13 EST 2002


On 23 Dec 2002 22:22:25 -0600
Tony Maro <tony at maro.net> wrote:

> 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






More information about the Lazarus mailing list