AW: [Insight-users] fltk image viewer

Luis Ibanez luis . ibanez at kitware . com
Wed, 28 May 2003 10:23:20 -0400


Hi Zein,

did you invoked

     Fl::check()

after you called "redraw()"  ?

The GUI is not refreshed until
you call Fl::check(). The redraw()
method just schedules the object
for refreshing in the next cycle.


    Luis


------------------

salah wrote:
> Thanks Luis,
> 
> This is really strange. I use redraw !! It was
> not the missing thing!! This effect I have described 
> occurs too when I resize the whole windows, for 
> example, when I maximize the whole UI.
> 
> 
> Stephen,
> Which list do you mean? the fltk list ?
> 
> 
> Thanks,
> Zein
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Luis Ibanez [mailto:luis . ibanez at kitware . com]
> Gesendet: Dienstag, 27. Mai 2003 20:07
> An: salah
> Cc: ITK Users
> Betreff: Re: [Insight-users] fltk image viewer
> 
> 
> Hi Zein,
> 
> 
> GLSliceView derives from Fl_Gl_Window.
> a call to "redraw()" will invoke the "draw()"
> method in the next GUI refreshment cycle.
> 
> 
> Please ty calling "redraw()" just after you
> display the image window.
> 
> 
>     Luis
> 
> 
> ----------------
> salah wrote:
> 
>>Hello,
>>
>>I have been using viewers that derive the GlSliceView class.
>>I face always an uncomfortable effect:
>>When the viewer window is shown for the first moment, it 
>>does NOT show the image, I can see only a blank widget!!!
>>Only after I interact with this window (for example simply by
>>clicking inside it), it display the image. 
>>How can make force my viewer to display the image as soon
>>as it (the viewer) appears on the screen?? In other words, 
>>which method trigers this ? draw, redraw, ?????
>>
>>Thanks,
>>
>>Zein
>>
>>
>>_______________________________________________
>>Insight-users mailing list
>>
>>http://public . kitware . com/mailman/listinfo/insight-users
>>
> 
> 
> 
> 
>