High-Lighting an Image Object

MisterX b.xavier at internet.lu
Mon Oct 3 15:26:55 EDT 2005


> Eric Chatonet wrote:
> > Hi Dave,
> > 
> > Unfortunately :-( you can't set directly the borderColor of 
> an image:
> > 'set the borderColor of img 1 to red' don't lead to an 
> error but has  
> > no effect.

Then Richard wrote:

> Confirmed, and logged as Bug #3158:
> <http://support.runrev.com/bugdatabase/show_bug.cgi?id=3158>
> 

Hi Richard, Eric, dear list,

it's not a bug, it's a feature request since metacard 2.5 so it should be 
an enhancement, not a bug... I noticed this afternoon in the MC help from
MC 2.5 before I brought it up with the mouseenter script to help out.

Note also bugzilla 3144
http://support.runrev.com/bugdatabase/show_bug.cgi?id=3144

It's not just borders but also patterns...

The whole zilla is about this "graphic" issues like:
- allowed changed to wrong props in RPP (revpropertypalette) - there's no
patterns to fields
- no visual change in pattern borders for some controls

The RevDocs don’t explain everything and give IMOHO a bad tip (inheritance 
and rev-design wise).

But if there is one thing you can do, it's to make a "hiliter button".

it's completely unharmful and safe...

you put a button (not opaque) behind the image (or what have you 
that you need to hilite).

The technique is very easy... you wrap the image with the button's
frame which you hilite! You can make it any width or color to attract
some attention...

The technique is demonstrated in XOSMediaLib.rev on MonsieurX.com
with grid alignment, click-select image, see-trough hilite, side-list 
selection, scrolling in a pane (group), aligment on a grid, etc... 

I never thought of the animation though. 

http://monsieurx.com/modules.php?name=Downloads&d_op=viewdownload&cid=24

There's also a specialized function for it in GIM.rev (also on
MonsieurX.com)

Sorry, there's not much help, it's a control-gui-image library I use across
different stacks for my liveframeworkflow TAOO. (bugzilla 2449
http://support.runrev.com/bugdatabase/show_bug.cgi?id=2449 to which Richard 
and Tuv contributed in an indirect way... ;)

This flashy type of hiliter was used in HyperCard to show "tab" and keyboard
navitation between fields in the late 80s... And it shows how to hilite
things 
like lists, buttons, fields, labels, images or players with just one button
or key...

Not that Richard's bug I not important but I believe the bugs demonstrated
in 3144 are far more reaching and encompass this "enhancement" assuming 
"patterns" are also impossible to affect to borders of controls... 

just my 2 cents on this lower level issue of borders in controls in rev

Deeper still is the crossplatform way of displaying graphics, patterns,
inklevels which maybe opengl could solve easily... Yes, im thinking of
rev controls in 3D openGL space... Your stacks could be fields of flowers
or real e-books... 

ciao
Xavier
what goes in a bugzilla anyway?




More information about the use-livecode mailing list