How can I get forms working in DirectX? Do I need to create my own TDXForm? Can anyone give me any pointers on solutions to this problem? How do you do it?
Thanks
How can I get forms working in DirectX? Do I need to create my own TDXForm? Can anyone give me any pointers on solutions to this problem? How do you do it?
Thanks
http://www.c5software.co.uk (site is being developed at the moment)
*bump*
http://www.c5software.co.uk (site is being developed at the moment)
I'm probably stupid but what exactly do you want? Do you want to use DirectX to draw on your form (then it should be something like myDirectDraw.SetCooperativeLevel(MyForm.Handle, DDSCL_FULLSCREEN or DDSCL_EXCLUSIVE or DDSCL_ALLOWREBOOT)) or do you want to have a form pop up at runtime? Then this link may be useful (FullscreenDialog I think).
I guess it's the same thing with Direct3D.
Signature:
<br />This is a block of text that can be added to posts you make. There is a 255 character limit
Thanks for that link, it may help me to work out what I need. Basically I want to show TForms inside my DX application. It's fullscreen so I guess that TForm wont get drawn.Originally Posted by Ultra
http://www.c5software.co.uk (site is being developed at the moment)
What DirectX version?
There are only 10 types of people in this world; those who understand binary and those who don't.
Hi, thanks for replying!Originally Posted by Clootie
DX7
http://www.c5software.co.uk (site is being developed at the moment)
In DirectDraw7/Direct3D7:
[pascal][background=#FFFFFF][normal=#000000][number=#0000FF][string=#0000FF][comment=#248F24][reserved=#000000](1) at init time:
if (ddObject.CreateClipper(0, @ddClipper, NULL) = DD_OK) then
ddClipper.SetHWnd(0, hwndAppWindow);
ddObject.FlipToGDISurface;
(2) later
ddFrontBuffer.SetClipper(ddClipper);
ddFrontBuffer.Blt(NULL, ddBackBuffer, NULL, DDBLT_WAIT, NULL);
// or Flip
ddObject.FlipToGDISurface;[/pascal]
There are only 10 types of people in this world; those who understand binary and those who don't.
Thanks for the quick reply again, but I am using fullscreen mode!Originally Posted by Clootie
http://www.c5software.co.uk (site is being developed at the moment)
You mean you need this?
[pascal]surface.Flip();
DDraw.FlipToGDISurface;[/pascal]
There are only 10 types of people in this world; those who understand binary and those who don't.
Thanks, but what I really wanted was some miracle way of getting forms to paint to DirectX surfaces! I think without a lot of coding it isn't going to happen. I played around with FlipToGDISurface already, it's very very slow to the point it may as well not be used.Originally Posted by Clootie
http://www.c5software.co.uk (site is being developed at the moment)
Bookmarks