On Mar 11, 2006, at 2:51 PM, Charles Yeomans wrote:
On Mar 11, 2006, at 2:30 PM, Mike Woodworth wrote:
has anyone else played around with the new graphics.handle? it
seems to me, that it returns the current port, not the graphic's
gworld.
given p = a picture opened from disk....
cgrafptr = p.Graphics.Handle(Graphics.HandleTypeCGrafPtr)
cgrafptr is the current monitor gdevice. i get a pixmap full of
the screen's contents. the same call returns the picture if i add
p.Graphics.FillRect(0,0,0,0)
above that call.
If adding the FillRect call gets you the picture data, then this is
consistent with the way REALbasic has long behaved in this
respect. To set the current port to a particular Graphics object,
you usually need to tickle the object by calling some method like
FillRect. The framework dislikes it when you attempt to take
control by calling SetPort or similar call.
oh well... seems strange to me that theres a call on the graphics
object which is returning currentport, but it's easy enough to work
around.
mike
--
Mike Woodworth
[EMAIL PROTECTED]
_______________________________________________
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>