473,698 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2870
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*****@vestry online.com> wrote in message
news:uc******** ******@TK2MSFTN GP12.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******** ********@TK2MSF TNGP09.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*****@vestry online.com> wrote in message
news:uc******** ******@TK2MSFTN GP12.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*****@vestry online.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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******** ********@TK2MSF TNGP09.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*****@vestry online.com> wrote in message
news:uc******** ******@TK2MSFTN GP12.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******** ******@tk2msftn gp13.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*****@vestry online.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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******** ********@TK2MSF TNGP09.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*****@vestry online.com> wrote in message
news:uc******** ******@TK2MSFTN GP12.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
8013
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 for audio, video, etc in c# itself (correct me if im wrong there). What is the best way to learn directX, especially for c#? Can anyone recommend any good books?
1
23445
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 futzing around, I came up with the following - which seems to work just fine. I'm looking for a sanity check here, is this a good way to access the joystick? Yeah, yeah, I only look for the first joystick, and there is some hardcoded silliness in...
6
9071
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 DirectX 9.0 is not a topic in C# right now when one wants to have fast access to DirectX as the type libraries for visual basic that can be used in c# only exist in DirectX7 and DirectX8, correct? Searching the net I didn´t find really useful...
1
1456
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) 3D-applications in the shortest possible time in .net. It involves implementing things like a node structure for the scenegraph, a console, device configuration manager etc. Just like we know it from other APIs, like java3d or openinventor or from...
0
2941
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 XP Home), a Dell Xeon workstation (Windows XP Pro) and a Gateway GM 825 (Windows XP Media Center). It also runs on the Dell and the Compaq under VS 2005, but when I attempt to run the code under VS 2005 on the Gateway (Windows XP MCE), I get...
14
2651
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
986
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 learn more and learn something that is helpful for now and future, I have to learn C++ not C#, am I right?
14
1585
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 button operations. The user enters the system in ViewOnlyMode, if EditButton is pressed, the fields turn yellow, and Me.AllowEdits becomes true, and the user edits. This is followed by a Save/Undo/Quit button, that does the obvious, and the user...
2
2312
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 future. also what is the file Clock.vshost.exe; my application is Clock.exe. Z.K. 'Clock.vshost.exe' (Managed): Loaded 'C:\Documents and Settings\Super_Wizard\My Documents\Visual Studio
0
8671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8598
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9016
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7709
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.