[To reply replace "Aaron.Sloman.XX" with "A.Sloman"]
A user found some problems in the dials package of RCLIB which I have
now fixed and installed in
http://www.cs.bham.ac.uk/research/poplog/rclib.tar.gz
The TEACH rc_control_panel file now shows how to attach reactors to
individual sliders and dials within a field containing several of them,
which is more convenient than having one reactor for the whole field,
which has to identify the individual slider (or dial) and then decide
how to react to its change of value.
This was possible before but there was not good syntax to support it.
There is now, e.g. adding a reactor method to a slider associated with
the variable slider2, with range from 0 to 10 default 5, changes in
steps of 0.25, using font 10x20 for labels.
[slider2 {0 10 5 0.25} noround
;;; labels on left and right
['10x20' [{-5 10 'Lo Slider2'}] [{-15 10 'Hi'}]]
{reactor slider_reactor}
]
Likewise a reactor method associated with a dial:
;;; Offset 60 units to right of default location and 40 units up
;;; This dial is rotated 90degrees left, occupies a semi-circle
;;; It has a red pointer on a blue background
[dial2 60 -40 -90.0 180 {0 50 25 1} 40 15 'red' 'blue'
;;; numeric labels from 0.0 to 10 in steps of 36 degrees
;;; printed at an extra radius of 15 pixels round the dial.
[LABELS {15 36 0.0 10 'blue' '6x13'}]
;;; when value us changed by program or by mouse run
;;; this reactor
{reactor dial_reactor}
]
Another thing fixed is that control panels produced by rc_control_panels
and which contain dials can now be redrawn properly by rc_redraw_panel.
Previously redrawing did not work with dials.
I had to make this available for the user before fixing all the
documentation, but everything that used to work should work as before,
and dials should be more robust. Other recent changes can be found in
http://www.cs.bham.ac.uk/research/poplog/rclib/help/rclib_news
Its table of contents starts:
-- 18 Jan 2001 Expanded HELP RCLIB, introduced rc_display_file
-- 2000
-- 24 Dec 2000 Added rc_draw_coloured_line
-- 19 Dec 2000 New library and teach file rc_sprite
-- 5 Dec 2000 Bug fixed in windows with embedded windows.
-- 28 Nov 2000 improved rc_pythagoras demo
-- 19 Nov 2000 morphing facilities extended to sets of pictures
-- 17 Nov 2000 new facilities for morphing sets of lines
-- 16 Nov 2000 Bug fix in getpointvec
-- 8 Oct 2000 Adjustment for title bar if window location is "bottom"
-- 15 Sep 2000 NEW: HELP RC_EVENTS, and some event-handling fixes
-- 10 Sep 2000 Tidied event handling further, new HELP file
-- 2 Sept rc_add_kill_button
-- 30 Aug 2000 rc_dial
-- 26 Aug 2000 rc_constrained_pointer.p rc_constrained_rotater.p
-- 23 Aug 2000 New facilities leading towards decorations on dials
-- 20 Aug 2000
-- -- New facilities for interacting through Ved/Xved files
-- -- New polygon facilities LIB rc_draw_lines
-- -- rc_draw_triangle improved, and used in rc_scrolltext
-- -- New keyword "INVED" for button actions
-- 3 Aug 2000 New drawing primitives for rectangles and triangles
-- 23 Jul 2000 various improvements
-- -- Horizontal and vertical slider blob methods
-- -- RCMENU improvements
-- -- Documentation updates
-- -- rc_control_panel extensions and changes
-- -- rc_display_strings
-- -- rc_browse_files improved
-- 21 Jul 2000 More control over fonts, default font sizes reduced
rc_display_file enables you to put an arbitrary file in a scrolling
panel, e.g. instructions for some utility, etc.
The most up to date overview documentation file is
http://www.cs.bham.ac.uk/research/poplog/rclib/help/rclib
218 Kbytes
More detailed documentation is in other files in the same directory and
in the rclib/teach sibling directory, e.g. teach/rc_dial
Documentation upgrades will follow when the present mad rush subsides a
bit.
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 (ReadATas@please !)
PAPERS: http://www.cs.bham.ac.uk/research/cogaff/
FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html
|