RE: Determining if a window is a document window
RE: Determining if a window is a document window
- Subject: RE: Determining if a window is a document window
- From: Shashikant Saini <email@hidden>
- Date: Mon, 12 Jul 2004 11:51:09 +0530
You even force save it applying action save on the save menu item of File
Menu. Can be done programmaticaly through Accessibilty APIs. After this the
AxDocument becomes valid.
Shashikant.
-----Original Message-----
From: email@hidden
[
mailto:email@hidden]On Behalf Of Greg
Anderson
Sent: Friday, July 09, 2004 8:02 PM
To: email@hidden
Subject: Determining if a window is a document window
I'm writing an application that's interested in doing different
things
if a window it's watching is a document window, as opposed to say a
Save dialog, or a preference window. The best way I've come up with to
figure out if a window is a doc window is if the AXDocument attribute
is available. But my problem is that the AXDocument attrib isn't
available if the user creates a new document. Once it's saved I can
catch the main window change and see that it's a doc, but before that
there's no corresponding file for the window. I've thought about using
the fact that a window has a close, minimize, and zoom controls, along
with no default or cancel button. But there are plenty of non-document
windows that meet those criteria as well.
So I was curious if other developers had come up with a better
solution than the AXDocument attrib. I spent the better part of
yesterday perusing the archives, so hopefully I'm not asking too
obvious of a question.
TIA.
Greg
---
Whenever I start feeling blue, I just start breathing again.
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.