From 8683ea2c810a3d689e436a8d13abbbba50efc4f5 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 23 Apr 2008 14:19:58 +0000 Subject: Adding keyboard shortcut to Fl_Value_Input and Fl_Text_Editor git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Value_Input.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'documentation/Fl_Value_Input.html') diff --git a/documentation/Fl_Value_Input.html b/documentation/Fl_Value_Input.html index 3495d565c..aeecc89fe 100644 --- a/documentation/Fl_Value_Input.html +++ b/documentation/Fl_Value_Input.html @@ -59,6 +59,7 @@ ALT="Fl_Value_Input widget.">

  • Fl_Value_Input
  • ~Fl_Value_Input
  • cursor_color
  • +
  • shortcut
  • soft
  • textcolor
  • textfont
  • @@ -85,6 +86,23 @@ void Fl_Value_Input::cursor_color(Fl_Color)

    Get or set the color of the text cursor. The text cursor is black by default. +

    ulong Fl_Value_Input::shortcut() const +
    void Fl_Value_Input::shortcut(ulong key)

    + The first form returns the current shortcut key for the Input. +

    The second form sets the shortcut key to key. Setting this +overrides the use of '&' in the label(). The value is a bitwise +OR of a key and a set of shift flags, for example FL_ALT | 'a' +, FL_ALT | (FL_F + 10), or just 'a'. A value +of 0 disables the shortcut.

    +

    The key can be any value returned by +Fl::event_key(), but will usually be an ASCII letter. Use +a lower-case letter unless you require the shift key to be held down.

    +

    The shift flags can be any set of values accepted by +Fl::event_state(). If the bit is on that shift key must +be pushed. Meta, Alt, Ctrl, and Shift must be off if they are not in +the shift flags (zero for the other bits indicates a "don't care" +setting).

    +

    uchar Fl_Value_Input::soft() const
    void Fl_Value_Input::soft(uchar)

    -- cgit v1.2.3