Color Requestor on Full Screen

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by NJBruce.

Hello to all.
I would like to know how to create a Color Requestor window on (in?) a full screen. My application is using the OpenScreen command and is using the FlipBuffers command for animation. It's easy enough to stop flipping buffers when trying to display the Requestor. But the Color Requestor winds up being hidden in the background, and when I press ALT-TAB to display it, the mouse pointer will not display on top of the Requestor although I can click on its buttons (strange!). I have tried creating a Window to see if this would affect the Requestor, but the Window is also hidden behind the Screen.
Is it possible to place requestors on a full screen?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by NJBruce.

It was late... I was tired... ColorRequester() was the command.
To me, it appears that using OpenScreen() is very limited in respect to what you can monitor and respond to, as in using menus and checking mouse and keyboard inputs and opening windows on it. I need some pointers as to what you can do with OpenScreen() other than just using it to animate. Code examples (although helpful) are not necessary, I just need to know what not to try to do with OpenScreen(). Thanks.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

OpenScreen() is a DirectX Screen, so its
for writing games.
The commands that you need in a game
are the Sprite- and the 2D-Drawing-commands.

Use a maximized Window for Fullscreen Apps.

cya,
...Danilo

(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Franco.

If you need a screen because you code a game or so but need also the colorrequester or other Windows stuff you can use the OpenWindowedScreen command and make it as big the Application Window is.
If you want fullscreen you can make the Window as big as your desktop is with:

If OpenWindow(0,0,0,GetSystemMetrics_(#SM_CXSCREEN),GetSystemMetrics_(#SM_CYSCREEN),#WS_POPUP,"Test Screen")

and with the #WS_POPUP flag you don't have any border, sysmenu and title.
After that you have to put your window 'topmost' and, because you have the same resolution than your desktop, the colorrequester has to look 'normal'.
Hope this helps a bit.



Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by NJBruce.

Thanks to you both, Danilo and Franco. Franco, your example was exactly what I was looking for. I now have the borderless full screen I wanted. I appreciate the help from both of you.
I sure have a lot to learn. I downloaded the Windows API help file, maybe I can learn a few things from it. See you around.
Post Reply