Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scroll / jump to view posn in Java or where - PDFSPEC.PDF

Status
Not open for further replies.

Cresby

Programmer
Aug 15, 2002
287
GB
I am trying to create a scrolling sequence based on the "cursor enter" context of a form > run java.

The user can then scan through the sequence just by passing over the designated area(s).

scroll(x,y)

only seems to go to bottom LH corner, in PDFSPEC.PDF it will tell me how to set-up user space but Adobe seem reluctant to reveal it's changed whereabouts or I have to purchase an SDK.

Any ideas where to find or what I sould do with "user space".
 
sort of answered myself
FWIW

scroll (400,900)

places the view in the top RH corner (ish) on my A4 pages but I don't yet see how to position the cusror so it is very much trial and error on forcing the view and making sure that the cursor is not in a position to react to a "mouse enter" instruction in a "form" .

"zoom" & "this.pageNum" come in handy as they can be read to a variable and written back for a true "return to calling location".

I don't yet see how to read the current position on the screen as scroll is write only from what I have seen
I will try "this.xOrigin" and "this.yOrigin" when I get back to base.

Still looking for ideas on that though.

 
refined the answer.
A4 page responds to about 900 top and 2-300 right but infuriatingly it is tied to zoom. I now zoom first and position next because I may not know the zom before the scroll instruction.
But this may be related to pixel denity (600 per inch on graphics)
Having got my Imediate answer I won't delve any deeper.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top