|
|
|
Re: Moving Text in a display filed [message #438773 is a reply to message #432734] |
Tue, 12 January 2010 03:16 |
tamzidulamin
Messages: 132 Registered: October 2009 Location: Dhaka
|
Senior Member |
|
|
Assign the following prceduere in Developer Program Unit
and complete all the steps:
procedure prc_move_item (p_item varchar2,p_can varchar2)
is
w number;
x number; --Max (Canvas Width....)
y number:= get_item_property(p_item,y_pos); --Set Y Position of Move Item Where You See Your Item is Moving.......
a number;
can_width number;
diff_width number;
begin
/*
Please Assign :global.w :=get_item_property ('block.item_name',width); (get item width)
:global.can_width :=get_canvas_property('canvas_name',width); (get canvas width)
:global.item_width :=get_item_property ('block.item_name',width);
:global.x_pos:=0;
in NEW-FORM-INSTANCE trigger.
Also Create the following Timer in NEW-FORM-INSTANCE trigger.
***********************************************************
declare
timer_id timer;
one_second number(7) := 50;
begin
timer_id := create_timer('move_time', one_second, repeat);
end;
**********************************************************
This following code paste into WHEN-TIMER-EXPIRED trigger.
*************************************************************
if get_application_property(timer_name)='MOVE_TIME' then
prc_move_item('block.column_name','canvas_name');
Synchronize;
end if;
*************************************************************
Change Item name which Item you want to move.
*/
a:= get_canvas_property(p_can, width);
can_width:=a;
diff_width:=(can_width-:global.item_width);
x := :global.x_pos + 1;
w := :global.w;
if x < can_width --(Canvas Width....) Start 1
then
if x < diff_width --(Canvas width - Item width)Maximum Move of X position of Move Item. Start 2
then
if w < :global.item_width --Item Width Start 3
then
set_item_property (p_item, width, w);
:global.w := :global.w + 1;
x := 0; --X Position still 0(zero) untill item width 181.
end if; --end 3
set_item_property (p_item, position, x, y);
:global.x_pos := x;
else
w := :global.w - 1;
set_item_property (p_item, alignment, alignment_left);
set_item_property (p_item, width, w);
set_item_property (p_item, position, x, y);
:global.w := w;
:global.x_pos := x;
end if; --end 2
else
:global.x_pos := 0;
set_item_property (p_item, alignment, alignment_right);
end if; --end 1
end;
Please Initialize :block.column_name:= 'Your Text';
Regards
Tamzidul Amin
Dhaka.
|
|
|
|
Re: Moving Text in a display filed [message #438776 is a reply to message #438773] |
Tue, 12 January 2010 03:31 |
sonia.ali
Messages: 40 Registered: April 2009 Location: Pakistan
|
Member |
|
|
Hey,
Tamzidulamin,
How are you. I wish you will be fine and happy mode. I have read your post. Actually I am new comer oracle . I am student< Sir, Please make it in fmb file , I shall be very thankful to you,
Bye takecare
SOnia ALi.
|
|
|
|
|