Page 1 of 1

ContextMenu not fully visible because of lots of Entries

Posted: Fri Aug 31, 2007 3:12 pm
by sush
We have a ContextMenu containing 32 Elements in a specified Level.
If the Screen Resolution is too small(e.g. 640 480) not all Entries are shown. The hidden ones are reachable by clicking at the end of the visible contextMenu, where an arrow appears.
Currently we are working with
>Ranorex.ContextMenu.SelectItemText("Add...", "Zebra Printer");
which doesnt work.
Is there a RanorexFunction who solves the Problem ? or do i have to go through the full list by keyboard clicks or something else...
Any Suggestions?

kind regards sush


(Using Ranorex 1.2 Pro)

Posted: Mon Sep 03, 2007 9:33 pm
by webops
Ranorex cannot select an unvisible context menu item at the moment, the function ContextMenu.SelectItemText does not scroll the item into view, you have to do it yourself.

I have added this issue to our todo list.
Please send an "END" before selecting the item, this will scroll the menu item into view.

Code: Select all

Application.SendKeys("{END}");                
Ranorex.ContextMenu.SelectItemText("Add...", "Zebra Printer"); 
Jenö
Ranorex Team