I think I've finally tracked down the problem with not resizing properly.
In my script, I use the options rightmove and bottommove on an isigraph. It
appears gtkwd doesn't support these. Here's an example:

NB. =========================================================
load 'gl2'
require 'gui/gtkwd'

coinsert 'jgl2'

TEST=:0 :0
pc test closeok;
xywh 0 0 200 200; cc g isigraph rightmove bottommove;
pas 0 0;
)

run =: 3 :0
wd TEST
wd 'pshow'
test_g_paint ''
)

test_g_paint =: 3 :0
glclear ''
size =. glqwh ''
glpixels (0 0,size),i.*/size
)
NB. =========================================================

Can this be added to gtkwd, and is there any sort of easy workaround?

Marshall


On Tue, Jan 31, 2012 at 10:12 PM, bill lam <bbill....@gmail.com> wrote:

> You ran into an infinite loop because glpaint will trigger test_g_paint
> again, try this.
>
>  run =: 3 :0
>  wd TEST
>  wd 'set edit *edit here'
>  wd 'pshow'
>  )
>
>  test_g_paint =: 3 :0
>  glclear ''
>  glpixels 0 0 400 400,<.,(+/ 256&*) 256*400%~i.400
>  )
>
> if it does not display, add an glpaint right after wd'pshow'
>
>
> Втр, 31 Янв 2012, Marshall Lochbaum писал(а):
> > GL2ExtGlcmds was set to 1, but changing it to 0 didn't fix anything.
> Here's
> > a test script that replicates most of my problems:
> >
> > NB. ========================================
> > load 'gl2'
> > load 'gui/gtkwd'
> >
> > coinsert 'jgl2'
> >
> > TEST=:0 :0
> > pc test closeok;
> > xywh 0 0 200 12; cc edit edit;
> > xywh 0 12 200 200; cc g isigraph;
> > pas 0 0;
> > )
> >
> > run =: 3 :0
> > wd TEST
> > wd 'set edit *edit here'
> > wd 'pshow'
> > test_g_paint ''
> > )
> >
> > test_g_paint =: 3 :0
> > glclear ''
> > glpixels 0 0 400 400,<.,(+/ 256&*) 256*400%~i.400
> > glpaint ''
> > )
> > NB. ========================================
> >
> > load and then run with
> > run ''
> > This script works fine if glpaint '' is commented out, however.
> >
> > Marshall
> >
> > On Tue, Jan 31, 2012 at 9:53 PM, bill lam <bbill....@gmail.com> wrote:
> >
> > > That is part of graphics/gl2 package.  Please first set
> > > GL2Backend=: 0
> > > GL2ExtGlcmds=: 0
> > > in base.cfg to force it use cairo backend before testing.
> > >
> > > gl2 rgb colors seemed swapped, and it needs a wd'pshow' before running
> any
> > > gl2 commands.
> > >
> > > Also you may set the noun TileWM inside gtkwd to make a ptop a no-op so
> > > that it
> > > will be less interruptive.
> > >
> > > Втр, 31 Янв 2012, Marshall Lochbaum писал(а):
> > > > On further probing, it looks like the problem is in glpixels, which
> is
> > > > causing all the windows to move slowly and sometimes hang. I'll see
> if I
> > > > can boil that down to a simple script.
> > > >
> > > > Marshall
> > > >
> > > > On Tue, Jan 31, 2012 at 7:20 PM, bill lam <bbill....@gmail.com>
> wrote:
> > > >
> > > > > Втр, 31 Янв 2012, Marshall Lochbaum писал(а):
> > > > > > I'm running Linux 32 bit with gtk3. So far the big problem is
> that
> > > using
> > > > > wd
> > > > > > commands immobilizes the jgtk window--I can type things in, but
> > > nothing
> > > > > > happens when I press enter until I close the window. This is
> really
> > > > > > hindering diagnostics.
> > > > >
> > > > > I mainly tested it on linux64 for gtk2 and gtk3 but did not observe
> > > this
> > > > > bug. Could you give more detail?
> > > > >
> > > > > >
> > > > > > glqwh returns the size of the window as set by J, not the current
> > > value.
> > > > > > Eventually, this returns gtkwh in the target locale, so it looks
> like
> > > > > this
> > > > > > isn't being updated properly. I'm using a tiling window manager,
> > > which
> > > > > > jerks windows around unmercifully, so that could be part of the
> > > problem.
> > > > > I
> > > > > > can try it in Gnome later.
> > > > >
> > > > > I use scrotwm (a tiling wm), nevertheless gtk use layout manager
> so the
> > > > > actual poistion and size of widgets will be overrided by gtk.
> > > > > Could you give a simple test script to reproduce the problem?
> > > > >
> > > > > >
> > > > > > Editboxes won't edit for me, either when the system calls (wd
> 'set
> > > var
> > > > > *',
> > > > > > var) or by manual editing. However, they got set correctly
> > > initially, so
> > > > > it
> > > > > > must have worked the first time.
> > > > > >
> > > > > Which 'editbox' did you mean in the context of wd?  could you also
> give
> > > > > a simple test script?
> > > > >
> > > > > --
> > > > > regards,
> > > > > ====================================================
> > > > > GPG key 1024D/4434BAB3 2008-08-24
> > > > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> > > > >
> ----------------------------------------------------------------------
> > > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > > >
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > >
> > > --
> > > regards,
> > > ====================================================
> > > GPG key 1024D/4434BAB3 2008-08-24
> > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to