Home » Developer & Programmer » Forms » move txt item at runtime
move txt item at runtime [message #257744] Thu, 09 August 2007 02:02 Go to next message
Messages: 164
Registered: November 2006
Location: pakistan
Senior Member
hi friends i want to move text box containging data on a form where the mouse moves.
i did on "when mouse down" , i wrote the code
its working but not perfectly the way we on Gui(ide's) environment some one give me an idae, sorry for not formatting my text, thanx
xpos number;
ypos number;
xmouse number;
ymouse number;
-- go_item('block4.val3');
if (:val4 is not null) then
xpos := get_item_property('val4',x_pos);
ypos := get_item_property('val4',y_pos);
xmouse := to_number(:system.mouse_x_pos);
ymouse := to_number(:system.mouse_y_pos);
-- message('xmouse'||xmouse||' ymouse'||ymouse);
set_item_property('val4', position , xpos + xmouse, ypos + ymouse);
-- set_item_property('val2',y_pos , ymouse );
end if;
Re: move txt item at runtime [message #257768 is a reply to message #257744] Thu, 09 August 2007 02:34 Go to previous message
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Why are you adding 'xpos' and 'ypos' to the mouse coordinates?

Previous Topic: how to add in the list
Next Topic: listitem problem
Goto Forum:

Current Time: Sat Oct 22 03:01:02 CDT 2016

Total time taken to generate the page: 0.24191 seconds