Page 1 of 1

Documentation Suggestion Regarding #PB_Window_Invisible

Posted: Thu Nov 06, 2014 3:36 pm
by swhite
Hi

I discovered this week that using #PB_Window_Invisible in OpenWindow() results in much higher speed when adding lots of controls or items to comboGadgets. In other development environments I have been use to have a redraw or repaint property that I usually set to false before doing this kind of intense changes to a form but I did not see this in Purebasic and had not realized that making the Window invisible did had the same effect.

My suggestion is to add a note in the documentation in the OpenWindow section about techniques for improving performance when adding and updating controls on a form and to mention the role of #PB_Window_Invisible in this regard.

Thanks,
Simon

Re: Documentation Suggestion Regarding #PB_Window_Invisible

Posted: Thu Nov 06, 2014 5:12 pm
by IdeasVacuum
Good point - it isn't necessarily obvious as to why the flag would be needed. Actually it's not going to be seen by new Users because the Form Designer does not support it.

Re: Documentation Suggestion Regarding #PB_Window_Invisible

Posted: Thu Nov 06, 2014 7:31 pm
by VB6_to_PBx
#PB_Window_Invisible

How do make the Window "visible" again after #PB_Window_Invisible

Code: Select all

HideWindow(0,#False)
found answer here :)
http://www.purebasic.fr/english/viewtop ... 37#p455537

Re: Documentation Suggestion Regarding #PB_Window_Invisible

Posted: Thu Nov 06, 2014 10:45 pm
by Vera

Re: Documentation Suggestion Regarding #PB_Window_Invisible

Posted: Fri Nov 07, 2014 1:26 am
by PB
> it isn't necessarily obvious as to why the flag would be needed

It's needed any time that you don't want your window shown;
not just for speed reasons when updating the GUI components.