Ask a Question

Moving between different tabs in RibbonStrip

subbu_valliappa
Contributor

Moving between different tabs in RibbonStrip

I need my scripts to navigate through different tabs in the following control:

 

RibbonStrip.JPG

 

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.

3 REPLIES 3
vajindarladdad
Frequent Contributor

Re: Moving between different tabs in RibbonStrip

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.

subbu_valliappa
Contributor

Re: Moving between different tabs in RibbonStrip

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.

VasanthVijay
Contributor

Re: Moving between different tabs in RibbonStrip

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.

Thanks and Regards,
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
cancel
Showing results for 
Search instead for 
Did you mean: