[futurebasic] Re: [FB] Need help using the toolbox call 'CGDisplayAvailableModes'

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2007 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Sun, 25 Nov 2007 02:55:31 -0500
Max asked Bernie:

> Q. How does one know which of the 36 modes on my monitor is the  
> currently selected one?



I'll chime in while waiting for Bernie, Brian or RP to give you the  
right answer.

You can do it the hard way:

http://developer.apple.com/qa/qa2001/qa1217.html

or the easy way:

begin globals
dim as container gC
end globals

window 1

local fn UnixCommand( unixCmd as str255 )
dim as str255 tempStr

open "Unix", 2, unixCmd
do : line input #2, tempStr
gC += tempStr
until eof (2) : close  2

end fn

fn UnixCommand( "system_profiler SPDisplaysDataType | grep Resolution" )

print gC

do
handleevents
until gFBQuit
end


Ken (whose coding is so rusty it squeaks)