Oleg,

        Thank you very much. Your example is super, as
always.

        I need to study your solution to see how I can use
it. What I am really trying to do is highlight one of (say)
three thumbnail pictures at a time when that thumbnail is
selected, so my idea was to put a red picture frame around
the highlighted thumbnail and erase the one that was
highlighted. I thought the glrects could be placed directly
under each thumbnail and with the 3 rectangles just a little
larger than the 3 thumbnails, when the rectangles were not
background colored, they would look like a picture frame. I
can probably do that with your scheme; I will see.

        It may not have been clear from my previous post
that no matter what order I execute the 3 paint commands,
only the one for 0{rects works. That is really a surprise
for me. That is, in the demo below, the order of the paint's
does not matter; only 255 0 0 paint 0 produces a rectangle.

+ > Note 'demo'
+ > gl2lab_run''
+ > 255 0 0   paint 0       NB. paints
+ > 255 255 0 paint 1       NB. NO paint
+ > 255 0 255 paint 2       NB. NO paint
+ > )

Brian
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to