[Iup-users] IupMatSetAttribute
Antonio Scuri
scuri at tecgraf.puc-rio.br
Sun Oct 7 15:30:33 GMT+3 2007
These functions are not available in Lua, since you can simply write:
elem["bgcolor"..l..":"..c] = v
or
elem["bgcolor1:1"] = "255 255 255"
Best,
scuri
> -----Original Message-----
> From: iup-users-bounces at lists.luaforge.net
> [mailto:iup-users-bounces at lists.luaforge.net] On Behalf Of Merick
> Sent: domingo, 7 de outubro de 2007 14:16
> To: iup-users at lists.luaforge.net
> Subject: [Iup-users] IupMatSetAttribute
>
> How do I change the background color of a matrix cell?
>
> color_mat = iup.matrix{numcol=8, numlin=32, numcol_visible=8,
> numlin_visible=8, widthdef=5, alignment = "ACENTER"}
> iup.matsetattribute (color_mat, "BGCOLOR", 1,1, "255 255 255")
>
> Basically, what I'm trying to do is use the matrix as a
> custom color palette with the callbacks set so that a left
> click will insert the color codes into text buffer, and a
> right click will open the built-in color selector to let the
> user edit the color for that cell
>
> _______________________________________________
> iup-users mailing list
> iup-users at lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/iup-users
>
More information about the iup-users
mailing list