Hello!

  I've got the following gadget implementation:
USING: kernel ui.gadgets 
  ui.render opengl prettyprint namespaces ;
IN: iqlink.gadget

TUPLE: iqlink-gadget < gadget ;

: <iqlink-gadget> ( -- gadget )
  iqlink-gadget new ;
  
M: iqlink-gadget pref-dim*
  drop { 900 600 } "pref-dim*" . ;

M: iqlink-gadget draw-gadget*
  drop [ origin get { 5 5 } gl-fill-rect ] do-matrix "draw-gadget*" . gl-error ;

  I'm displaying it in a window like so:
[ <iqlink-gadget> "IQLink" open-window ] with-ui

  In the Listener output I expect to see the line "draw-gadget*" every time the 
window is redrawn. However, I only see "pref-dim*" once, and  the line 
"draw-gadget*" is never added to the Listener output. It appears as if  the 
method draw-gadget* is never called.

  What do I do wrong?


---=====---
 Александр

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to