Home » Developer & Programmer » Forms » moving the text item.
moving the text item. [message #78545] Fri, 01 March 2002 05:24 Go to next message
m masoom
Messages: 8
Registered: June 2001
Junior Member
hello
i want to my text_item here and there in the form with timer. can any body help me,how can i use the timer.
thanks to solve my problem.
Re: moving the text item. [message #78546 is a reply to message #78545] Fri, 01 March 2002 05:39 Go to previous messageGo to next message
pratap kumar tripathy
Messages: 660
Registered: January 2002
Senior Member
in when_new_form_instance create a timer
in when timer_expired write the code to change the position of text_item
Re: moving the text item. [message #313471 is a reply to message #78545] Sat, 12 April 2008 14:17 Go to previous message
owais_baba
Messages: 289
Registered: March 2008
Location: MUSCAT
Senior Member
hi mr massom


use this code

when_new_form_instance

if id_null(create_timer('SCROLL_TIMER', 200, REPEAT)) then
null;
end if;

when_timer_expired
DECLARE
TimerName varchar2(40) := get_application_property(TIMER_NAME);
BEGIN

if TimerName = 'SCROLL_TIMER' then
scroll_view('CNv_SCROLL', 0, mod(get_view_property('CNv_SCROLL', VIEWPORT_Y_POS_ON_CANVAS)+1, 37));
end if;
END;

after that place text item field on canvas with the of cnv_scroll and also change name of canvas like cnv_scroll

thansk "dont feel hesitate to ask frequently questions"

owais






Previous Topic: *** data transfer from .txt file to table ***
Next Topic: Re: Serial communication with weigh-bridge
Goto Forum:
  


Current Time: Mon Dec 05 06:56:36 CST 2016

Total time taken to generate the page: 0.14642 seconds