Print Page | Close Window

Display popup menu when a combo button is clicked

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=5021
Printed Date: 02 December 2024 at 1:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Display popup menu when a combo button is clicked
Posted By: ianp
Subject: Display popup menu when a combo button is clicked
Date Posted: 11 September 2006 at 11:29am
Is it possible to display a customised menu instead of the standard popup menu when a combo button is clicked?
 
The following code (using the InplaceButtonDown event) does display the custom popup, but the standard combo menu is also displayed.
 

  If Item.Flags = ItemHasComboButton Then
    Dim xcbCtrlPop As XtremeCommandBars.CommandBarPopup
    Dim iControlID As Long
    Set xcbCtrlPop = xcbSearch.DesignerControls.Find(, XCB_POP_CONTEXTMENU, False, True)
    If Not xcbCtrlPop Is Nothing Then
      ' Show Context Menu
      ZOrder
      iControlID = xcbCtrlPop.CommandBar.ShowPopup(TPM_RETURNCMD)
    End If
  End If
 
 
Any ideas?



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