Window(0) is the frontmost window. If you have a print dialog window,
this would probably be the print dialog window and Window(1) would
probably be the window you are wanting to print. If there is no print
dialog window, you would probably want Window(0).
HTH
-----Original Message-----
From: gettingstarted-bounces at lists dot realsoftware dot com
[mailto:gettingstarted-bounces at lists dot realsoftware dot com] On Behalf Of
Barrie Jones
Sent: Saturday, November 27, 2004 11:50 AM
To: RealBasic getting Started
Subject: Active window
How do I find the current active window in the following context? In
response to a menu "Print..." selection the program needs to know
what to print as follows:
SELECT CASE ActiveWindow <-------- ????? self.Title ?????
CASE Window1
CASE Window2
END SELECT
Thanks
Barrie
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|