Sign in Join

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

Mailing lists / lazarus / 2020-12

TBitbtn

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Larry Dalton

I am trying to create a tcomponent that will be a tpanel with align set at albottom that will have several tbitbtns, the first of which will be kind bkclose. I want to set that button’s onclick procedure to close the form that the tpanel is on. What is the best way to write the onclick procedure?

Sent from my iPhone

Reply by email

Juha Manninen
to Larry Dalton

On Mon, Dec 14, 2020 at 11:59 PM Larry Dalton via lazarus <

Show quoted text 7 lines
wrote: I am trying to create a tcomponent that will be a tpanel with align set at albottom that will have several tbitbtns, the first of which will be kind bkclose. I want to set that button’s onclick procedure to close the form that the tpanel is on. What is the best way to write the onclick procedure?

TButtonPanel already does what you are planning. You can study its code and then either inherit your own component from it or create a new one.

Regards,
Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20201215/7b5e3efa/attachment.html>

Reply by email