Page 1 of 1

Add #PB_EventType_Focus and #PB_EventType_LostFocus events to noneditable ComboBoxGadgets

Posted: Wed Mar 26, 2025 10:52 pm
by Quin
The title pretty much sums up this one. The documentation states:
#PB_EventType_Focus : The edit field received the keyboard focus (editable ComboBox only).
#PB_EventType_LostFocus: The edit field lost the keyboard focus (editable ComboBox only).
However, a ComboBoxGadget can receive the keyboard focus even when it's not editable. Is it possible for these two events to be used for that case as well?
Thanks!

Re: Add #PB_EventType_Focus and #PB_EventType_LostFocus events to noneditable ComboBoxGadgets

Posted: Thu Mar 27, 2025 8:29 am
by Little John
+1

Here is a workaround.

Re: Add #PB_EventType_Focus and #PB_EventType_LostFocus events to noneditable ComboBoxGadgets

Posted: Sun Apr 13, 2025 9:47 pm
by Quin
Very neat workaround, Little John. I'd advocate for adding it to all gadgets that your workaround supports, as well as ListViewGadget and any others that don't support it.