How to add a hook on Button Kind?
I have managed to add a hook on String Kind but don't seem to find how to add a hook on Button Kind. How to add a hook on a button to be triggered on button click? Is this even allowed? Or clicks on buttons are only to be handled as part of IDCMP_GADGETUP handler?
|
Quote:
If you use BOOPSI instead of GadTools, you can use the ICA_TARGET attribute to get a custom class get its OM_UPDATE method called. A class is similar to a hook, you just have to call MakeClass to get the hook pointer and NewObject to get an instance of this class to be used with ICA_TARGET. |
Thanks thomas. Will check BOOPSI as well.
|
All times are GMT +2. The time now is 07:35. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.