Brian,
There are 2 cmds that may be useful
qchildxywhx id; return child position and size in pixels
setxywhx id x y w h ; set child position and size in pixels

use qchildxywhx to get the pixel dimension of the isigraph, and then use setxywhx to set other controls.

Under window the conversion factor between pixel and unit is 2, I think this is constant for a given dpi. You may use both qchildxywhx and qchildxywh to query the same isigraph to validate the conversion factor.

> gl2lab_run''
> 255 0 0   paint 0       NB. paints
> 255 255 0 paint 1       NB. NO paint
> 255 0 255 paint 2       NB. NO paint

As Oleg already explained, this the way that gl2 work. An isigraph does not have a permanent picture. If you do not want to deal with a state machine, a possible workaround is to use gl2 commands to draw the picture and save it to a picture file, then assign this picture to an owner-draw button.

PS. isipicture was uncommitted so that an owner-draw button is the only choice for rendering a picture file without event handling.

--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to