Sign in Join

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

Mailing lists / lazarus / 2012-01

TFrame and buttons

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

ik

Hello,

I'm Writing my hobby application (https://github.com/ik5/display-quotes/), and I decided to use TFrame for the search window. The thing is that when I add code to the Prev and Next buttons, They do not get execute on the main form.
It looks like Lazarus events are looking for events at the main form rather in at the framed form.

Am I missing something here or is it a bug ?
I'm using lazarus svn r34764 under linux 64 bit, with FPC 2.6.0

Thanks,
Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120117/75fac099/attachment.html>

Reply by email

Mattias Gaertner
to ik

ik hat am 17. Januar 2012 um 14:22 geschrieben:

Show quoted text 12 lines
Hello, I'm Writing my hobby application ( https://github.com/ik5/display-quotes/ <https://github.com/ik5/display-quotes/> ), and I decided to use TFrame for the search window. The thing is that when I add code to the Prev and Next buttons, They do not get execute on the main form. It looks like Lazarus events are looking for events at the main form rather in at the framed form. Am I missing something here or is it a bug ? I'm using lazarus svn r34764 under linux 64 bit, with FPC 2.6.0

The IDE itself uses frames with events. So they should work for you to.

Please create a bug report and provide a small example project (only sources).

Mattias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120117/bbb5d64e/attachment.html>

Reply by email

ik
to Mattias Gaertner

2012/1/17 Mattias Gaertner

Show quoted text 23 lines
** ik hat am 17. Januar 2012 um 14:22 geschrieben: Hello, I'm Writing my hobby application ( https://github.com/ik5/display-quotes/), and I decided to use TFrame for the search window. The thing is that when I add code to the Prev and Next buttons, They do not get execute on the main form. It looks like Lazarus events are looking for events at the main form rather in at the framed form. Am I missing something here or is it a bug ? I'm using lazarus svn r34764 under linux 64 bit, with FPC 2.6.0 The IDE itself uses frames with events. So they should work for you to. Please create a bug report and provide a small example project (only sources).

Can't reproduce it :(
I'ved recreated the frame in my project and now it works.

Show quoted text 15 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120117/48720f42/attachment.html>

Reply by email