diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2008-04-23 14:19:58 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2008-04-23 14:19:58 +0000 |
| commit | 8683ea2c810a3d689e436a8d13abbbba50efc4f5 (patch) | |
| tree | 07f4dd10cee8d33ca9b94b900ff15c056662526e /documentation/Fl_Value_Input.html | |
| parent | 8d6b757bfe1579c1c09d627329bbf15875d52cc5 (diff) | |
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
Diffstat (limited to 'documentation/Fl_Value_Input.html')
| -rw-r--r-- | documentation/Fl_Value_Input.html | 18 |
1 files changed, 18 insertions, 0 deletions
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."></P> <LI><A href="#Fl_Value_Input.Fl_Value_Input">Fl_Value_Input</A></LI> <LI><A href="#Fl_Value_Input.~Fl_Value_Input">~Fl_Value_Input</A></LI> <LI><A href="#Fl_Value_Input.cursor_color">cursor_color</A></LI> + <LI><A href="#Fl_Value_Input.shortcut">shortcut</A></LI> <LI><A href="#Fl_Value_Input.soft">soft</A></LI> <LI><A href="#Fl_Value_Input.textcolor">textcolor</A></LI> <LI><A href="#Fl_Value_Input.textfont">textfont</A></LI> @@ -85,6 +86,23 @@ void Fl_Value_Input::cursor_color(Fl_Color)</A></H4> <P>Get or set the color of the text cursor. The text cursor is black by default. +<H4><A name="Fl_Value_Input.shortcut">ulong Fl_Value_Input::shortcut() const +<BR> void Fl_Value_Input::shortcut(ulong key)</A></H4> + The first form returns the current shortcut key for the Input. +<P>The second form sets the shortcut key to <TT>key</TT>. Setting this +overrides the use of '&' in the <TT>label()</TT>. The value is a bitwise +OR of a key and a set of shift flags, for example <CODE>FL_ALT | 'a'</CODE> +, <CODE>FL_ALT | (FL_F + 10)</CODE>, or just <CODE>'a'</CODE>. A value +of 0 disables the shortcut. </P> +<P>The key can be any value returned by <A href="Fl.html#Fl.event_key"> +<TT>Fl::event_key()</TT></A>, but will usually be an ASCII letter. Use +a lower-case letter unless you require the shift key to be held down. </P> +<P>The shift flags can be any set of values accepted by <A href="Fl.html#Fl.event_state"> +<TT>Fl::event_state()</TT></A>. 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). </P> + <H4><A name="Fl_Value_Input.soft">uchar Fl_Value_Input::soft() const<BR> void Fl_Value_Input::soft(uchar)</A></H4> |
