Scrolling
-
It's me again... ;) I want to add scrolling to a control I've wrote. Is there a scrolling component like JScrollPane in java, or must I write it all by myself? 10X, Inbal
There are several classes you can inherit from: ScrollableControl, Panel, or ContainerControl. The documentation recommends inheriting from Panel or ContainerControl but you can inherit from ScrollableControl if you wish. James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971
-
There are several classes you can inherit from: ScrollableControl, Panel, or ContainerControl. The documentation recommends inheriting from Panel or ContainerControl but you can inherit from ScrollableControl if you wish. James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971
10x, but how do I register for the scrollbars events? As far as I could see, these events wasn't accessible to a ScrollableControl like myself. What I used to do back in java was to override Paint and draw only the clip rectangle it gave me. That represented the viewport area out of the big I should have drawn without scrollbars. Is there any component like that (JSrollPane) out there? Inbal