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. .NET (Core and Framework)
  4. Drawing outside the container

Drawing outside the container

Scheduled Pinned Locked Moved .NET (Core and Framework)
questiongraphicsdocker
5 Posts 3 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.
  • S Offline
    S Offline
    seanwright
    wrote on last edited by
    #1

    Ok, I have a question: Say I have a panel, and in that panel I have a couple of images, arranged in a row, side by side. Using a timer, I want to 'grow' one of the images and also allow it to grow outside of the panel control without getting clipped. Is this possible? If so, how would I go about doing this?

    J G 2 Replies Last reply
    0
    • S seanwright

      Ok, I have a question: Say I have a panel, and in that panel I have a couple of images, arranged in a row, side by side. Using a timer, I want to 'grow' one of the images and also allow it to grow outside of the panel control without getting clipped. Is this possible? If so, how would I go about doing this?

      J Offline
      J Offline
      Jun Du
      wrote on last edited by
      #2

      seanwright wrote:

      Using a timer, I want to 'grow' one of the images and also allow it to grow outside of the panel control without getting clipped. Is this possible?

      Yes, use scrolled window.

      Best, Jun

      S 1 Reply Last reply
      0
      • J Jun Du

        seanwright wrote:

        Using a timer, I want to 'grow' one of the images and also allow it to grow outside of the panel control without getting clipped. Is this possible?

        Yes, use scrolled window.

        Best, Jun

        S Offline
        S Offline
        seanwright
        wrote on last edited by
        #3

        Could you be more specific?

        J 1 Reply Last reply
        0
        • S seanwright

          Ok, I have a question: Say I have a panel, and in that panel I have a couple of images, arranged in a row, side by side. Using a timer, I want to 'grow' one of the images and also allow it to grow outside of the panel control without getting clipped. Is this possible? If so, how would I go about doing this?

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          A control normally won't draw outside it's specified area. Of course you can draw outside the control, but there is no way that you can keep what you have drawn up to date. The control will not get any notification that what you have drawn has been erased and needs redrawing. Create a new control that has the size to contain what you want to draw, place it on top of your control, and use the new control to do the drawing.

          --- b { font-weight: normal; }

          1 Reply Last reply
          0
          • S seanwright

            Could you be more specific?

            J Offline
            J Offline
            Jun Du
            wrote on last edited by
            #5

            I don't think you actually draw outside the control. What you could do is: 1) Use a scrolled window as your container control. When the image grows larger than the window, use the scroll bar to view the hidden portion. Or 2) Support panning capability. Basically, when the image is larger than the window, press the left key and drag the image so that the control window shows the portion that you want to see. In implementation, you draw the entire image to a graphic buffer and only render a portion of it (the same size as the constrol) to the control window. Hope this helps.

            Best, Jun

            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