|
-
Apr 27th, 2001, 11:41 PM
#1
directdraw and forms
When using DirectDraw (Dx7) in full screen, theres exclusive access. Is it possible to have a form (that is in the same program) be shown on top of the form that is being blitted to?
-
Apr 28th, 2001, 05:18 AM
#2
Frenzied Member
If you're using DDraw in fullscreen mode then you are blitting directly to the video memory that is being used to render the image to the monitor. You can't keep that primary surface's info as it is and display a window on top of it.
Why use fullscreen mode if you want to show other windows?
Harry.
"From one thing, know ten thousand things."
-
Apr 28th, 2001, 05:29 AM
#3
What I had in mind was to use the 'on top' form to display selection menus/player status while a game is running. I imagined that having a form with custom controls for a GUI on top of the blitted form would easier than blitting a GUI.
Anyhow, since I can't do that. How would I go about blitting a GUI (simple things, like command buttons), what are some difficulties in doing this?
-
Apr 29th, 2001, 01:36 PM
#4
Frenzied Member
Well I don't see any big difficulties really. You'll have to get the mouse clicks - I'm not sure if you're going to get click events if you're in fullscreen mode. You may have to use DirectInput or GetAsynchKeyState() or something similar. I have only done this in C, never VB. I don't see any major problems though.
Harry.
"From one thing, know ten thousand things."
-
Apr 29th, 2001, 03:43 PM
#5
Lively Member
I have the same problem. But my question is, can I close the form i'm blitting into temporarily to open another window, and then come back to it?
-
Apr 29th, 2001, 11:09 PM
#6
How about maximising and minimising the form?
Code:
Form.WindowState = vbMinimized
'and
Form.WindowState = vbMaximized
-
Apr 30th, 2001, 05:39 AM
#7
transcendental analytic
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|