Graphic text and border colour

BNig niggemann at uni-wh.de
Thu Oct 1 14:59:17 EDT 2009


David,

if you can live with black text than you can change the bordercolor by
setting the strokegradient
--------------------------
on mouseUp
   put "0.0,255,0,0" & return & "1,255,0,0" into myRamp -- make it all red
   set the strokegradient["ramp"] of graphic 1 to myRamp
   put the loc of graphic 1 into tLoc
   set the strokegradient["from"] of graphic 1 to tLoc
   set the strokegradient["to"] of graphic 1 to item 1 of tLoc & "," & the
bottom of grc 1
   set the strokegradient["via"] of graphic 1 to the left of grc 1 & "," &
item 2 of tLoc
   set the strokegradient["type"] of graphic 1 to "radial"
end mouseUp
-----------------------

this works with all the graphics, admittedly it is a bit awkward.

regards
Bernd


David Bovill-3 wrote:
> 
> 2009/10/1 Richmond Mathewson <richmondmathewson at gmail.com>
> 
>> David Bovill wrote:
>>
>>> Is there a workaround to give the border of a graphic shape a colour
>>> which
>>> is different to the colour of it's text label? Or is the only way to
>>> position a text field over the graphic?
>>> _______________________________________________
>>>
>>
>> They never conceived of people wanting to use Graphic Objects
>> as fake buttons!
> 
> 
> I'm just graphing networks - and the graphs have the ability to have the
> text formatted independently of the border. It's a bit strange as there
> are
> all these other colour options available which - well not even sure what
> they are really needed for :(
> 

-- 
View this message in context: http://www.nabble.com/Graphic-text-and-border-colour-tp25699014p25704709.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list