Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Scrolling

Scrolling

Scheduled Pinned Locked Moved C#
javaquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    inbal666
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • I inbal666

      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

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      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

      I 1 Reply Last reply
      0
      • J James T Johnson

        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

        I Offline
        I Offline
        inbal666
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups