XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Why winforms and not some gui or menu library made in xna?

Last post 05/11/2009 5:07 AM by jwatte. 2 replies.
  • 04/11/2009 11:05 PM

    Why winforms and not some gui or menu library made in xna?

    I was wondering why people choose winfors instead of guy.

    If you are doing a small editor like a model viewer do you really need a gui ? I cannot find any real tutorial on how use winforms not just intergaret it to xna can someone point me out one ? If you want tjust to give an opinion or why you use it or just your own experience with it feel free to share.

    I just looking for the easiest option for me, since I never use it.


    cheers
  • 04/11/2009 11:14 PM In reply to

    Re: Why winforms and not some gui or menu library made in xna?

    1) WinForms is built by an experienced team at Microsoft and has been used for many, many projects. So you know it works.
    2) WinForms has a visual editor so you don't have to lay out the UI by hand.
    3) WinForms has a lot of controls, so you don't have to compromise your application's design based on the UI library you find for XNA or have to write a big UI system.

    Basically if you're just making an app for Windows, writing a UI framework for XNA to replicate what WinForms already does is a waste of time unless you just want to learn how that sort of stuff works.
  • 05/11/2009 5:07 AM In reply to

    Re: Why winforms and not some gui or menu library made in xna?

    If you just need a menu for "new game," "exit game" and "credits," rolling your own GUI is not that hard.

    However, once you need a PropertyGrid, or a DataGrid, or even just a ComboBox, then writing that in XNA is hard. And if you want to support non-Latin languages (right-to-left, top-to-bottom, multi-byte, etc) then it's even harder.

    XNA is great at shuffling data between your game and the graphics card and other devices.
    WinForms is great at drawing text and handling mouse/keyboard "productivity" input.
    It just makes sense to use each thing for what it's good at, rather than re-inventing the wheel (and, lets face it, your re-invented wheel often ends up kind-of oval most of the time...)
    Jon Watte, Direct3D MVP
    Tweets, occasionally
    kW X-port 3ds Max .X exporter
    kW Animation source code
Page 1 of 1 (3 items) Previous Next