[Mac] No black dot in close button with unsaved data
Bug #592085 reported by
SeySayux
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
Confirmed
|
Low
|
Unassigned |
Bug Description
The Mac HIG specifies that if an application has unsaved data, the close button should display a black dot. Phatch doesn't do this. Instead, Phatch prepends an asterisk to the title.
Action list or example image not applicable.
To post a comment you must log in.
There is a little snippet of code in the the CHANGES doc for version 2.8.8.0 that shows how to do this with ctypes.
""" indowRef to
Added a wrapper to wx.TopLevelWindow for MacGetTopLevelW
facilitate calling the Carbon APIs directly for things that are not
supported in wx, similar to how we can use ctypes or PyWin32 with
window.GetHandle() to do custom stuff on Windows. (On wxMac GetHandle
returns the ControlRef, which is different than the WindowRef, hence
the need for a 2nd method.) Here is an example to set the modified
flag in the caption::
>>> import ctypes CDLL('/ System/ Library/ Carbon. framework/ Carbon' ) SetWindowModifi ed(frame. MacGetTopLevelW indowRef( ), True)
>>> carbon = ctypes.
>>> carbon.
"""