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. Buttons look different with DirectX

Buttons look different with DirectX

Scheduled Pinned Locked Moved C#
graphicsquestioncsharpgame-dev
2 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
    Jordanwb
    wrote on last edited by
    #1

    I've downloaded the source code available at http://www.codersource.net/published/view/328/directx_programming_in.aspx[^] I've added this code to the end of the constructor: Button b = new Button(); b.Name = "Foo"; b.Text = "Foo"; b.Size = new Size(74, 23); b.Location = new Point(12, 12); this.Controls.Add(b); But the button looks boring: http://img196.imageshack.us/i/blahulg.jpg/[^] With the regular graphics it looks nice: http://img196.imageshack.us/i/prettyf.jpg/[^] How do I get the DirectX rendered buttons to look like the regularly rendered buttons?

    N 1 Reply Last reply
    0
    • J Jordanwb

      I've downloaded the source code available at http://www.codersource.net/published/view/328/directx_programming_in.aspx[^] I've added this code to the end of the constructor: Button b = new Button(); b.Name = "Foo"; b.Text = "Foo"; b.Size = new Size(74, 23); b.Location = new Point(12, 12); this.Controls.Add(b); But the button looks boring: http://img196.imageshack.us/i/blahulg.jpg/[^] With the regular graphics it looks nice: http://img196.imageshack.us/i/prettyf.jpg/[^] How do I get the DirectX rendered buttons to look like the regularly rendered buttons?

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      Here's a clue: Where is the author of this most likely to be? Here or OVER ON CODESOURCE!


      Panic, Chaos, Destruction. My work here is done.

      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