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 » U++ Widgets - General questions or Mixed problems » DropList bug/inconsistency
DropList bug/inconsistency [message #38818] Sun, 20 January 2013 11:09
slashupp is currently offline  slashupp
Messages: 231
Registered: July 2009
Experienced Member
Program crashes with following code:

...
DropList dl;

dl.Add("A");
dl.Add("B");
dl.Add("C");
...
dl.SetIndex(dl.FindValue("D"));
...

My opinion is that the current index should clear any selection when it is set to -1
As it is currently I have to Clear() and re-populate the droplist, this is not right, the return values of FindKey()/FindValue() should be handled by SetIndex()
Previous Topic: VScrollBar in a StaticText
Next Topic: Respond to several Ctrl actions
Goto Forum:
  


Current Time: Wed Jul 17 18:16:12 CEST 2024

Total time taken to generate the page: 0.02510 seconds