General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Issue with GoToNext in XMAX v6?
-
MrPaul June 13, 2013 at 6:06 pm
Issue with GoToNext in XMAX v6?
June 13, 2013 at 6:06 pmParticipants 0Replies 1Last Activity 9 years, 8 months agoHi,
Is there a known issue with the GoToNext API call? Consider the following:
[code]range.GotoNext(sqWordStart)[/code]
If my range selection is at the starting of:
[code]one
two three [/code]The GoToNext call seems to skip “two” and goes directly to “three”. It seems to be skipping the first word inside an element. If there is no element, the function seems to work properly. Is this a known issue?
I am using XMAX version 6.0.0.159.
Thanks.Derek Read June 13, 2013 at 8:44 pm
Reply to: Issue with GoToNext in XMAX v6?
June 13, 2013 at 8:44 pmI can't seem to reproduce this.
In order to see where the Range actually ends up I have been testing with this code and XMAX 6.0.0.159:
//XMetaL Script Language JScript:
var rng = ActiveDocument.Range;
rng.GotoNext(sqWordStart);
rng.Select();This Range API (and the equivalent on Selection) is directly linked to what a user can do with a selection and the keyboard. What happens in your case when you press Ctrl+Right Arrow?
Perhaps the application hosting XMAX is making a difference. What do you have XMAX embedded inside of, and which version of Windows is it on?
-
AuthorPosts
- You must be logged in to reply to this topic.