[Lazarus] Buttons in frames

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Thu Jan 31 11:38:22 CET 2013


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.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list