Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread How To Use Mouse Wheel To Scroll EWB App?
Mon, Aug 6 2018 4:34 AMPermanent Link

Frederick Chin

I have a form where the height is higher than the viewport.. In the form there is a BasicPanel with a button at the top left corner and another button at the bottom right corner. When the form is first shown, the bottom button is not visible.

I have set the Application.Surface.Scrollbars to sbVertical and the vertical scrollbars are visible. If I am not within the panel, I can scroll the form up and down using my mouse wheel. However, if my mouse cursor is in the panel, moving the mouse wheel up or down has no effect.

I tried replacing the BasicPanel with a ScrollPanel and setting the latter's scrollbars to sbVertical but there is no response.

What am I doing wrong?

--
Frederick
Mon, Aug 6 2018 6:08 AMPermanent Link

Matthew Jones

Frederick Chin wrote:

> Application.Surface.Scrollbars

Not sure if it is relevant, but I think that this is probably not needed - better to keep the form restrained and with its content scrolling. Or maybe not - I find that the main thing is a bit of experimentation, but sounds like you are doing that already. Do more? 8-)

--

Matthew Jones
Mon, Aug 6 2018 6:30 AMPermanent Link

Uli Becker

Frederick,
 
> I tried replacing the BasicPanel with a ScrollPanel and setting the latter's scrollbars to sbVertical but there is no response.


There are a couple of approaches to get what you want.

Here a simple one:

http://www.beckersoft.de/demos/viewport/project1.html

Sources attached.

Uli




Attachments: Test Viewport.zip
Mon, Aug 6 2018 10:55 AMPermanent Link

Frederick Chin

Uli,

/*
There are a couple of approaches to get what you want.

Here a simple one:

http://www.beckersoft.de/demos/viewport/project1.html

Sources attached.
*/

Thank you for the solution. Nice and simple.

--
Frederick
Image