slava wrote:
> > Is there something I can call to force the ui to actually do the slate
> > refresh to effect the action call?
>
> No.
You know that I'm going to try anyway right? :-) I found two things that do
what I wanted.
ui-step
or
( gadget -- ) find-world draw-world
If you get mad, sorry. A good way to learn the guts of something is to do the
forbidden.
I did notice this note in the help for 'draw-world':
This word should only be called by the UI backend. To force a gadget to
redraw from user code, call relayout-1.
There is no documentation for ui-step.
The original problem is, how to run code in the gl-context that corresponds to
a gadgets world. I'm not certain that either of the above workarounds does
the trick (my system isn't running OS X).
I understand that draw-world is not meant to be called. Can you explain what
it would break by doing so? I'm assuming that ui-step is also not meant to be
called. Can you way a word about why calling ui-step directly is bad?
Once I've thoroughly explored these "do not enter" trails, I'm planning on
trying your advice about a slate endowed with even more slots for things like
graft and ungraft.
I didn't take your advice originally because I have a job. On days that I work
I sometimes have as little as 30 minutes of programming time to spare. This
has been the case lately.
Ed
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk