Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » [SOLVED] How to use ColorDisplay?
[SOLVED] How to use ColorDisplay? [message #50373] |
Thu, 04 October 2018 15:54  |
Patisab
Messages: 21 Registered: December 2015 Location: France
|
Promising Member |
|
|
Good afternoon,
In an SqlArray i want to change background color for some rows. For instance, in an array with 8 rows, i want rows 2 to 4 with red background then rows 5 and 6 with blue background and the last row with green background. I want to have the possibility to change colors in my program.
I found in the forum that i have to use Display. The documentation talk about ColorDisplay and i have seen something about a Display's function named PaintBackground.
Someone could explain to me how i can use all of these, please?
Thank you very much for your help.
Best regards.
[Updated on: Tue, 09 October 2018 12:08] Report message to a moderator
|
|
|
Re: How to use CoorDisplay? [message #50376 is a reply to message #50373] |
Fri, 05 October 2018 11:16   |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
Hi,
you can use SetLineColor:
array.SetLineColor(1, LtRed());
array.SetLineColor(2, LtRed());
array.SetLineColor(3, LtRed());
array.SetLineColor(4, LtBlue());
array.SetLineColor(5, LtBlue());
regards
omari.
|
|
|
|
|
|
Re: How to use CoorDisplay? [message #50382 is a reply to message #50381] |
Mon, 08 October 2018 11:17   |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
my guess is that, you have more than one upp installation, and your app is still using the old one.
if your app is in MyApps assembly, please, check your file MyApps.var, verify that the uppsrc is in the new upp version.
here is mine UPP = "C:\\upp/MyApps;C:\\upp/uppsrc";
Note:
instead of TDM-GCC, you can download upp-mingw-11873.7z, that chipped with a preconfigured mingw64 version.
and instead of the stable version, considere using the nightly build, it is also stable, and up to date.
regards
omari.
|
|
|
|
|
Goto Forum:
Current Time: Sun May 11 14:49:59 CEST 2025
Total time taken to generate the page: 0.01210 seconds
|