Contributions
How to convert retrieved property 'BackColor' to System.Drawing.Color?
Hi, How do I convert retrieved BackColor property to System.Drawing.Color? This is the code I use to get the BackColor: object backColorValue = textEdit.GetProperty<object>("BackColor"); But how do I convert it to type System.Drawing.Color? According to TestLeft Spy this is the class name of this property (ClrFullClassName) Simple casting does not seem to work: Color c = (Color)backColorValue; Exception: Additional information: Specified cast is not valid.8 years agoPlace TestLeft QuestionsTestLeft Questions2KViews0likes0CommentsRe: How to check if ribbon IBarItem (a button) is enabled or not (DevExpress WinForms)
Thanks, This helped a lot! Added the driver option opened a lot of (missing) information to the Spy tool. This also helps with other issues I had with other controls...8 years agoPlace TestLeft QuestionsTestLeft Questions5.8KViews0likes0CommentsRe: How to check if ribbon IBarItem (a button) is enabled or not (DevExpress WinForms)
The RibbonControl which is used is supported in the DevExpress version we use. The problem is that only the ribbon control is visible in TestLeft Spy and not the content of the ribbon (no children visible). Using programming code I can iterate through the Items collection and get the appropriate button, but the resulting IBarItem interface does not give me any useful methods and properties (except the GetProperty method) Using the Windows Inspect tool (from the Windows SDK Kit) I can see the ribbon and all its children, including the button of interest. BTW: the property is called 'IsEnabled' in the Inspect tool; changed the code, but problem remains:. Exception:Additional information: The object does not support the 'IsEnabled' member. All I want is to see is and button on the ribbon control is enabled or not.... How hard can this be?8 years agoPlace TestLeft QuestionsTestLeft Questions5.8KViews0likes1CommentHow to check if ribbon IBarItem (a button) is enabled or not (DevExpress WinForms)
Hi, I am trying to get the Enabled status of a ribbon baritem button. when trying the following code I get a exception:The object does not support the 'Enabled' member. What am I doing wrong? The code: IBarItemribbonitem = GetRibbonBarItem(ribbon, "QuickAccessToolbar|Save"); // This function returns the button of interest var status = ribbonitem.GetProperty<bool>("Enabled");Solved8 years agoPlace TestLeft QuestionsTestLeft Questions5.8KViews0likes6CommentsCannot see (and control) the DevExpress XtraLayout.TabbedControlGroup in TestLeft Spy tool
We have a very nested WinForms/DevExpress application. There is a screen with a ITabControl with a LayoutControlGroup and inside that a TabbedControlGroup and inside that a another LayoutControlGroup If I inspect this screen I do not see the TabbedControlGroup, but the inside LayoutControlGroup I do see. Does TestLeft support the following controls? - XtraLayout.TabbedControlGroup (I cannot see this in the spy tool, therefore not click on/select Tabs) - XtraLayout.LayoutControlGroup (I do not have problem accessing controls inside this control) Please help with useful tips and/or workarounds2.2KViews0likes0CommentsHow do I select a item in the DevExpress IStripPopupMenuOwner object using C#?
I have a 'dropdown' in theWinForms application implemented with a DevExpress IStripPopupMenuOwner object. I don't see in the TestLeft Spy any methods to click or select an item. Please can I get a working example on how the select a item from this list?8 years agoPlace TestLeft QuestionsTestLeft Questions2KViews0likes0CommentsHow do I select a value in a DevExpress LookupEdit using TestLeft and C#
I need a working example in C# on how to select a value (row) in a DevExpress LookupEdit control. I did find an example for TestComplete (Example), but couldn't convert it to C#.Solved8 years agoPlace TestLeft QuestionsTestLeft Questions11KViews0likes2Comments