Image of Navigational Panel mapped to Contents / Home / Search ImageKnife Scrollbars
Tech Support Question

Image of Line Break

Q. I'm using the scrollbars with ImageKnife/VBX v2.0, and I need to know how to find out the current location of the scrollbars. How do I do that?

A. The best and most effective way to reposition an image is to use the Repos method. If you want to reposition the image and use the scrollbars as reference, the best way to do that is to use an ScreenToImageX and Y of the upper left hand corner of the ImageKnife control. (i.e. 0,0)

You can then use the Repos method with that same coordinate and the values returned by ScreenToImageX and Y. However, if you really want to use the scrollbars, refer to the answer to the question below.

Q. How do I move an image around programmatically without the scrollbars?

A. Use the ikScreentoImagex and ikScreentoImagey with the picbuf in question and 0 for the location or Ylocation, and it will return the current value of the scrollbars. To return an image to a scrolled location, use the ikRepos statement.

Image of Arrow to Previous Article Image of Arrow to Next Article

[TECH SUPPORT TOC]
Image of Line Break
[HOME] [TABLE OF CONTENTS] [SEARCH]