I have been trying for some days to create a combobox with names of
event handlers. The handlers are many and resides in its own class. I
cant find out how to get the names of the methods into the combobox,
except hardcoding them. Do I really have to add manually the names of
the class methods?
Below: assigning the handler, by selecting from the combobox.
EventHandlerName:= MyComboBox.Items[MyComboBox.ItemIndex];
MyObject.OnEvent:= MyEventHandlers.MethodAddress(EventHandlerName);
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus