Home » Developer & Programmer » Forms » Moving Text in a display filed (Forms 6i, Windows)
Moving Text in a display filed [message #431909] Fri, 20 November 2009 00:31 Go to next message
hs_jaga@yahoo.co.in
Messages: 2
Registered: October 2009
Location: bangalore
Junior Member
Hi,

I am trying to move a text from left to right when forms is running.
Can u please guide me.

Thanks
Re: Moving Text in a display filed [message #432085 is a reply to message #431909] Sat, 21 November 2009 00:29 Go to previous messageGo to next message
klat
Messages: 87
Registered: May 2009
Location: Mumbai
Member

Use substr function and timer ..
try..
Re: Moving Text in a display filed [message #432734 is a reply to message #432085] Thu, 26 November 2009 00:06 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Search this forum for 'scroll'.

David
Re: Moving Text in a display filed [message #438773 is a reply to message #432734] Tue, 12 January 2010 03:16 Go to previous messageGo to next message
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 #438775 is a reply to message #438773] Tue, 12 January 2010 03:31 Go to previous messageGo to next message
javed.khan
Messages: 340
Registered: November 2006
Location: Banglore
Senior Member

http://www.orafaq.com/forum/m/132114/67693/?srch=animation#msg_132114
Re: Moving Text in a display filed [message #438776 is a reply to message #438773] Tue, 12 January 2010 03:31 Go to previous messageGo to next message
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.

Re: Moving Text in a display filed [message #438783 is a reply to message #438776] Tue, 12 January 2010 04:06 Go to previous messageGo to next message
halim
Messages: 100
Registered: September 2008
Senior Member


May be you can find your ready made FMB for large font size typing ......


Re: Moving Text in a display filed [message #438784 is a reply to message #438776] Tue, 12 January 2010 04:06 Go to previous message
tamzidulamin
Messages: 132
Registered: October 2009
Location: Dhaka
Senior Member
find the attachment...



Tamzidul Amin.
  • Attachment: MOVE_ITEM.fmb
    (Size: 76.00KB, Downloaded 1469 times)
Previous Topic: Problem facing in when-radio-changed
Next Topic: Pop Up Message with 'Yes' , 'No' buttons through forms Personalization.
Goto Forum:
  


Current Time: Fri Sep 20 04:23:35 CDT 2024