473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

DirectX and Design buttons

Hey guys

Anyone know if it is possible to add a button at design time and place it
over the top of a directx window?

For example checkboxes, standard buttons, menus etc?

If so how?
Feb 26 '06 #1
4 2859
Since managed DirectX (assuming Direct3D) device takes a Control as
constructor parameter, you can pass any control, including a panel you would
place behind your controls you want to have "over the directx window"
(panel). Making it at design time is no more difficult than designing any
other form.

"Daniel" <Da*****@vestryonline.com> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hey guys

Anyone know if it is possible to add a button at design time and place it
over the top of a directx window?

For example checkboxes, standard buttons, menus etc?

If so how?

Feb 26 '06 #2
I have tried this but my direct3d scene just renders over the top and my
control cannot be seen :(

"Lebesgue" <no****@spam.jp> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Since managed DirectX (assuming Direct3D) device takes a Control as
constructor parameter, you can pass any control, including a panel you
would place behind your controls you want to have "over the directx
window" (panel). Making it at design time is no more difficult than
designing any other form.

"Daniel" <Da*****@vestryonline.com> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hey guys

Anyone know if it is possible to add a button at design time and place it
over the top of a directx window?

For example checkboxes, standard buttons, menus etc?

If so how?


Feb 26 '06 #3
I have used this several times and it worked. Which control are you passing
to the device constructor and what is your control hierarchy?

"Daniel" <Da*****@vestryonline.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have tried this but my direct3d scene just renders over the top and my
control cannot be seen :(

"Lebesgue" <no****@spam.jp> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Since managed DirectX (assuming Direct3D) device takes a Control as
constructor parameter, you can pass any control, including a panel you
would place behind your controls you want to have "over the directx
window" (panel). Making it at design time is no more difficult than
designing any other form.

"Daniel" <Da*****@vestryonline.com> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hey guys

Anyone know if it is possible to add a button at design time and place
it over the top of a directx window?

For example checkboxes, standard buttons, menus etc?

If so how?



Feb 27 '06 #4
So do you pass a panel into the directx constructor? I pass a form control
into it, then add the buttons to that form but no result. A code snippet
would be good of how you do this? Thanks
"Lebesgue" <no****@spam.jp> wrote in message
news:uK**************@tk2msftngp13.phx.gbl...
I have used this several times and it worked. Which control are you passing
to the device constructor and what is your control hierarchy?

"Daniel" <Da*****@vestryonline.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have tried this but my direct3d scene just renders over the top and my
control cannot be seen :(

"Lebesgue" <no****@spam.jp> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Since managed DirectX (assuming Direct3D) device takes a Control as
constructor parameter, you can pass any control, including a panel you
would place behind your controls you want to have "over the directx
window" (panel). Making it at design time is no more difficult than
designing any other form.

"Daniel" <Da*****@vestryonline.com> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hey guys

Anyone know if it is possible to add a button at design time and place
it over the top of a directx window?

For example checkboxes, standard buttons, menus etc?

If so how?



Mar 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Akkadian123 | last post by:
Hi guys, I'm a student of c#, and I was wondering how one would take advantage of multimedia in most c# apps/games. I assume one would use directx9, since there doesn't seem to be any support...
1
by: Bleedledeep | last post by:
I am new to C#/.NET/DirectX, and could not find a simple example of how to read the X/Y location of the joystick. < YIKES!!! The DirectX.DirectInput is one serious pile of API! > After some...
6
by: Tim Bücker | last post by:
Hello. What is the best to use? DirectDraw from DirectX 7.0 or Direct3D from DirectX 8.0 when the only thing one wants to do is to draw bitmaps fast on the screen in fullscreen mode. I think...
1
by: Robert Ludewig | last post by:
Hello, I recently started to develop my own little high level, easy to use 3D API on top of managed directx for .net. The idea behind it is having a generic API that lets me create (simpler)...
0
by: Harvey Cohen | last post by:
Hello all, I have some C# code that implements calls to DirectX.DirectSound. It compiles under both VS .NET 2003 and VS 2005 and runs under VS .NET 2003 and VS 2005 on a Compaq laptop (Windows...
14
by: Jessica Weiner | last post by:
I am writing an application in C# which need to plot graphs and simple shapes (polygons, circles, squares etc). Which library is better for this purpose and why? Thanks.
0
by: Boki | last post by:
Hi All, I am learning DirectX design, here are C++ and C# versions. C++ is the faster one, am I right? but it seems that Microsoft will prefer C# in the future, am I right? In order to...
14
by: ApexData | last post by:
In my database, I uniformly handle records on a Record by Record basis, in a single form that contains New/Edit/Del buttons. Because I'm dealing with records one at a time, I can easily manage my...
2
by: Z.K. | last post by:
I was wondering if someone could tell me why I get this message and how to prevent it. If I hit continue, it runs fine, but want to know what I am doing wrong so I won't get this error in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.