Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » DropGrid improvement proposals
|
Re: DropGrid improvement proposals [message #31880 is a reply to message #31879] |
Mon, 04 April 2011 12:49   |
|
koldo wrote on Mon, 04 April 2011 05:34 | Hello Daniel
I like DropGrid control. To make it a little more standard I propose you a couple of changes in DropGrid.cpp:
- Now if control is not editable, it appears with white background as editable
To fix it the change would be:
void DropGrid::Paint(Draw& w)
...
Color bg = !IsEnabled() || !IsEditable() ? ... // Added || !IsEditable()
- When doing a SetData(Null) or just clearing the value in ClearValue() or DoClearValue(), SetFocus() is called .
As in my program a WhenAction function in an EditString is calling droplist.SetData(Null), the EditString loses the focus . However when inserting non Null data, focus is not lost. 
To fix it just remove SetFocus() in both methods.
I would like to get a derived DropGrid control but editable at the same time that drop list is shown. Where in the code drop list is cleared when control loses the focus?
|
You're right. Calling SetFocus is a mistake and this should be fixed. I only wonder why I did this . I'll check it in the evening.
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:57:50 CEST 2025
Total time taken to generate the page: 0.00961 seconds
|