Home » U++ Library support » LineEdit, EditFields, DocEdit » [BUG] DropList selection goes blank... (When moving focus away from an initial selection of a drop list, the drop list displays a blank selection.)
[BUG] DropList selection goes blank... [message #50469] |
Sun, 04 November 2018 20:38 |
ptkacz
Messages: 89 Registered: March 2017
|
Member |
|
|
Here's a bit of code that populates a DropList and selects one of the options to display as default value:
dropList.Add("Cows");
dropList.Add("Apples");
dropList.Add("Cars");
dropList.Set("Cars");
Initially when the drop-list displays, "Cars" lists as the default selection. Upon selection, "Cars" still lists, followed by the drop list of values, Cows (highlighted), Apples, and Cars. When focus is removed away from the drop-list, the original selected entry is cleared.
Now, if a selection was made from the drop-list was previously user selected, and the drop-list is selected, followed by focus being removed and the drop-list collapsing, the previous selection would continue to display.
Why is this behaviour happening?
Peter
|
|
|
Re: [BUG] DropList selection goes blank... [message #50471 is a reply to message #50469] |
Mon, 05 November 2018 19:34 |
|
mirek
Messages: 14105 Registered: November 2005
|
Ultimate Member |
|
|
ptkacz wrote on Sun, 04 November 2018 20:38Here's a bit of code that populates a DropList and selects one of the options to display as default value:
dropList.Add("Cows");
dropList.Add("Apples");
dropList.Add("Cars");
dropList.Set("Cars");
Initially when the drop-list displays, "Cars" lists as the default selection. Upon selection, "Cars" still lists, followed by the drop list of values, Cows (highlighted), Apples, and Cars. When focus is removed away from the drop-list, the original selected entry is cleared.
Now, if a selection was made from the drop-list was previously user selected, and the drop-list is selected, followed by focus being removed and the drop-list collapsing, the previous selection would continue to display.
Why is this behaviour happening?
Peter
Wrong method. Use SetData or operator<<=.
Mirek
|
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 01:39:36 CET 2024
Total time taken to generate the page: 0.01422 seconds
|