Andrew Philip Crook <shu96apc@reading.ac.uk> writes:
> Date: Thu, 15 Jan 1998 14:31:06 +0000
> Organization: University of Reading
>
> how can i make a menu widget in a rc_window created by rc_start from
> rc_graphics????????
>
> Example code please
The RCLIB package, provides several different sorts of menus,
control panels, text input fields, number input fields, etc. without
using any motif widgets. (So it can be used with linux poplog
without having to buy motif.)
It is available in the Birmingham Poplog FTP directory
ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/
The rclib package is in the file rctar.gz
There are tutorial examples in teach/rclib_demo.p and
teach rc_control_panel, among others. e.g. see
ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/rclib/teach/rc_control_panel
ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/rclib/teach/rclib_demo.p
If you wish to build your own menu package out of motif or openlook
widgets it will be a far more complex task. Try the methods
described in TEACH Xpw. (I can't provide examples. someone else may
be able to.)
Alternatively use TEACH PROPSHEET and locate the Propsheet panel on
you rc_graphic window.
Aaron
--
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman at cs.bham.ac . uk
Phone: +44-121-414-4775 (Sec 3711) Fax: +44-121-414-4281
|