Print Page | Close Window

CloseSubMenuOnClick & ShowPopup

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3519
Printed Date: 06 October 2024 at 2:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CloseSubMenuOnClick & ShowPopup
Posted By: dajv
Subject: CloseSubMenuOnClick & ShowPopup
Date Posted: 16 January 2006 at 7:31pm
I am having problems with CloseSubMenuOnClick not working when showing a dynamically created popup using ShowPopup.

I had a look at https://forum.codejock.com/forum_posts.asp?TID=1942&KW=CloseSubMenuOnClick - https://forum.codejock.com/forum_posts.asp?TID=1942&KW=Close SubMenuOnClick but it wasn't any help, and the sample isn't available any more.

I have a popup menu with 4 menu items, one of those a popup menu. when items under that sub menu are clicked i want the menu to stay open. any other selection should close the menu. I read in the above linked thread that all menu items must have the CloseSubMenuOnClick property set for it to take effect, but even when i set it for all the controls in the menu (including ones that I don't want it for), the menu always closes.

Please see the attached sample, which is code I have taken out of the application.

uploads/dajv/2006-01-16_193102_reproduce_closeonsubmenuclick_problem.zip - 2006-01-16_193102_reproduce_closeonsubmenuclick_problem.zip

Thanks



Replies:
Posted By: Oleg
Date Posted: 17 January 2006 at 1:17am

Hello,

this option can't work with TPM_RETURNCMD.

so choose or TPM_RETURNCMD, or CloseSubMenuOnClick.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: dajv
Date Posted: 17 January 2006 at 6:20pm
Thanks, that makes sense.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net