Function Pointer as a Field

BlitzMax Forums/BlitzMax Programming/Function Pointer as a Field

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am creating a custom Button class, and I would like to be able to define a unique function for each button that it will call when it's clicked. Is this doable using a function pointer as a field of the type? If so, anyone have an example?

I tried implementing this earlier, but it didn't seem to work.

Thanks