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 » DropGrid improvement proposals
DropGrid improvement proposals [message #31879] Mon, 04 April 2011 11:34 Go to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
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 Smile.
As in my program a WhenAction function in an EditString is calling droplist.SetData(Null), the EditString loses the focus Smile. However when inserting non Null data, focus is not lost. Smile
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?


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Previous Topic: GridCtrl questions
Next Topic: FIX: ArrayCtrl to support Style
Goto Forum:
  


Current Time: Sat Apr 27 15:32:06 CEST 2024

Total time taken to generate the page: 0.03907 seconds