Re: XForms: fl_get_cursorpos()

T.C. Zhao (tc_zhao@yahoo.com)
Tue, 11 Aug 1998 17:34:44 -0700 (PDT)

# To subscribers of the xforms list from "T.C. Zhao" <tc_zhao@yahoo.com> :

Cursor position is updated for every movement of the
cursor, otherwise input would lose track of where the
cursor is.

If you're trying to get the cursor position
inside an input callback, it won't work as input
callback is invoked only if there is any change
in the content of the field. If there were
FL_RETURN_FOR_EVERY_KEY_STROKE, the setup you have
would work. For now, the only way to get the cursor
position is to use a posthandler within which you
query the cursor position.

---AMIT BHATNAGAR <amit@cs.dal.ca> wrote:
>
> # To subscribers of the xforms list from AMIT BHATNAGAR
<amit@cs.dal.ca> :
>
>
> why won't fl_get_cursorpos not update after somone presses any one
of the
> arrow keys? It doesn't update if somone does a CTRL E to move to the
end
> of the line.. it only updates when a user presses an isprint() valid
> character.
>
> My multi-line input object has a return of FL_RETURN_ALWAYS.
>
>
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request@bob.usuf2.usuhs.mil or see
> http://bob.usuf2.usuhs.mil/mailserv/xforms.html
> XForms Home Page: http://bragg.phys.uwm.edu/xforms
> List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/
>
>

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at /cgi-bin/exit-to?http://mail.yahoo.com

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/