Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread ViewPort / Surface scrolling (2.02)
Thu, Oct 15 2015 3:46 AMPermanent Link

Eivind

All

Just a quick question about scrollbars. In my project on larger forms I have the below code in the OnShow event: (Got it from an example project prior to 2.02)

  With Application do begin
     ViewPort.OverflowY:=otAuto;
     Surface.Constraints.Min.Height:=(Self.Height+40);
  end;

It works perfect and triggers a scroll bar. I'm quite sure that when this project compiled under 2.01 I could use my mouse wheel to scroll. Now when this code runs under 2.02 I have to click, hold and drag the scroll bar that shows up. No scrolling with the mouse wheel is possible. I tested this under Edge, Firefox and Opera (All newest versions)

I might have missed some breaking changes regarding this, and would highly appreciate if anyone could point me in the right direction on how to get the mouse wheel working when forms are larger than the user browser windows

Thanks
Eivind
Thu, Oct 15 2015 5:19 AMPermanent Link

Eivind

Further Info and a VDO...

As I mention above, I'm unable to scroll with the mouse wheel when the scroll bars become visible. If a scrollable container has focus however, then the mouse wheel scroll will first scroll the surface, then the control. See the attached VDO for an example. As the VDO demonstrate, once I open a Combobox and start scrolling that combobox with the mouse wheel, the whole surface scrolls as well. On a Mac, even though the whole form are visible and no scroll bars are present, the whole form jumps up and down a bit every time I command the mouse wheel.

Eivind



Attachments: EWB_scrolling.mp4
Thu, Oct 15 2015 2:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Eivind,

Nice looking project.  Be sure to send us a case study when you're done with it. Wink

<< As I mention above, I'm unable to scroll with the mouse wheel when the scroll bars become visible. If a scrollable container has focus however, then the mouse wheel scroll will first scroll the surface, then the control.

See the attached VDO for an example. As the VDO demonstrate, once I open a Combobox and start scrolling that combobox with the mouse wheel, the whole surface scrolls as well. On a Mac, even though the whole form are visible and no scroll bars are present, the whole form jumps up and down a bit every time I command the mouse wheel.  >>

I'm seeing what you're seeing.  I'll have to check it out to see what's going on - there may be an issue with the mouse wheel not getting handled properly for the viewport.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Oct 20 2015 5:24 AMPermanent Link

Eivind

Tim, thanks for looking into this. As I read the http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&msg=7914&page=1 thread, my problem was solved by implementing the patch you mention there.

Eivind
Tue, Oct 20 2015 1:55 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Eivind,

<< Tim, thanks for looking into this. As I read the http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&msg=7914&page=1 thread, my problem was solved by implementing the patch you mention there.  >>

Sorry, I forgot to check back in to this thread.   I'm glad that it solved the problem for you.

Tim Young
Elevate Software
www.elevatesoft.com
Image