From dc70b69502de6769c8fe109161f984494a0c00b8 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 19 Jan 1999 20:53:39 +0000 Subject: Updated documentation with changes from Bill. Added new image files for buttons. git-svn-id: file:///fltk/svn/fltk/trunk@237 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/events.html | 182 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 181 insertions(+), 1 deletion(-) (limited to 'documentation/events.html') diff --git a/documentation/events.html b/documentation/events.html index 3b62864b5..8a5286d01 100644 --- a/documentation/events.html +++ b/documentation/events.html @@ -166,4 +166,184 @@ to leaf widgets. These procedures control those leaf widgets:

  • Fl_Widget::take_focus
  • - \ No newline at end of file + +

    FLTK Compose-Character Sequences

    + +The Fl_Input widget lets you type all the +characters in the standard ISO-8859-1 character set. Most fonts will +display these characters correctly. + +

    To insert them, type the [compose] key and then one or two +characters. The two characters can be in either order. The [compose] +key is any of: Ctrl+Q, the righthand control key, or any key your X server +calls XK_Multi_key. + +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    spnbsp*°A`ÀD-Ða`àd-ð
    !¡+-±A'ÁN~Ña'án~ñ
    %¢2²A^ÂO`Òa^âo`ò
    #£3³A~ÃO'Óa~ão'ó
    $¤'´A:ÄO^Ôa:äo^ô
    y=¥uµA*ÅO~Õa*åo~õ
    |¦pAEÆO:Öaeæo:ö
    &§.·C,Çx×c,ç-:÷
    :¨,¸E`ÈO/Øe`èo/ø
    c©1¹E'ÉU`Ùe'éu`ù
    aªoºE^ÊU'Úe^êu'ú
    <<«>>»E:ËU^Ûe:ëu^û
    ~¬14¼I`ÌU:Üi`ìu:ü
    -­12½I'ÍY'Ýi'íy'ý
    r®34¾I^ÎDDÞi^îddþ
    _¯?¿I:Ïssßi:ïy:ÿ
    +
    + +For instance, to type "á" type [compose][a]['] or [compose]['][a]. + +

    The character "nbsp" (non-breaking space) is typed by using +[compose][space]. + +

    The single-character sequences may be followed by a space if +necessary to remove ambiguity. For instance, if you really want to +type "ª~" rather than "ã" you must type [compose][a][space][~]. + +

    If you wish to use the compose function in your own code, your +widget's handle() method must call fl_compose() +in response to FL_KEYPRESS events: + +

    int fl_compose(int state, char c, int &del, char *buffer, int &ins)

    + +Starts or adds a single ASCII character to a compose sequence. This +will return the number of old bytes to delete and a set of new bytes to +insert, and a new state value. If this returns zero you can +ignore the result (which just says to insert the character unchanged) +and handle the keystroke yourself. + +

    state must either be the return value of the last call to +fl_compose() or zero to start a new compose sequence. Be sure to reset +to zero if the user ever moves the cursor. + +

    c is the ASCII character that the user typed. + +

    del is set to the number of bytes to delete backwards. This +will always be less or equal to the ins from the last call to +fl_compose(), and will be zero if state is zero. + +

    buffer will have the first ins bytes set to the data +to insert and display (it is not nul-terminated). + +

    ins will be the number of characters to insert. + + -- cgit v1.2.3