C
Charlie Brown
Good day,
I have been tasked with a new application that needs to show a
graphical representation of boxes on a shelf. It needs to have the
ability to rearrange the boxes of different sizes by dragging and
dropping them into place. Basically an updateable diagram of many
racks which contain mutiple shelfs. Each shelf has X amount of space
and you need to be able to drag and drop "boxes" onto the shelf.
To the question: I am looking for ideas on a good way to go about this.
Would using .NET GDI be enough, or do I need to tap into a game
engine, DirectX, or even easier just create controls that can be moved
around on panels? How do you cpture mouse events to know when you are
dragging something, and how do you make and object essentially follow
the cursor as it is dragged? And finally, should I keep everything in a
game loop, like the ON_Paint event of the form, or somewhere else?
Thanks in advance for any thoughful comments!
I have been tasked with a new application that needs to show a
graphical representation of boxes on a shelf. It needs to have the
ability to rearrange the boxes of different sizes by dragging and
dropping them into place. Basically an updateable diagram of many
racks which contain mutiple shelfs. Each shelf has X amount of space
and you need to be able to drag and drop "boxes" onto the shelf.
To the question: I am looking for ideas on a good way to go about this.
Would using .NET GDI be enough, or do I need to tap into a game
engine, DirectX, or even easier just create controls that can be moved
around on panels? How do you cpture mouse events to know when you are
dragging something, and how do you make and object essentially follow
the cursor as it is dragged? And finally, should I keep everything in a
game loop, like the ON_Paint event of the form, or somewhere else?
Thanks in advance for any thoughful comments!