开发者

How does a scroll pane do scrolling

开发者 https://www.devze.com 2023-02-13 11:42 出处:网络
In windows, Java, etc, the scroll pane scrolls t开发者_如何学运维he widgets inside. What I\'m wondering is, how exactly does it do its scrolling? Does it change the location of each nested widget, or

In windows, Java, etc, the scroll pane scrolls t开发者_如何学运维he widgets inside. What I'm wondering is, how exactly does it do its scrolling? Does it change the location of each nested widget, or does it have a content widget that it moves around? Or is it something else? Also, when both scrollbars are present, how does it mask that little square at the bottom right? That square is sometimes used to resize. Is it a separate nested widget?

Thanks


I think it just changes the location of the widget, button, or thing-a-ma-bober.

But my second guess would be it just draws the components "outside" of the scroll pane without being seen and when you scroll it just redraws dynamically.

0

精彩评论

暂无评论...
验证码 换一张
取 消