Closed jimorc closed 1 year ago
This feature is not implemented. I will add it ASAP.
I will add the following property :
/// @brief Gets a value indicating whether the combo box is displaying its drop-down portion.
bool dropped_down() const;
/// @brief Sets a value indicating whether the combo box is displaying its drop-down portion.
void dropped_down(bool value);
This change does not appear to work.
I changed the box_drop_down event handler as follows and get these results:
voidbox_drop_down(object&sender, consteventargs&e) { std::cout << (box.droppeddown() ? "true": "false") << '\n'; box.items().clear(); box_.items().pushback({"Item 1"}); box.selectedindex(0); box.dropped_down(false);
true is printed. OK.
The dropdown list does not close.
On 2022-10-21 16:53, Gammasoft wrote:
Closed #201 https://github.com/gammasoft71/xtd/issues/201 as completed.
— Reply to this email directly, view it on GitHub https://github.com/gammasoft71/xtd/issues/201#event-7643634688, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABET46CX2GMASOZHEFSNKHDWEL7CZANCNFSM6AAAAAARLBPAQI. You are receiving this because you authored the thread.Message ID: @.***>
-- Jim
Indeed, after checking this feature is not supported by macOS but works correctly on Windows and Linux. So I will adapt the documentation.
Your question
Here is a test program that displays a combo_box. The list is populated when the dropdown list is displayed, and an item is selected. I would like to close the dropdown list programmatically, but I have found no method to do so. Have I missed the method, is it not possible, or does this need to be an enhancement?