1. Phix:color a cell in a pGUI table?
- Posted by euphoric (admin) Apr 01, 2019
- 1123 views
Is there a way to color an individual cell in a table?
If so, will you provide an example, please? (or point me to the docs about it)
Thank you!
P.S. Found this!
2. Re: Phix:color a cell in a pGUI table?
- Posted by petelomax Apr 02, 2019
- 1054 views
euphoric said...
Is there a way to color an individual cell in a table?
If so, will you provide an example, please? (or point me to the docs about it)
Thank you!
P.S. Found this!
Run demo\pGUI\matrix.exw
That's an 8-in-1 demo, I've currently got "4: as 3 but using value_cb, lovely scroll effect!" uncommented (approx line 180)
Due to
-- IupSetAttribute(mat,"BGCOLOR2:2","200 0 0") -- (works fine) IupSetAttribute(mat,"FGCOLOR2:2","200 0 0")
you should see the 2.2 value in red
I haven't actually used IupCells much, preferring IupMatrix, but in my equivalent of that Perl page the auillary functions section shows how to set BGCOLOR on an individual cell.