M
Mark
Hi Everyone:
I'm playing around with a GDI+ application using VB.NET. I have written a
small Windows application that will allow me to place a rectangle at the
screen's origin (top-left corner of the screen). After the rectangle is
placed I can point to it with my mouse and by holding down the left button
move the selected rectangle elsewhere on the screen.
This only works when the Y-Axis' location is at the top-left hand corner. I
used a matrix transformation to reset the Y-Axis' origin to the bottom left
hand corner. This time when I draw a rectangle it is placed at the
bottom-left hand corner, but when I place my mouse on the rectangle located
at the bottom-left hand side it will not highlight saying this rectangle has
been selected.
The strange thing is: If I move the mouse back to the top-left corner where
the default origin is the rectangle at the botton-left corner will highlight
and when I press the left mouse button and move the mouse down the selected
rectangle moves up. This is not how I want it to work. I have the project if
anyone needs it to see exactly want is happening.
I'm playing around with a GDI+ application using VB.NET. I have written a
small Windows application that will allow me to place a rectangle at the
screen's origin (top-left corner of the screen). After the rectangle is
placed I can point to it with my mouse and by holding down the left button
move the selected rectangle elsewhere on the screen.
This only works when the Y-Axis' location is at the top-left hand corner. I
used a matrix transformation to reset the Y-Axis' origin to the bottom left
hand corner. This time when I draw a rectangle it is placed at the
bottom-left hand corner, but when I place my mouse on the rectangle located
at the bottom-left hand side it will not highlight saying this rectangle has
been selected.
The strange thing is: If I move the mouse back to the top-left corner where
the default origin is the rectangle at the botton-left corner will highlight
and when I press the left mouse button and move the mouse down the selected
rectangle moves up. This is not how I want it to work. I have the project if
anyone needs it to see exactly want is happening.