On Wednesday 02 February 2005 17:26, Wendell Turner wrote:
> How can I change the color of a button in the v11 graphics?  The
> v10 way was
>
>   b := TextButton("label=Button", "pos=50%,66%", "align=c,c")
>
> then later
>
>   b.attrib("bg=blue", "label=connected" )
>   b.invalidate()
>
> but that doesn't seem to work now.  The label changes, but not
> the color.  Any suggestions?
>

Try using

        b.finally()
        b.init()

after changing the attributes.  This uncouples the button's cloned windows and 
re-creates them with the new attributes.

Hope this helps,

R


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to