U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
Cursor row color/headers color in ArrayCtrl and SQLCtrl
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48199&th=10013#msg_48199
It's nice that we can change some colors in ArrayCtrl and SQLCtrl. But seems that there is no way to change the Cursor row color when the focus is lost : it's always gray, and not very visible when the cursor row is the first under the headers... I need to have it more visible, either by changing the unfocused cursor row color, either by changing the headers color (The 2 possibilities would be great ! But at least one...).
I'm not very sure that it's possible with GridCtrl, anyway I need this more especially for SQLCtrl, so it's difficult to replace it by GridCtrl...
It seems difficult to do that just by overriding the paint method... So, what is the best way to do that ?
]]>jibe2017-06-01T13:53:44-00:00Re: Cursor row color/headers color in ArrayCtrl and SQLCtrl
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48266&th=10013#msg_48266
I just (re)discoverd Chameleon : I never payed attention to that (seems a little complicated and not well documented). Could it be a solution ? I'll try to study that and make some tries...
If somebody has some experience to share or advices about using chameleon in such a case, he will be welcome !]]>jibe2017-06-13T09:35:43-00:00Re: Cursor row color/headers color in ArrayCtrl and SQLCtrl
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48343&th=10013#msg_48343
jibe wrote on Thu, 01 June 2017 15:53
Hi
It seems difficult to do that just by overriding the paint method... So, what is the best way to do that ?
SetDisplay (with your custom Display derived instance)]]>mirek2017-06-24T14:27:49-00:00Re: Cursor row color/headers color in ArrayCtrl and SQLCtrl
https://www.ultimatepp.org/forums/index.php?t=rview&goto=48358&th=10013#msg_48358
Thanks, I did not thought about a Display derived instance... I'll see that next time.
For this case, I finally used successfully Chameleon. Not very easy because there is few documentation and not always very clear, but in fact it is not very difficult and does very well the job for me.
If I can find some time, I'll try to explain how I did and complete the doc : I think that it is worth to better know Chameleon !]]>jibe2017-06-26T06:57:06-00:00