^Johnny2Bad
June 26th, 2007, 10:16 AM
Hi people,
I know I have already posted to the group on this issue, but have run into a problem.
Basically if I have two text boxes one after each other, I use the MouseMove event too figure out whether the mouse is out of bounds with a given textbox, then I raise an event called OnMoveOut(String^ Name, Point Pos). Name being the name of the textbox moved out of and Pos being the current mouse position in screen co-ordinates.
Then I run another function which determines whether the mouse is over another text box (by looping through the Controls collection) and checking it's position relative to client (this->PointToClient(Pos) method). Then it hands the focus to the new textbox but unfortunatley this does not continue the drag operation into the new textbox.
So if I drag across textbox1 into textbox2 the text in textbox1 is selected and shows up but when I reach textbox2 the control just gets focus and does not highlight any text I move over. Is there something I'm missing here?
Is it possible to force a mouseup event and immediatley a mousedown event on entry into the next textbox?
Thankyou,
Jonathan.
I know I have already posted to the group on this issue, but have run into a problem.
Basically if I have two text boxes one after each other, I use the MouseMove event too figure out whether the mouse is out of bounds with a given textbox, then I raise an event called OnMoveOut(String^ Name, Point Pos). Name being the name of the textbox moved out of and Pos being the current mouse position in screen co-ordinates.
Then I run another function which determines whether the mouse is over another text box (by looping through the Controls collection) and checking it's position relative to client (this->PointToClient(Pos) method). Then it hands the focus to the new textbox but unfortunatley this does not continue the drag operation into the new textbox.
So if I drag across textbox1 into textbox2 the text in textbox1 is selected and shows up but when I reach textbox2 the control just gets focus and does not highlight any text I move over. Is there something I'm missing here?
Is it possible to force a mouseup event and immediatley a mousedown event on entry into the next textbox?
Thankyou,
Jonathan.