Skip to main content
GameDev.net gamedev.net
🔒 Locked

[.net] .NET controls in DirectX

Started by murdock Jun 25, 2009 at 1:31 PM 1 replies 950+ views
Original Post
murdock
murdock
I apologize if this seems like a trivial question, but like many on this website I am learning. =) Is it possible to use .Net controls such as a datagrid with directX? I am designing a game and would like to be able to use some of the .NET controls to build my interface and DirectX to do my other graphics. So far I have two sides to my game. A menu "shell" which is all 2D menus and a 3D "game" where all the action takes place. My initial thoughts of using a datagrid are because I would like a table layout similar to a datagrid to display some information but, I want the user to be able to sort it and click on a row to display more detailed information about that row. Any thoughts? If there is a better way to design my interface then by all means I'm welcome to suggestions.
TheTroll
TheTroll
Not really. Yes there are ways but they are a complete hack.

Look at this: http://www.codeproject.com/KB/directx/OdysseyUI.aspx

It will get ya started on the GUI controls.

theTroll
Nik02
Nik02
Also, the DXUT library - source of which is included with the DirectX SDK and used with most of the samples - implements a variety of basic controls such as text box, combo box and button. You can use them as a basis for creating more complex controls such as grids. Internally, Win32 controls (and therefore, .net Forms controls) and DXUT controls are implemented in a very similar way.
Niko Suni

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.