summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-04-13 22:17:46 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-04-13 22:17:46 +0000
commitdc355ebb5477bd3c4374658d3db2a935ae3fb935 (patch)
treed7f360c3d09a41abf9e2acbbfcc81eb563175fb9 /documentation
parent7f0c218c1c96eebb2c0694909d237e7d3bdc0c97 (diff)
Add Fl::dnd_text_ops() methods.
Fl_Input now conditionally supports DND out via run-time option. Fl_Input now clears selection if you click inside the selection when DND is turned on. Added support for scheme, dndTextOps, and visibleFocus resources under X11. Documented all X resources supported under X11... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation')
-rw-r--r--documentation/Fl.html16
-rw-r--r--documentation/osissues.html39
2 files changed, 52 insertions, 3 deletions
diff --git a/documentation/Fl.html b/documentation/Fl.html
index 118204ced..3cefeda3f 100644
--- a/documentation/Fl.html
+++ b/documentation/Fl.html
@@ -50,6 +50,7 @@ state information and global methods for the current application.</P>
<LI><A HREF="#Fl.default_atclose">default_atclose</A></LI>
<LI><A HREF="#Fl.display">display</A></LI>
<LI><A HREF="#Fl.dnd">dnd</A></LI>
+ <LI><A HREF="#Fl.dnd_text_ops">dnd_text_ops</A></LI>
<LI><A HREF="#Fl.error">error</A></LI>
<LI><A HREF="#Fl.event">event</A></LI>
<LI><A HREF="#Fl.event_alt">event_alt</A></LI>
@@ -417,9 +418,18 @@ and does nothing useful under WIN32.
<H4><A NAME="Fl.dnd">int dnd();</A></H4>
-<P>Initiate a Drag And Drop operation. The clipboard should be filled
-with relevant data before calling this method. FLTK will then initiate
-the system wide drag'n'drop handling. Dropped data will be marked as <i>text</i>.
+<P>Initiate a Drag And Drop operation. The clipboard should be
+filled with relevant data before calling this method. FLTK will
+then initiate the system wide drag and drop handling. Dropped data
+will be marked as <i>text</i>.
+
+<H4><A NAME="Fl.dnd_text_ops">void dnd_text_ops(int d);<BR>
+int dnd_text_ops();</A></H4>
+
+<P>Gets or sets whether drag and drop text operations are
+supported. This specifically affects whether selected text can
+be dragged from text fields or dragged within a text field as a
+cut/paste shortcut.
<H4><A NAME="Fl.error">void (*error)(const char*, ...);</A></H4>
diff --git a/documentation/osissues.html b/documentation/osissues.html
index 6d23c7c03..29217d06d 100644
--- a/documentation/osissues.html
+++ b/documentation/osissues.html
@@ -366,6 +366,45 @@ window-&gt;icon((char *)p);
</TR>
</TABLE></CENTER>
+<H3>X Resources</H3>
+
+<P>When the <A
+HREF="Fl_Window.html#Fl_Window.show"><TT>Fl_Window::show(argc,
+argv)</TT></A> method is called, FLTK looks for the following X
+resources:
+
+<UL>
+
+ <LI><TT>background</TT> - The default background color
+ for widgets (color).
+
+ <LI><TT>dndTextOps</TT> - The default setting for
+ drag and drop text operations (boolean).
+
+ <LI><TT>foreground</TT> - The default foreground (label)
+ color for widgets (color).
+
+ <LI><TT>scheme</TT> - The default scheme to use
+ (string).
+
+ <LI><TT>selectBackground</TT> - The default selection
+ color for menus, etc. (color).
+
+ <LI><TT>Text.background</TT> - The default background
+ color for text fields (color).
+
+ <LI><TT>visibleFocus</TT> - The default setting for
+ visible keyboard focus on non-text widgets (boolean).
+
+</UL>
+
+<P>Resources associated with the first window's <A
+HREF="Fl_Window.html#Fl_Window.xclass"><TT>Fl_Window::xclass()</TT></A>
+string are queried first, or if no class has been specified then
+the class "fltk" is used (e.g. <TT>fltk.background</TT>). If no
+match is found, a global search is done (e.g.
+<TT>*background</TT>).
+
<H2>The Windows (WIN32) Interface</H2>
<P>The Windows interface provides access to the WIN32 GDI