Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Display popup menu when a combo button is clicked
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Display popup menu when a combo button is clicked

 Post Reply Post Reply
Author
Message
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Topic: Display popup menu when a combo button is clicked
    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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.