1 Reply Latest reply: Nov 14, 2012 12:29 AM by kikolus RSS

    Cursor Style

    kingadmin
      Hi,
      Forms 6i,Forms 10g,

      How to override normal mouse Style change behavior when focus in text Item?

      I don't want to change from DEFAULT TO INSERTION.


      Regards,
        • 1. Re: Cursor Style
          kikolus
          Try
           
          SET_APPLICATION_PROPERTY(CURSOR_STYLE,'INSERTION') 
          in PRE-TEXT-ITEM trigger and
           
          SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT') 
          in POST-TEXT-ITEM trigger (see documentation about conditions which must be meet to fire such triggers)
          Alternatively you can use when-new-item-instance trigger (which is fired when item got focus) and check current item using :system.cursor_item:
           
          if :system.cursor_item = 'my_item' then 
          SET_APPLICATION_PROPERTY(CURSOR_STYLE,'INSERTION') 
          else 
          SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT') 
          end if;