Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » How to Setup ArrayCtrl colors ?
Re: How to Setup ArrayCtrl colors ? [message #18594 is a reply to message #18591] |
Fri, 10 October 2008 21:29 |
Oblivion
Messages: 1093 Registered: August 2007
|
Senior Contributor |
|
|
Quote: |
thanks alot ....... but this dont color the whole cell
it leaves some parts uncolored .....how can i fix this problem ??
|
That part is background. You should handle background too. Same as Paint (You can safely apply the below code to Mrjt's code).
virtual void Paint(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const
{
w.DrawRect(r, SColorInfo);
w.DrawText(r.left, r.top, q.ToString());
}
virtual void PaintBackground(Draw& w, const Rect& r, const Value& q, Color ink, Color paper, dword style) const
{
w.DrawRect(r, SColorInfo);
}
}
But if you paint background manually, you should handle "highlighted state" of cell manually too.
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Fri, 10 October 2008 21:33] Report message to a moderator
|
|
|
|
|
How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: Oblivion on Fri, 10 October 2008 12:41
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: Oblivion on Fri, 10 October 2008 14:23
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: Oblivion on Fri, 10 October 2008 14:56
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: unodgs on Fri, 10 October 2008 14:59
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: mrjt on Fri, 10 October 2008 16:15
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: Oblivion on Fri, 10 October 2008 21:29
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: mirek on Mon, 20 October 2008 07:42
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: mrjt on Tue, 21 October 2008 14:27
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: mirek on Tue, 21 October 2008 19:00
|
|
|
Re: How to Setup ArrayCtrl colors ?
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: mrjt on Mon, 13 October 2008 12:44
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: whiteman on Wed, 10 February 2010 17:36
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: mirek on Tue, 16 February 2010 20:53
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: darki699 on Thu, 23 October 2008 19:56
|
|
|
Re: How to Setup ArrayCtrl colors ?
By: mirek on Sat, 01 November 2008 23:37
|
Goto Forum:
Current Time: Mon Apr 29 13:45:27 CEST 2024
Total time taken to generate the page: 0.02254 seconds
|