Graphic text and border colour

David Bovill david at architex.tv
Thu Oct 1 18:56:34 EDT 2009


Good hack - thanks!

2009/10/1 BNig <niggemann at uni-wh.de>

>
> 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.
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list