ContextMenu not fully visible because of lots of Entries

Class library usage, coding and language questions.
Posts: 2
Joined: Fri Aug 31, 2007 2:56 pm
Location: Graz/Austria

ContextMenu not fully visible because of lots of Entries

Post by sush » Fri Aug 31, 2007 3:12 pm

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)

Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Mon Sep 03, 2007 9:33 pm

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

Ranorex.ContextMenu.SelectItemText("Add...", "Zebra Printer"); 
Ranorex Team