[Iup-users] IupMatSetAttribute
Merick
Merick_TeVaran at comcast.net
Sun Oct 7 14:15:53 GMT+3 2007
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
More information about the iup-users
mailing list