[comp.windows.x] Extending Panel Package in XView 2.0 i.e. new panel item types

Stuart_Jefferson_Adams@cup.portal.com (09/26/90)

What is the best way to add new item types to XView 2.0's
Panel package ???

Currently I am making some display only items (decorations) such
as lines, boxes, circles, etc.  I have been simply making a 
PANEL_MESSAGE type item with no message and XV_SHOW FALSE, then
adding my own attributes with XV_KEY_DATA. Then when the panel
receives a repaint call I cycle through all the items in the panel and
handle the redraw for the new item types i have defined.

I noticed a Panel item type "PANEL_EXTENSION_ITEM" in panel.h
but have had no luck trying to use it.

Thanks,

Stuart


---------------------
Stuart Adams	stuart_adams@cup.portal.com
Draper Labs	sja@draper.com
555 Tech Sq.
Cambridge MA 02139
617-258-2257
----------------------

cflatter@ZIA.AOC.NRAO.EDU (Chris Flatters) (09/26/90)

> What is the best way to add new item types to XView 2.0's
> Panel package ???

The current source distribution on expo.lcs.mit.edu contains a sample
panel extension package that apparently adds dials (like the perfmeter
icon) to panels --- I say apparently because I haven't got around to
compiling it yet.  You might want to take a look at it: it's in
.../xview2/contrib/perfdemo.  You should also note the warnings in
the README file.

			Chris Flatters