realbasic-nug
[Top] [All Lists]

Re: Dragging, Clicking and Double Clicking?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Dragging, Clicking and Double Clicking?
From: Thomas Reed <thomasareed at earthlink dot net>
Date: Wed, 30 May 2001 08:56:44 -0500
>Yes it's a canvas but the rotated text is in a picture assigned to
>the backdrop as i wanted easy transparancy and did not want to have to
>worry about refresh routines.

You'll probably want to use an offscreen buffer for something like this 
(I'm assuming you're rotating text or moving it or something as the user 
drags).  You'd do this by using NewPicture to create a picture of 
appropriate size and bit depth, then draw into it.  When you're ready to 
copy that to the screen, just DrawPicture it into the Canvas, and it 
draws over whatever was there (ie, no erasing).

The downside is that you're not going to get the transparency that way.  
It's the erasing that gives you the background, and if you're not 
erasing...  But you could always draw the background into the offscreen 
Picture object before drawing the text, and you'd get the same effect -- 
though it's not quite as flexible.

-Thomas

Personal web page:                 http://home.earthlink.net/~thomasareed/
My shareware:            http://home.earthlink.net/~thomasareed/shareware/
Pixel Pen web pub. guide: http://home.earthlink.net/~thomasareed/pixelpen/

...And the lord said, 'lo, there shall only be case or default labels 
inside a switch statement'               - Real MPW compiler error message





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