Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
UltraPopupControlContainer
posted

I have custom dropdown control which is basically an UltraTextEditor with a DropDownEditorButton containing a windows ListBox. It also under certain conditions will instead show an UltraPopupControlContainer which contains a different ListBox. It all works fine, except in one specific case.

If you click somewhere else on the form, either the normal ListBox or the popup ListBox will close, as is desired and expected. However, if you switch windows without clicking the form, such as using the windows taskbar or show desktop or any other method, the DropDownEditorButton is smart enough to close its dropdown, but the UltraPopupControlContainer will remain awkwardly visible and functional on top of whatever is now the active application.

I couldn't find a property on either UltraPopupControlContainer or on ListBox to explain this phenomenon. Is there a way to fix this?

Thanks

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    What version of the controls are you using?

    Also, how are you showing the ListBox in the case of the UltraPopupControlContainer? Are you using a Context menu or something like that? Or are you just showing it (using the Show method) in code? If it's in code, what event are you using?

    If you are using the Show method, make sure you pass in an owner. You should probably use the form or some control on that form as the owner. If there is no owner, then the popup will now know when the form is deactivated.

Children