[Plib-devel] PUI: When do we deactivate a widget
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2004-11-26 16:48:43
|
Gentlemen, A question has come up in my application as to whether an active widget should be deactivated (and its down-callback invoked) when the user next clicks a mouse or when the user next activates a (different) widget. At the moment the behaviour is the former, but I need for it to be the latter under some circumstances. Three years ago it was changed from the latter behaviour to the former (see "pu.cxx" version 1.41-42), presumably to fill some need. I would like to add a new field to "puObject" called "when_to_deactivate" and give it allowed values of "deactivate on mouse click" and "deactivate on next widget." In addition, I will need to change the "puMouse" code around lines 410-415 from "doHit" to "checkHit", returning TRUE if "checkHit" works and returning FALSE if it doesn't. If anybody objects to these changes, please let me know and we'll try to work something else out. Otherwise, I will need someone to put the files into CVS for me. John F. Fay joh...@eg... 850-729-6330 |