[SOLVED] Custom Combo Box

Answered Closed
0
0

Hi

Is it possible to have a combo box with a custom drop down yet?

I see that the Popup User control is now available.

Thanks for your help

Ewan

 

  • You must to post comments
Great Answer
0
0

I can’t find the previous question about the UserPopup. IIRC you were asking about the placement properties.

This is how it works:

  • The UserPopup is a UserControl that you can design as any container, with the difference that it is shown using ShowPoup() https://docs.wisej.com/api/wisej.web/containers/wisej.web.userpopup#showpopup-opener-onclose. The ShowPoup() method shows the panel at the specified x,y location *or* links the popup to the opener control specified in the call.
  • When ShowPopup(opener) is called, the popup is located on the screen in relation to the opener using the Alignment and PlacementModeX/Y properties. It’s like the combobox dropdown but you can also decided if it pops above, left, right, below and if it aligns to the left, middle, right, etc.
  • The system takes care of adjusting the popup location in case it doesn’t fit.
  • Once the popup is visible it will move together with the opener in case the form is moved.

The popup closes automatically when the user clicks outside of the popup or a control outside is activated. You can also close it by calling Close(). The Closed even fires when the popup is closed.

It’s a useful control to create complex input widgets, especially if used in conjunction with the tool icons that all input controls accept.

HTH

Best,

Luca

  • You must to post comments
0
0

Hi Ewan,

Sorry for skipping your other post, the web site was being switched. The UserComboBox is going to be in the next update. The UserPopup control is the base that was needed for the combobox.

Best,

Luca

  • You must to post comments
0
0

Hi Luca

Is the UserComboBox in the current release 1.3.5?

Thanks for your hard work

Ewan

  • You must to post comments
Showing 3 results