fxruby icon indicating copy to clipboard operation
fxruby copied to clipboard

Query about Combobox

Open nzneil22 opened this issue 3 years ago • 2 comments

Hi,

Is there a way to open the menu pane of a Combobox using code?

example, FXComboBox.showMenu(TRUE)

TIA

nzneil22 avatar Apr 28 '22 07:04 nzneil22

Try to invoke the event that would open that. It has been a long time since I don't do that, but I think you could do something like this:

@widget.handle(@widget, FXSEL(SEL_COMMAND, 0), nil)

That would trigger the SEL_COMMAND event on certain @widget, in your case, the #FXComboBox. Try to see what event open it.

Hope this helps somehow. Cheers.

damian-m-g avatar Apr 29 '22 16:04 damian-m-g

Thanks for your reply.

I could not find a particular event that opens the menu of the combo box unfortunately

Cheers

nzneil22 avatar May 02 '22 08:05 nzneil22