Print Page | Close Window

Add Buttons to xtpControlSplitButtonPopup in QA

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=10691
Printed Date: 07 October 2024 at 10:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add Buttons to xtpControlSplitButtonPopup in QA
Posted By: jpbro
Subject: Add Buttons to xtpControlSplitButtonPopup in QA
Date Posted: 19 May 2008 at 3:27pm
Is there a way to add buttons (or other controls) to a xtpControlSplitButtonPopup control in the Quick Access bar? I've tried:


      Set objQA = mobjRibbonBar.QuickAccessControls.Add(xtpControlSplitButtonPopup, CMD_Print, "Print")
      objQA.Controls.Add xtpControlButton, CMD_PrintSetup, "Print Setup"


    To try and get Print Setup to attach to the combo portion of the Print command, but it gets added to the area below the quick access bar instead of to the popup menu.

Thanks in advance.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: Oleg
Date Posted: 19 May 2008 at 3:53pm
Hi,
 
try
 
Set objQA = mobjRibbonBar.QuickAccessControls.Add(xtpControlSplitButtonPopup, CMD_Print, "Print")
objQA.CommandBar.Controls.Add xtpControlButton, CMD_PrintSetup, "Print Setup"


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


Posted By: jpbro
Date Posted: 19 May 2008 at 4:00pm
Hi Oleg,

Thanks, I was just about to come back and post that I found this, so sorry for wasting your time. The reason I didn't find this earlier is that for some reason the CommandBar property is not showing up in the Intellisense list for the CommandBarControl object. I figured I would try it anyway since it was in your sample, and it worked...is this something you can verify on your end (if not, I guess something is just misconfigured on my end).




-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




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