April 20, 2024, 12:05:03 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


scrolling an area of a window

Started by Haim, September 06, 2008, 08:04:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Haim

Hello,
Can anyone show me how to scroll both raphics and controls in a window?

Any help would be appreciated.

Haim

Ionic Wind Support Team

Haim,
There are a number of ways to accomplish it.  The easiest is to use two windows, the main window that has the scrollbars and a child container window, captionless, that contains the controls.  When a scrollbar moves you offset the position of the child container window with the negative scroll amount, using SETSIZE.

The child container window becomes your virtual document then, and can be any size which determines the range of the parents scrollbars.

Try it for yourself, and if you get stuck then post here and I'll lend a hand.

Paul.
Ionic Wind Support Team

Haim