Activate event somehow makes an invisible window visible again while the Visible property of window remains false.
I can post event but i do not want to post event from Activate event because already posted many events and certain sequence is important.
What reason makes window visible in Activate and why even after setting it to false does not effect visibility?
How to fix this issue?
I opened a window and in open event posted _hide() and in that event i set window visible property to false and called Hide() function too but window remains visible.
what to do to hide a window already opened or what to do to hide window even before open event is fired?
Regards,
Berka
Define creating at runtime, please. How are you doing this and why would you need to import this window back into a library? Is this a window that you create just for this purpose or a regular window you just want to make invisible in some cases? What are you using this invisible window for? This might be a XY problem where the solution you ask about might not be viable for the problem at hand.
Now, thing to note is that i am writing code in the parent window that has no parent. That also means all my sheets are inherited from the lets say w_parent.
2nd important thing is that i dont want to open every inherited sheet and manually change its type in design mode to something other than Main.
Now, last option to change type at runtime is to do LibraryExport/Import and when syntax is in variable i change type and then Import the window back into a temp library. This will not happen in PB because LibraryImport function takes only DataWindow! as parameter. Window or any other object cannot be imported into Library.
Certainly changing type of window seems too much of work to me. I would do one thing next and that is the reason to find why TypeOf() always fail when height/width of sheet is not bigger enough like 600 or more.
HTH
Alright, just checked it and PB help says
"To create an instance of a visual user object or window, use the appropriate Open function (instead of CREATE)."