Link to home
Start Free TrialLog in
Avatar of kplonk
kplonk

asked on

how to resize

what i have ia text box and i want the  user to be able to resize it at run time. So if you position the mouse over the edge and left click and hold i want the movment of the mouse left and right to change the size of the box. any ideas
Avatar of tirupur_selva
tirupur_selva
Flag of United States of America image

I think its quite difficult. But you can do it. You have to write the code in the Mousemove event. In the mousedown event you keep some flag and set it to true, if the mouse is pressed down at the edge. Then in the move event, you should proportionately increase the width and height of the text box.

I would suggest another easier method. You could place a slider bar and when the user moves the slider bar you can increase or decrease the size of the text box.
Avatar of kplonk
kplonk

ASKER

hm interesting idea but is not the standard way to do it, thanks for the advice.
ASKER CERTIFIED SOLUTION
Avatar of mcrider
mcrider

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kplonk

ASKER

sorry this is not that good thanks any way.
Did you try my comment?

Cheers!
What! You call a code sample by waty "not that good"?

Heretic!!

(just kidding)
Avatar of kplonk

ASKER

ya man how the hell do i accept a comment as an answer to a question?
Check the "title bar" above the comment you want to accept. In there there's a hotlink for "accept comment as answer"
Avatar of kplonk

ASKER

nice
Thanks for the points! Glad I could help!


Cheers!