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. Drawing Application--Line Selection?

Drawing Application--Line Selection?

Scheduled Pinned Locked Moved C#
graphicscsharpgame-devhelpquestion
2 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.
  • R Offline
    R Offline
    Raza5680
    wrote on last edited by
    #1

    hey.. i am currently working on a C#/openGL drawing application.....drawing is great but I need to incorporate functionality to select and edit lines with the help of mouse...plz suggest good tutorials from your expereince cheers

    M 1 Reply Last reply
    0
    • R Raza5680

      hey.. i am currently working on a C#/openGL drawing application.....drawing is great but I need to incorporate functionality to select and edit lines with the help of mouse...plz suggest good tutorials from your expereince cheers

      M Offline
      M Offline
      mike montagne
      wrote on last edited by
      #2

      Because a line is not an object, you will have to write your selection process from the ground up. You will have to register the points contained by lines (perhaps recognizing members from end points for instance); detect clicks or other process you might provide for selecting lines; and then perhaps re-draw the line/polygon/etc... to indicate it has been selected. A process you might use to select graphic elements could be to iterate through a list of the elements your processes have drawn, re-drawing each to indicate selection as the list is iterated by arrow keys, navigation buttons, or whatever.

      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