wxMac: The dot in the red circle in document windows

Vadim Zeitlin vadim at wxwidgets.org
Mon Jul 2 04:19:03 PDT 2007


On Mon, 2 Jul 2007 13:37:23 +0200 Yoav Gonen <YoavG at HumanEyes.com> wrote:

YG> It is standard behavior on Mac that if you have a document window and
YG> the document is "dirty" (needs saving), a dot appears in the red circle
YG> which is used to close the window. I don't think there's support for
YG> this, currently, in wx. In Carbon it is done by calling
YG> SetWindowModified. Does anyone have any idea where this should go in wx?

 This should definitely be done automatically by the docview classes (which
have the information about whether the document is modified or not) but I'm
not sure if it is enough as not all document-based applications use docview.

YG> Maybe a method by that name in wxTopLevelWindow that does nothing on
YG> other platforms?

 Yes, this looks like a good idea.

YG> Is there any such visual indication on other platforms?

 Not AFAIK.

 Regards,
VZ
-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/






More information about the wx-users mailing list