• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Base.cH A D03-May-202213.1 KiB467319

Base.hH A D25-May-19982.6 KiB10472

BaseP.hH A D25-May-19982 KiB8640

Box.cH A D05-Feb-199914.5 KiB527393

Box.hH A D25-May-19981.6 KiB6232

BoxP.hH A D25-May-19981.8 KiB7832

Button.cH A D05-Feb-199915.6 KiB606455

Button.hH A D06-Jul-19981.4 KiB5425

ButtonP.hH A D06-Jul-19982.1 KiB8942

Field.cH A D05-Feb-199947.6 KiB1,9141,506

Field.hH A D30-Oct-19982.9 KiB10360

FieldP.hH A D30-Oct-19983.3 KiB11466

ImakefileH A D05-Feb-19991.4 KiB6647

LICENSEH A D10-Oct-199524.7 KiB484399

Label.cH A D22-Oct-199812.5 KiB470355

Label.hH A D08-Feb-19981.3 KiB4919

LabelP.hH A D10-Feb-19982.1 KiB8842

MakefileH A D16-Nov-2000479 2516

Makefile.inH A D21-Aug-1999380 2416

READMEH A D26-Jan-19985.9 KiB167116

RootIcon.cH A D23-May-19982.8 KiB10572

RootIcon.hH A D24-Mar-19981.8 KiB606

RootIconP.hH A D24-Mar-19981.5 KiB5825

Toggle.cH A D01-Oct-199812.7 KiB523379

Toggle.hH A D26-Feb-19981.3 KiB4919

ToggleP.hH A D12-Feb-19981.8 KiB7932

classes.figH A D08-Feb-19981.5 KiB4443

simple.cH A D05-Feb-19993.4 KiB10166

testxw.cH A D23-May-19984.8 KiB160103

testxw.xbmH A D25-Jan-1998254 76

README

1-- Xw ------- XWindow Widget library ---------------------------------
2
3Some simple Widgets for X11. You can use them in addition to
4Xaw or other libraries ..
5
6The Field Widget is a derived version of the TextField Widget
7from Rob McMullen.
8
9TODO:
10	- bug fixes in field widget
11
12rasca, berlin 1997,1998
13<thron@gmx.de>
14http://home.pages.de/~rasca/
15
16see original README follows:
17----------------------------------------------------------------------
18README for TextField Widget, version 1.0
19Rob McMullen <rwmcm@orion.ae.utexas.edu>
2010 Oct 1995
21
22
23SOURCE LOCATION
24
25Source code for the TextField Widget is available via anonymous ftp on
26ftp.x.org in /contrib/widgets as TextField-?.?.tar.gz.  I have also set up the
27Offical ListTree Web Site (tm) at http://www.ae.utexas.edu/~rwmcm/TextField.html
28that should always include the latest patchlevel update.
29
30
31OVERVIEW
32
33The TextField Widget is a low resource single line text input widget designed
34to mimic the functionality of the Motif XmTextField widget. Most of the
35functionality of the XmTextField widget is available in my TextField, as well
36as most of the XmTextField* convenience functions.
37
38To benefit freeware programmers who may now be using the Athena widget set,
39this widget was also designed to be as compatible as possible with the Athena
40Text widget (in single line mode). It shares many of the resources with the
41Athena Text widget, and few code modifications are necessary to change to the
42TextField. As an added bonus, this widget is very small compared to the
43Athena Text.
44
45My goal was a powerful free line editor that was similarly powerful to the
46Motif single line text widget. In particular, I wanted pending delete
47(replacing text selection with next entry) and scrolling, two features not
48available in the Athena Text widget. But, besides the small size of the
49widget and freely available source, there are no obvious advantages to using
50this widget if you program with Motif (actually, the opposite would be true).
51Therefore, I have made no attempt to make this widget deal with the
52idiosyncrasies of Motif. It will certainly operate (to some extent: minus
53keyboard traversal, highlight borders, etc.) with Motif, but if you use
54Motif:
55
56 1. You'll use the XmTextField widget
57 2. You shouldn't be writing free programs
58
59
60FEATURES
61
62Features provided in the widget include the following:
63
64   Variable width fonts
65   Optimized drawing routines
66   Highlighting
67   ICCCM selections
68   Scrolling text
69   Pending delete mode (ala Motif)
70   Activate Callback (called when Return pressed)
71   Editable or non-editable mode
72   Echo or non-echo mode
73   Optional maximum length for text string
74   Many convenience functions (based on the XmTextField* functions)
75
76
77TO DO LIST
78
79Possible items to include in future revisions:
80
81   User specifiable pointer cursor
82   Blinking text cursor
83   More Motif callbacks (ModifyVerify, etc.)
84   More text translations (vi or emacs modes?)
85   The rest of the Motif-style convenience functions
86   ...
87
88
89REQUIREMENTS
90
91The TextField code requires X11R4 or later and an ANSI C compiler. The code
92may compile on a non-ANSI compiler if it supports new style function
93definitions.
94
95
96BUILDING THE DEMO PROGRAMS
97
98Shipped with the source code distribution is one demo program that simply
99displays several TextField widgets in a window.  Each TextField shows off
100different features of the widgets, and all have an activate callback that
101will echo the current text in the widget to standard output when you press
102the return key.
103
104If you have the program imake installed, you may use the supplied Imakefile to
105generate a Makefile by typing "xmkmf".  Otherwise, copy the file
106Makefile.noImake to Makefile, and edit that to conform to your system.
107Actually, other than specifying the C compiler to use, the Makefile should
108require little customization.
109
110Once you have set up the Makefile, type "make" to build the demo.  You will
111need the Athena library to compile the program.
112
113Type "./demo" to run the program.
114
115
116USING THE WIDGET
117
118Instructions on how to use the TextField widget in your own code is documented
119in the manual page (TextField.html) included with the source code.  The
120documentation provided only in HTML format.
121
122
123IMPROVEMENTS/PATCHES/BUG REPORTS
124
125If you make improvements in this widget (or, YIKES!, if you find bugs)
126please let me know at rwmcm@orion.ae.utexas.edu, or through the TextField
127Widget home page at http://www.ae.utexas.edu/~rwmcm/TextField.html
128
129
130AUTHOR
131
132Rob McMullen <rwmcm@orion.ae.utexas.edu>
133
134This widget is supplied as free software, in the hope that it will be useful
135for developers in the X community. It is licensed under the GNU Library
136General Public License, which is a less restristive version of the GPL. It
137doesn't prevent the code from being used in commercial codes, as long as you
138also ship source to the TextField widget. See the file LICENSE in the source
139distribution for more information.
140
141Patches, improvements, suggestions, bug reports, job offers, volleyball games,
142and money you love donating to programmers who make your life so much easier
143are welcome at  <rwmcm@orion.ae.utexas.edu>. I will periodically post patches
144and improvements to ftp.x.org and the TextField web page at
145http://www.ae.utexas.edu/~rwmcm/TextField.html
146
147
148
149COPYRIGHT
150
151Copyright (c) 1995 Robert W. McMullen
152
153This library is free software; you can redistribute it and/or modify it under
154the terms of the GNU Library General Public License as published by the Free
155Software Foundation; either version 2 of the License, or (at your option) any
156later version.
157
158This library is distributed in the hope that it will be useful, but WITHOUT
159ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
160FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
161details.
162
163You should have received a copy of the GNU Library General Public License
164along with this library; if not, write to the Free Software Foundation, Inc.,
165675 Mass Ave, Cambridge, MA 02139, USA.
166
167