By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,017 Members | 1,004 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,017 IT Pros & Developers. It's quick & easy.

Stop combo box closeup event

P: n/a
Hi all,

I'm trying to implement right-click functionality on the drop-down
portion of a combo box. I want to show a context menu when the user
right-clicks on an item in the dropdown list - I currently have this
working, but as soon as the menu appears the dropdown portion of the
combo box disappears. I would like this to remain visible behind the
context menu.

I have handled the cbn_closeup event, but it appears as if this event
is triggered *after* the list has already been closed. Is there any
way I can stop the list from closing up in the first place?

Thanks.

Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,
I'm not very sure of it, but you would have to derive from it and handle it,
probably what is happening is that the control lose the focus and the
expected action is remove the list, you will have to handle this situation
in your new control, when you are about to lose the focus, check if the
context menu is the new focused control and if so do not call the base
handler.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"gabble" <ah********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi all,

I'm trying to implement right-click functionality on the drop-down
portion of a combo box. I want to show a context menu when the user
right-clicks on an item in the dropdown list - I currently have this
working, but as soon as the menu appears the dropdown portion of the
combo box disappears. I would like this to remain visible behind the
context menu.

I have handled the cbn_closeup event, but it appears as if this event
is triggered *after* the list has already been closed. Is there any
way I can stop the list from closing up in the first place?

Thanks.

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.