This discussion is archived
1 Reply Latest reply: Nov 13, 2012 10:29 PM by krzysztof.lorencki RSS

Cursor Style

kingadmin Explorer
Currently Being Moderated
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
    krzysztof.lorencki Explorer
    Currently Being Moderated
    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; 

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points