Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Adding void ArrayCtrl::SetLineTextColor(int i, Color c);
Adding void ArrayCtrl::SetLineTextColor(int i, Color c); [message #58025] Thu, 20 January 2022 10:41 Go to next message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi,

I added "ArrayCtrl::SetLineTextColor(int i, Color c)" in order to allow setting the text color for specific ArrayCtrl lines. (This is useful for showing special status of specific items.) The small changes required are included in the attached ArrayCtrl.h and ArrayCtrl.cpp.

Any chance to merge?

Best regards,

Tom

[Updated on: Thu, 20 January 2022 14:16]

Report message to a moderator

Re: Adding void ArrayCtrl::SetLineTextColor(int i, Color c); [message #58038 is a reply to message #58025] Sat, 22 January 2022 20:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Tom1 wrote on Thu, 20 January 2022 10:41
Hi,

I added "ArrayCtrl::SetLineTextColor(int i, Color c)" in order to allow setting the text color for specific ArrayCtrl lines. (This is useful for showing special status of specific items.) The small changes required are included in the attached ArrayCtrl.h and ArrayCtrl.cpp.

Any chance to merge?

Best regards,

Tom


I am doing this using AttrText. Any reason not to?
Re: Adding void ArrayCtrl::SetLineTextColor(int i, Color c); [message #58044 is a reply to message #58038] Mon, 24 January 2022 09:40 Go to previous message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi,

Thanks for the suggestion. I never knew about AttrText. It was a bit complicated to get everything working, as reading the string back from the cell requires extra steps, but I finally got it working.

Thanks and best regards,

Tom
Previous Topic: ArrayCtrl.Clear() but?
Next Topic: GridCtrl - setting cursor without getting focus
Goto Forum:
  


Current Time: Thu Apr 25 07:12:14 CEST 2024

Total time taken to generate the page: 0.02370 seconds