[Lazarus] Buttons in frames
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Sat Feb 2 15:14:46 CET 2013
Mattias Gaertner wrote:
> 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.
I'm still trying to look at this, but a side question if I may. Could
this be caused by the fact that one of the directories is accessed via a
symlink? I notice that the IDE doesn't much like this, with extra tabbed
panes being opened whenever there's a compilation error and the risk of
"file changed on disk" inconsistencies if I don't force a manual save.
--
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