realbasic-nug
[Top] [All Lists]

Re: [OS X] detecting screen resolution changes

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: [OS X] detecting screen resolution changes
From: Tom Benson <tombenson at mac dot com>
Date: Tue, 28 Feb 2006 22:04:56 +1100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <00DA9EA9-0C8A-4B8F-9062-8D562262D53D at mac dot com> <B35DDE9B-4DE0-4C22-813F-28C668FDCF4B at mac dot com>
It appears that they have changed. A simple msgbox "res changed" in app.activate does not get triggered when changing screen resolution.

Any other ideas anyone? I'm running out, I may have to resort to a timer. Once a second or so shouldn't impact too much, but it is undesireable.

- Tom

On 28/02/2006, at 7:12 PM, Tony Spencer wrote:

Things like this used to be dealt with by the Activate event in the app class.

Basically, when the res changes, your application should be deactivated and reactivated, so you only need to put checking code in the Activate event. But things may have changed...


On 27 Feb 2006, at 00:11, Tom Benson wrote:

Does OS X send a system wide apple event or anything after the screen resolution is changed?

I need to know when resolution is changed to adjust some routines accordingly, but would rather not devote system reources to a little timer in the background checking for changes in screen (0).width etc....

Any ideas?

Tony Spencer
St Rémy de Provence (13) France

tonyspencer at fastmail dot net______________________________________________ _
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

All questions and answers unless otherwise stated are in Relation to Mac OS X 10.4 and later.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>