Hello all,
This is my first (or second) post here so please forgive any breaches of etiquette I make.
I'm trying to create an array to store all my callbacks for TToolButton clicks. While it appears (i.e. the compiler didn't complain) that I can create a type for the callbacks like this:
type
TTabExplorer = class (TTabSheet)
// ... Class declaration goes here
end;
TToolBtnFunc = procedure (Sender: TObject);
TToolBtnClick = array [0..11] of TToolBtnFunc;
the compiler complains when I populate
TToolBtnClick instances with
TTabExplorer methods because the actual functions are methods of the class
TTabExplorer. How can I change the snippet
type
TToolBtnFunc = procedure (Sender: TObject);
TToolBtnClick = array [0..11] of TToolBtnFunc;
to one that lets
TToolBtnClick hold the type
TTabExplorer.methodname (Sender: TObject);Warm Regards
Lee