U++ framework
Do not panic. Ask here before giving up.

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: Sun Jun 28 23:50:13 GMT+2 2026

Total time taken to generate the page: 0.00465 seconds