Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Drawing windows Form over DirectD app

Drawing windows Form over DirectD app

Scheduled Pinned Locked Moved C#
questiongraphicsworkspace
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jtmtv18
    wrote on last edited by
    #1

    Any ideas to the question above? i can make the form appear but there are a few problems to note. 1. The mouse does not draw on the form that appears on top of the app. 2. you cannot move the form around or else the backround will 'brake up' The app is full screen (non-exclusive although i would like it to work with exclusive). How do i have to setup my direct draw drawing methods to work when this form i being draw? the code im using to make the form is just a test code basicly this: Form f = new Form(); f.ShowDialog(); Thanks alot for your time.

    E 1 Reply Last reply
    0
    • J jtmtv18

      Any ideas to the question above? i can make the form appear but there are a few problems to note. 1. The mouse does not draw on the form that appears on top of the app. 2. you cannot move the form around or else the backround will 'brake up' The app is full screen (non-exclusive although i would like it to work with exclusive). How do i have to setup my direct draw drawing methods to work when this form i being draw? the code im using to make the form is just a test code basicly this: Form f = new Form(); f.ShowDialog(); Thanks alot for your time.

      E Offline
      E Offline
      exhaulted
      wrote on last edited by
      #2

      I don't know exactly what controls there are included but if you get the new SDK (December 2004 update) there are form type controls included with directX. I know there are text boxes, buttons, labels etc but i've notlooked into it in any great detail yet but you may be able to find what your looking for there. Kev

      J 1 Reply Last reply
      0
      • E exhaulted

        I don't know exactly what controls there are included but if you get the new SDK (December 2004 update) there are form type controls included with directX. I know there are text boxes, buttons, labels etc but i've notlooked into it in any great detail yet but you may be able to find what your looking for there. Kev

        J Offline
        J Offline
        jtmtv18
        wrote on last edited by
        #3

        i currently have that version installed on my comp..i noticed that it seems to be d3d controls? im using direct draw and i think the best way to just show buttons and options is to pop open a standard windows form and work from that. in any case i looked through the directx documents and they seems to be lack luster to say the least. Jesse The Code Project Is Your Friend...

        E 1 Reply Last reply
        0
        • J jtmtv18

          i currently have that version installed on my comp..i noticed that it seems to be d3d controls? im using direct draw and i think the best way to just show buttons and options is to pop open a standard windows form and work from that. in any case i looked through the directx documents and they seems to be lack luster to say the least. Jesse The Code Project Is Your Friend...

          E Offline
          E Offline
          exhaulted
          wrote on last edited by
          #4

          Maybe just include a reference to D3D and have a go? Although i must admit the documentation all seems very poor for managed DirectX. I'm working on some DDraw stuff myself so if you figure it out then let me know, it would be nice to have some sort of options form or something like that in some of my future projects. I can't even point you in the direction of any good source material for managed directX, the best book i have found is Managed DirectX Kick Start by Tom Miller but the main focus of that is on D3D and it doesn't cover working with forms. As for websites i haven't been able to find any that specifically cover Managed DX, the best i have found is sites like this one that cover programming in general. A friend and I are working on a website at the minute but we have just started it and are going to focus on games programming so i don't see us worrying to much about getting forms displayed at the minute. If you fancy taking a look at the site go to www.monkeycmonkeydo.co.uk Kev

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups