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. Design and Architecture
  4. box or line ?

box or line ?

Scheduled Pinned Locked Moved Design and Architecture
graphicsdata-structuresjsonquestiondiscussion
3 Posts 2 Posters 2 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.
  • T Offline
    T Offline
    tim_gunning
    wrote on last edited by
    #1

    morning all (or afternoon/evening depending where you are....) I'm not sure if this is the right place to ask, I think it is, but feel free to move it mr(s) admin if need to be to somewhere more appropriate. I was really just after peoples thoughts, so here goes....If I have a page/area divided up into subareas but these are changeable in size what would be the best way to do it? I was thinking originally about just drawing lines (having the x/y of the start point and the length), but then throught its not really the line I'm interested in but the area it encloses so I suppose I would want to be able to draw boxes (similar to divs in a webpage is the best way of decribing it, its basically for laying out information within the application but allowing the user to resize areas) so I would need x/y and w/h. Would that be a more sensible approach ? Or ...(and heres hoping ;) is there something already within the windows api that would handle this - some sort of table type structure would probably do it, just so long as i could return the values of each of the cells. Could I do something with multiple panels maybe, I'd need to maintain the coords etc of them but at least that would give me something *physical* to work with, suppose I should go and play around a bit and see what comes of it. anyway, like I said it was really just to see if anyone thought I was barking up the wrong tree, had completely missed something that was out there or thought maybe i was going in the right direction. cheers tim

    B 1 Reply Last reply
    0
    • T tim_gunning

      morning all (or afternoon/evening depending where you are....) I'm not sure if this is the right place to ask, I think it is, but feel free to move it mr(s) admin if need to be to somewhere more appropriate. I was really just after peoples thoughts, so here goes....If I have a page/area divided up into subareas but these are changeable in size what would be the best way to do it? I was thinking originally about just drawing lines (having the x/y of the start point and the length), but then throught its not really the line I'm interested in but the area it encloses so I suppose I would want to be able to draw boxes (similar to divs in a webpage is the best way of decribing it, its basically for laying out information within the application but allowing the user to resize areas) so I would need x/y and w/h. Would that be a more sensible approach ? Or ...(and heres hoping ;) is there something already within the windows api that would handle this - some sort of table type structure would probably do it, just so long as i could return the values of each of the cells. Could I do something with multiple panels maybe, I'd need to maintain the coords etc of them but at least that would give me something *physical* to work with, suppose I should go and play around a bit and see what comes of it. anyway, like I said it was really just to see if anyone thought I was barking up the wrong tree, had completely missed something that was out there or thought maybe i was going in the right direction. cheers tim

      B Offline
      B Offline
      Brady Kelly
      wrote on last edited by
      #2

      You don't say what you're using. In WinForms, .NET 2.0, you can use a nested set of SplitContainer controls to host whatever else you need in the divisions you mention.

      T 1 Reply Last reply
      0
      • B Brady Kelly

        You don't say what you're using. In WinForms, .NET 2.0, you can use a nested set of SplitContainer controls to host whatever else you need in the divisions you mention.

        T Offline
        T Offline
        tim_gunning
        wrote on last edited by
        #3

        hi brady sorry, i suppose that might have helped....doh! SplitContainer controls sound exactly like the thing I was after, I knew there'd be something rather than me bodging in some sort of tawdry effort that only kind of half works. thanks for the pointer tim

        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