Forum Discussion

santoguya's avatar
santoguya
Contributor
14 years ago

Setting a property of a third-party plugin

I am using a third party plugin called Component One (which is in the list of supported plugins), which has been installed via "Install Extensions", and when I click on a C1Ribbon object with tabs, the "click" record doesn't record a C1Ribbon->RibbonTabCollection Click, but instead, a (x,y) mouse location click on the C1Ribbon (Operation: Click, Value, (x,y) coordinate, Click as a point (x,y)  of the C1Ribbon object).



The problem is, depending on the resolution and the size of the C1Ribbon menu, the click may or may not be in the correct place.



There is a property of the C1Ribbon, called SelectedTabIndex, which corresponds to the tabs, my question is:



How do I set the property of C1Ribbon.SelectedTabIndex property or just set a property of any windows form in genearl? Is there a way to do this with vb.net advanced scripting such as



Set Aliases.BrzAermod.Main.C1Ribbon.SelectedTabIndex = 2  or Aliases.BrzAermod.Main.C1Ribbon.ClickTab("Tab1")



or



Set Winforms.Combobox.SelectedIndex = 2



?

 

In summary, I want to script a "set property" action instead of recording a click location action which does not work in all cases.



Please advise!