Print Page | Close Window

Programmatically Drive RibbonBar

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


Topic: Programmatically Drive RibbonBar
Posted By: gregw
Subject: Programmatically Drive RibbonBar
Date Posted: 21 July 2008 at 8:36pm
I am using the ActiveX control version 12.0.1 with VB6.  I have added a RibbonBar or let's even take the RibbonBar example.
 
How can I programmatically click icons.
 
Also I need to programmatically drive checkboxes from various functions in my app.
 
Can you help?
 
gregw


-------------
Greg White



Replies:
Posted By: ijwelch
Date Posted: 21 July 2008 at 8:57pm
Hi,

You can do this using Actions.

Take a look at CommandBarActions overview in help file which explains how to set it up.

Once you've added actions you can 'click' icons by doing something like:
CommandBars.Actions(CONTROL_ID).Execute
and use the Checked property on the checkboxes.


Posted By: gregw
Date Posted: 21 July 2008 at 9:24pm
ijwelch,
 
Thanks, that's just what I needed.
 
gregw


-------------
Greg White



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