Subclassing CAPI controls
Hi, I've just found out how to display placeholder text in text-input-panes on Cocoa and Win32 (if anyone's interested, I can post the code). It would be nice to subclass text-input-pane with this new functionality. However, initialization cannot be done in initialize-instance, since at that time no underlying OS widget/component has been created. Is there a method to override, or some callback to specify? I cannot find it in the docs anyway. A follow-up question would be if there is any way to specify code which is run at component destruction. output-pane provides the destroy-callback, but simple-pane has no corresponding callback. (In the case of placeholder strings, this is not needed as no external resources are allocated, but one could easily imagine other cases where e.g. images or file handles are loaded) Erik _______________________________________________ Lisp Hug - the mailing list for LispWorks users lisp-hug@lispworks.com http://www.lispworks.com/support/lisp-hug.html