[Gambas-user] Signal #11

Benoit Minisini gambas at ...1...
Wed Nov 23 01:37:41 CET 2005


On Tuesday 22 November 2005 16:00, admin at ...1080... wrote:
>
> My KDE style i dont now, but i have a theme called Michelangelo.
> And yes i had messages in the debug window about problem with painting.
>
> That the progressbar does not show its action when it is unvisible at
> startup, is this by design or i do some wrong?
> I do it like this:
> Sub button_click()
> Progressbar.visible=true
> Progressbar.value=0
> Progressbar.refresh()
> .... Some action
> Do while
> Progressbar.value=value
> Progressbar.refresh()
> loop
> ...
> Progressbar.visible=false
> End
>
> But the progressbar is never visible.
>
> Regards
> Werner Staudacher
>

You can play with Visible, Refresh, and so on, you won't see the result until 
you return to the event loop (i.e. when you have finish with your event 
handler).

With X-Window, drawing and displaying are completely disconnected.

I mean, when you do 'ProgressBar.Visible = False', you only send an order to 
the X-Server, that in turn ask (later) to your application to repaint the 
ProgressBar. And Gambas catch this repaint event only in the event loop, and 
so after the button_click() event handler is finished.

Regards,

-- 
Benoit Minisini





More information about the User mailing list