[Lazarus] Buttons in frames

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jan 31 13:02:59 CET 2013


Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> hat am 31. Januar 2013 um
11:38 geschrieben:
> Mattias Gaertner wrote:
> > On Thu, 31 Jan 2013 10:00:31 +0000
> > Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> wrote:
> >
> >> [...]
> >>> It should work.
> >>>
> >>> Can you create a small example to demonstrate the problem?
> >> I can't duplicate it with a newly-created test program. However I notice
> >> that this program has implementation ... {$R *.lfm} in (at least)
> >> those units with forms, while the program giving the problem doesn't.
> >> Any thoughts would be appreciated before I wade in trying to "fix" things.
> >
> > Is the OnClick event of the button assigned at runtime?
>
> No. At frame design time, and then the frame is placed on the form (I've
> previously been caught by frame updates not propagating to frames which
> are already on forms) and set to client alignment. Save and build.

Set a breakpoint in TCustomFrame.Create and single step to see what is executed.

Mattias




More information about the Lazarus mailing list