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. using Scrollbar for panning in my Graphics Editor

using Scrollbar for panning in my Graphics Editor

Scheduled Pinned Locked Moved C#
graphicscsharpgame-devhelp
1 Posts 1 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.
  • A Offline
    A Offline
    a_david123
    wrote on last edited by
    #1

    Dear All Regards! i m going to develop a Graphics Editor in C# and OpenGL, now i am going to display my drawing on a canvas, and the canvas display area variables r display_min_x display_max_x display_min_y:rolleyes: display_max_y and i m going to display using the following code for zooming ------------------code------------------------ GL.GLMatrixMode(GL.GL_Projection); GL.GLLoadIdentity(); GL.gluOrtho2D(display_min_x,display_max_x,display_min_y,display_max_y); ------------------------------------------------------------------------- now i want that when during zooming my drawing exceeds the drawing area limits then Scrollbar becomes visible (just like in all professional applications). so now i add scrollbar for panning, remember i am not using picturebox nor panel, simply canvas which i already has been set through coordinates system, so plz help me to add Scrollbar in my editor. Regards

    david

    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