box or line ?
-
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
-
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
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.
-
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.
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