[Pythonmac-SIG] Can't get there from here?
Steven D. Majewski
sdm7g@virginia.edu
Fri, 12 Feb 1999 17:39:03 -0500 (EST)
In the continuing saga to build a better dialog...
Inside Mac says that if a Dialog has an editable text item in it,
then it doesn't disable the Edit menu when processing events --
and this seems to be the case for my dialog when I use ModalDialog
to process it, however, for a movable modal dialog, where I'm
processing it with WaitNextEvent & DialogSelect, the items in
the Edit menu are disabled.
I'm not doing anything explicitly to disable those items and they are
enabled before I call my dialog handler -- anyone know what turns
them off ?
I could turn them off if I could get a handle to the Edit menu.
Framework.py clears it's menubar and builds a new one, so it keeps
it's own list of menus.
Menu.GetMenuBar() should return the current menu list, however,
it returns this handle as a resource object. Is there any way
from this to walk the list of menus in the menu bar ?
( If not, then that's another toolbox TODO: change GetMenuBar()
to return the list of windows instead of an opaque resource. )
Is this info encoded in resource.data, or is that just garbage
if it's not a real resource?
---| Steven D. Majewski (804-982-0831) <sdm7g@Virginia.EDU> |---
---| Department of Molecular Physiology and Biological Physics |---
---| University of Virginia Health Sciences Center |---
---| P.O. Box 10011 Charlottesville, VA 22906-0011 |---