Moving between different tabs in RibbonStrip
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Moving between different tabs in RibbonStrip
I need my scripts to navigate through different tabs in the following control:
The ClassName of the control is "DevComponents.DotNetBar.RibbonStrip".
I could see hundreds of methods for this control using Object Spy but I couldn't figure out if there is one that actually clicks or selects a tab e.g. Edit (from the image)
Any help would be greatly appreciated.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am assuming that you have mapped the ribbon.
Can you please try below code.
Sub Test1
Dim myControl
Set myControl = Aliases.MyApp.MyAppDocument.MyAppRibbon
Call myControl.Edit.Click()
Call myControl.Data.Click()
End Sub
Here myControl is the declared working as a ribbon control and "Edit" and "Data" are the tab names.
Please let us know , if this code does not work.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For some reason, Click doesn't work for me - it's also not available as a method when I use Object Spy.
Select does work so that's the one I'm using now.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
function a()
{
var a = Sys.Process(ApplciationName);
var b = a.WinFormsObject("FrmMain").WinFormsObject("radRibbonBar1").ClickItemXY(menuIndex,0,0);
}
function sa()
{
MenuClick.ClickMenu(ProjectSuite.Variables.BG);
}
Nee to create Project Variable for File,Edit,View.
Vasanth.V
Wittmann Battenfeld India Pvt. Ltd.,
Chennai.
Email : Vasanth.Veeravijayan@wittmann-group.com
Website : www.wittmann-group.com
Mobile: +91 8870219392 | Landline: +91 44 4207700
