Page 1 of 1

How hide/show windowedscreen?

Posted: Sun Oct 06, 2024 5:32 pm
by minimy
Is it possible to put windowedscreen inside a container to hide or show it using a button?
Or other any idea?
Thanks for help

Re: How hide/show windowedscreen?

Posted: Sun Oct 06, 2024 7:33 pm
by moulder61
I recently wanted something quite similar sounding and found this post/code by TI-994A very helpful.

viewtopic.php?p=625584#p625584

Not sure if it's exactly what you're looking for but I achieved what I wanted anyway? :wink:

Moulder.

Re: How hide/show windowedscreen?

Posted: Sun Oct 06, 2024 11:07 pm
by minimy
moulder61 wrote: Sun Oct 06, 2024 7:33 pm I recently wanted something quite similar sounding and found this post/code by TI-994A very helpful.

viewtopic.php?p=625584#p625584

Not sure if it's exactly what you're looking for but I achieved what I wanted anyway? :wink:

Moulder.
Thanks for your answer, with TI-994A we learn a lot.

But no is what im looking for.

Some thing like an ID to embed in another gadget like butons into panelgadget or containergadget.

Imagine you have to panels, clik in the first and appear 3D window, clik in the second and show instructions.
Is this possible?

Re: How hide/show windowedscreen?

Posted: Mon Oct 07, 2024 12:06 am
by moulder61
Well, I wanted to create a logout dialog for Linux that has a full screen background and a smaller window inside for the actual logout buttons.
I did it before, using sprites, but I wanted to use gadgets and buttons so it would change if the theme changed.

TI-994A's post showed me roughly how to do it. I just chopped it about to get what I wanted which was basically a blurred screenshot of the desktop with a normal dialog to logout etc.

I'm not sure what you want exactly, but TI-994A's code opens a window then lets you click a button to open another(child) window.

I eventually ended up with this. Sorry I can't be more helpful. :oops:

Image

Moulder.

Re: How hide/show windowedscreen?

Posted: Sat Oct 12, 2024 9:24 pm
by minimy
Thanks molder, but maybe i expressed bad.

Im looking for some thing like this...

win3D= OpenWindowedScreen(WindowID(0),0,0,500,300,0,0,0,#PB_Screen_NoSynchronization)
HideWindow(win3D,1)
Delay(2000)
HideWindow(win3D,0)

Is possible hide a 3D window?

Thaks for the help!

Re: How hide/show windowedscreen?

Posted: Sat Oct 12, 2024 11:40 pm
by moulder61
I have no idea if that's possible, but if you can hide a window, why not a 3d window? Sounds like it should be possible?

I'm not sure this will help, and I cheat a lot, but sometimes when I open a window it flickers and I find it a bit annoying.
What I do instead is to open the window at a size of 0,0 then do the updating I need, then resize it to full screen or whatever?
So, what I'm sort of suggesting is, how about resizing the window to 0,0 instead of hiding it? Would that help?
Yes, I know I'm not a real programmer. :P

Moulder.