assigning method to toolbar buttons ?

  • Thread starter Thread starter genc ymeri
  • Start date Start date
G

genc ymeri

Hi,
I have a "Save" menu item and a "Save" toolbar button. How can I assign the
"Save" menu item's method to the "Save" toolbar button ????

Thanks a lot.
 
genc said:
Hi,
I have a "Save" menu item and a "Save" toolbar button. How can I
assign the "Save" menu item's method to the "Save" toolbar button ????

Thanks a lot.

You can't do that directly, the event handlers have a different
signature.

IMO each toolbar button, should have it's own click event, rather than
a general click event at the toolbar level.

It wouldn't surprise me one bit if someone has already built one like
this, maybe it would be worth having a look around the internet.

Cheers Tim.
 
Hi Tim,
Specially for "us" coming from Borland Delphi at least we expect so :) :) :)

Thanks a lot !
 
genc said:
Hi Tim,
Specially for "us" coming from Borland Delphi at least we expect so
:) :) :)

ha, you recognised my name :-) I thought I was unknown here.

Yep, So much of the FCL is so familier and similar to the VCL and so
much of it is even better, so when things are a little less well
thought out it stands out glaringly.

Cheers Tim.
 
Back
Top