Page 2 of 2

Re: DoGadgetMethod() not talking to my object

Posted: Mon Sep 09, 2013 7:29 pm
by ssolie
gonegahgah wrote:The main purpose of DoGadgetMethod() is to create a GInfo structure and place that into the Msg isn't it?
I'm guessing that perhaps other code could have also been put in to DoGadgetMethod() to handle standard functions on legacy gadgets maybe?
That would certainly hamper making it more generalised.

Lol. Actually, the AutoDocs presently mention that it can be used for gadgets and for other things.
ie. "You should use this function for BOOPSI gadget objects, or for "models" which propagate information to gadgets.
You should be using DoGadgetMethod() whenever a GadgetInfo structure may be needed.

See http://wiki.amigaos.net/index.php/BOOPS ... _an_Object

Re: DoGadgetMethod() not talking to my object

Posted: Tue Sep 10, 2013 3:40 am
by gonegahgah
Thanks Solie, I didn't think to look back to the wiki.
I can confirm that DoGadgetMethod() doesn't seem to talk to my zone.window objects at the moment - just seems to ignore them completely - unless I adapt the class onto gadgetclass.
Then it works correctly.