You wrote:

> Further to my recent post re QuickDraw issues, I decided to move my
> code into the 21st century and do all my shapes using RB Object2Ds
> (RectShapes, etc...)
> 
> In QD, it was easy to draw the classic marching ants selection outline
> by shifting a pattern and redrawing in response to a timer.
> 
> Never mind the marching, all I want now is the ants, ie. a dashed
> border for my RectShapes and CurveShapes.

Right -- unfortunately patterns (in the QD sense) aren't something easily 
supported cross-platform.  But what you can do is draw your borders into the 
mask of a picture, the image of which has been filled with an appropriate 
pattern.  Then draw this picture to the final graphics context.

Of course, you'll notice that you don't see the marching-ants selection style 
in Apple apps anymore -- the more fashionable look these days seems to be the 
translucent region, which is actually quite a bit easier to do (on OS X, at 
least) with the Object2D classes.

HTH,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Available for custom REALbasic programming or instruction.

_______________________________________________
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>

Reply via email to