Print Page | Close Window

Can't add split button popup in a tabbed toolbar

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=5941
Printed Date: 20 June 2025 at 3:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can't add split button popup in a tabbed toolbar
Posted By: joy.m
Subject: Can't add split button popup in a tabbed toolbar
Date Posted: 29 December 2006 at 12:21pm
Hi Everybody,
 
I m very new to cj development. I have created a tabbed toolbar control with activemenu visibility set to false. I have created a split button in the tabbed toolbar which needs to show some menu item. I have checked all sample applications (including SDI form sample) and this forum but could not figure out how to do it. I am attaching my code for evaluation and suggest how to do it properly.
 
Public TabToolBar As TabToolBar
Dim Ctrl As CommandBarControl
Dim toolbarTab As TabControlItem
 
Set toolbarTab = TabToolBar.InsertCategory(1, "Entry")
 
    With TabToolBar
        Set Ctrl = .Controls.Add(xtpControlButton, 201, "Booking")
        Ctrl.Category = "Entry"
        Set Ctrl = .Controls.Add(xtpControlSplitButtonPopup, 202, "Results")
        Ctrl.Category = "Entry"
        Ctrl.BeginGroup = True
    End With
I want to add menu items in the button marked red.
 
Please please help me to overcome this problem. I need it urgently.
 
Thanx in advance.
 
 



Replies:
Posted By: joy.m
Date Posted: 08 January 2007 at 4:17pm
Problem solved. Anyway Thanks to all.



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