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
Documentation Suggestion Regarding #PB_Window_Invisible
Documentation Suggestion Regarding #PB_Window_Invisible
Simon White
dCipher Computing
dCipher Computing
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Documentation Suggestion Regarding #PB_Window_Invisible
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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
- VB6_to_PBx
- Enthusiast
- Posts: 627
- Joined: Mon May 09, 2011 9:36 am
Re: Documentation Suggestion Regarding #PB_Window_Invisible
#PB_Window_Invisible
How do make the Window "visible" again after #PB_Window_Invisible
found answer here 
http://www.purebasic.fr/english/viewtop ... 37#p455537
How do make the Window "visible" again after #PB_Window_Invisible
Code: Select all
HideWindow(0,#False)

http://www.purebasic.fr/english/viewtop ... 37#p455537
PureBasic .... making tiny electrons do what you want !
"With every mistake we must surely be learning" - George Harrison
Re: Documentation Suggestion Regarding #PB_Window_Invisible

Two growing code-collections: WinApi-Lib by RSBasic ~ LinuxAPI-Lib by Omi
Missing a download-file on the forums? ~ check out this backup page.
Missing a download-file on the forums? ~ check out this backup page.
Re: Documentation Suggestion Regarding #PB_Window_Invisible
> 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.
It's needed any time that you don't want your window shown;
not just for speed reasons when updating the GUI components.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.