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. Image-Map from database for WinForms? [modified]

Image-Map from database for WinForms? [modified]

Scheduled Pinned Locked Moved C#
csharpdatabasewinformstutorialquestion
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.
  • F Offline
    F Offline
    francoisdotnet
    wrote on last edited by
    #1

    I have 2 projects coming up that require me to use existing map/floorlayout, certain areas must them be identified by the user. Lets say Room1, Room2, etc. Those areas should then be saved and either allow the user to select them (identifying which area was selected) and colour (fill) them in order to show "occupied" for example. (It will be done in WinForms .NET 2.0) Honestly have never done something like this and was wondering what tips and pointers my fellow CPians could give me :confused: Francois

    modified on Tuesday, December 04, 2007 1:37:55 AM

    N 1 Reply Last reply
    0
    • F francoisdotnet

      I have 2 projects coming up that require me to use existing map/floorlayout, certain areas must them be identified by the user. Lets say Room1, Room2, etc. Those areas should then be saved and either allow the user to select them (identifying which area was selected) and colour (fill) them in order to show "occupied" for example. (It will be done in WinForms .NET 2.0) Honestly have never done something like this and was wondering what tips and pointers my fellow CPians could give me :confused: Francois

      modified on Tuesday, December 04, 2007 1:37:55 AM

      N Offline
      N Offline
      Naveed727
      wrote on last edited by
      #2

      Do one thing Create Two variables for 1) for room no 2) for color Now the user prompt the user to select the room and color that work you can access by four button or chick box When the user select the check boxes now you should generate an event which will take the color and room no as argument that you will handle through the coding the custom color and room.

      F 1 Reply Last reply
      0
      • N Naveed727

        Do one thing Create Two variables for 1) for room no 2) for color Now the user prompt the user to select the room and color that work you can access by four button or chick box When the user select the check boxes now you should generate an event which will take the color and room no as argument that you will handle through the coding the custom color and room.

        F Offline
        F Offline
        francoisdotnet
        wrote on last edited by
        #3

        Sorry maybe I was not clear enough :sigh: These rooms must be visualy defined. For example the client will scan in a floor layout of a building. Then by "drawing" on this scanned image define where "Room1", "Room2" etc are in terms of location and size. Then a user must be able to click on a area and the application must then identify the click; i.e. whether the user clicked in "Room1" or "Room2" on the image. Also it needs to display the image with (for example) "occupied rooms" being shaded, indicating they are unavailable. Hope that helps...? We are talking about images and GIS kinda stuff here ... I think :doh:

        P 1 Reply Last reply
        0
        • F francoisdotnet

          Sorry maybe I was not clear enough :sigh: These rooms must be visualy defined. For example the client will scan in a floor layout of a building. Then by "drawing" on this scanned image define where "Room1", "Room2" etc are in terms of location and size. Then a user must be able to click on a area and the application must then identify the click; i.e. whether the user clicked in "Room1" or "Room2" on the image. Also it needs to display the image with (for example) "occupied rooms" being shaded, indicating they are unavailable. Hope that helps...? We are talking about images and GIS kinda stuff here ... I think :doh:

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          You're basically going to have to translate the mouse click location into a position on the map. This means that behind the scenes, you are going to have to translate each room into a set of extents and then see which extents the mouse click is in.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          F 1 Reply Last reply
          0
          • P Pete OHanlon

            You're basically going to have to translate the mouse click location into a position on the map. This means that behind the scenes, you are going to have to translate each room into a set of extents and then see which extents the mouse click is in.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            F Offline
            F Offline
            francoisdotnet
            wrote on last edited by
            #5

            yip, kinda like that. i'm hoping someone can help me in the right direction as far as saving these custom defined areas to database as they are not just simple x,y,height,width measurements... it might be a "freehand" shape. also how, once you have established a scale, to calculate areas etc... ***** thought of a better way to explain this ... ever seen these automated terminals at the movies. on the touch screen you select the movie you want to see and then you shows you a schematic of "the cinema", the blue squares will (for example) be the "taken seats" and the white square will represent the "available seats". The user can then click on the seats they want to book. this is effectively what i need to do .. the only addition is that in a cinema the seats are predetermined. My application also need to allow the user to define the number, size and location of the "seats" in a given area/layout. *****

            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