Print Page | Close Window

combo and closesubmenuonclick

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=12916
Printed Date: 17 June 2025 at 8:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: combo and closesubmenuonclick
Posted By: Fossil
Subject: combo and closesubmenuonclick
Date Posted: 13 December 2008 at 10:20am
Hi,
Got a popup with commandbarcombo on it.  When I select an option in the combo the popup disappears so I set the CloseSubMenuOnClick=False.  Now when I select an option in the dropdown the dropdownlist stills stays visible, of course the popup doesnt disappear.  I am looking for a way to handle closing the dropdown list just like a normal combo box and for the popup to stay visible.

Thanks
v12.1.1 Windows XP


-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0



Replies:
Posted By: Oleg
Date Posted: 15 December 2008 at 1:34am
Hi,
 
As workaround remove selection from Combo:
 
Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)
    Select Case Control.Id
        Case ID_FILE_NEW:
        If (Control.Type = xtpControlComboBox) Then
            Set Control.Parent.SelectedControl = Control.Parent.Controls(1)
            Set Control.Parent.SelectedControl = Control
       
       
        End If


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



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