Author Topic: Windows GUI or Custom GUI?  (Read 18573 times)

5v3nd0ttg

  • Newcomer
  • Posts: 42
  • Karma: +0/-0
  • Nate
    • MSN Messenger - p03tic5ickn355@msn.com
    • AOL Instant Messenger - p03tic5ickn355
    • Yahoo Instant Messenger - p03tic5ickn355
    • View Profile
    • The Other Experiment Studio
    • Email
Windows GUI or Custom GUI?
« on: December 02, 2010, 10:23:09 PM »
Said application is made for windows OS's. Attached is an example of a custom GUI I've come up with.

I keep running into a variety of issues with Windows compatibilities between Vista, 7, & XP. They seem to modify placement of buttons, window sizes and such depending on their various themes - Thanks Windows, great consistancy. I require a strict placement of items and classes. I don't mind creating my own classes as I have plenty of libraries I've made in the past.

Keep title bar, and make unique fixes for various Win platforms.
or
Modify a custom GUI to accept minimize, close, and other features and do away with the standard GUI.
Check out my artwork, photography, and video game projects at www.theoestudio.com.

Ex

  • IRC Communications Delegate
  • Rogueliker
  • ***
  • Posts: 313
  • Karma: +0/-0
    • View Profile
Re: Windows GUI or Custom GUI?
« Reply #1 on: December 03, 2010, 03:58:06 AM »
Personally, I'd probably just make unique fixes for each version of windows, for several reasons: first, you've already coded this implementation, and it would be a lot more work to add a custom GUI at this point. Second, there might be unforeseen problems with the custom GUI that you're not currently facing with the windows GUI. Third, what you have totally works except for a fairly minor problem that only appears on some platforms. Personally in the case of C/C++, I wouldn't worry too much about windows Vista & XP, but I tend to like targeting a single platform these days and sticking to it. If you really want multiplatform consistency, Java is an excellent option.

MrMorley

  • Newcomer
  • Posts: 24
  • Karma: +0/-0
    • View Profile
    • Jason's Development Blog
    • Email
Re: Windows GUI or Custom GUI?
« Reply #2 on: December 05, 2010, 01:57:14 PM »
« Last Edit: December 05, 2010, 01:59:15 PM by MrMorley »
Jason's Development Blog
Nerds who program party hard

5v3nd0ttg

  • Newcomer
  • Posts: 42
  • Karma: +0/-0
  • Nate
    • MSN Messenger - p03tic5ickn355@msn.com
    • AOL Instant Messenger - p03tic5ickn355
    • Yahoo Instant Messenger - p03tic5ickn355
    • View Profile
    • The Other Experiment Studio
    • Email
Re: Windows GUI or Custom GUI?
« Reply #3 on: December 05, 2010, 08:06:15 PM »
Second, there might be unforeseen problems with the custom GUI that you're not currently facing with the windows GUI.

That's a good point. Thanks.
Check out my artwork, photography, and video game projects at www.theoestudio.com.

corremn

  • Rogueliker
  • ***
  • Posts: 700
  • Karma: +0/-0
  • SewerJack Extraordinaire
    • View Profile
    • Demise RogueLike Games
Re: Windows GUI or Custom GUI?
« Reply #4 on: December 05, 2010, 11:37:59 PM »
With roguelikes, never do a rewrite unless you cant progress. 
corremn's Roguelikes. To admit defeat is to blaspheme against the Emperor.  Warhammer 40000 the Roguelike

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: Windows GUI or Custom GUI?
« Reply #5 on: December 06, 2010, 08:22:53 AM »
If you really want multiplatform consistency, Java is an excellent option.

Or you can use low level library like SDL and create a gui with that. Of course it could mean more work, but there is fun also in creating your own gui.

Ex

  • IRC Communications Delegate
  • Rogueliker
  • ***
  • Posts: 313
  • Karma: +0/-0
    • View Profile
Re: Windows GUI or Custom GUI?
« Reply #6 on: December 06, 2010, 11:06:50 AM »
If you really want multiplatform consistency, Java is an excellent option.

Or you can use low level library like SDL and create a gui with that. Of course it could mean more work, but there is fun also in creating your own gui.
Absolutely true, creating a gui can be a surprising amount of fun :)

Z

  • Rogueliker
  • ***
  • Posts: 905
  • Karma: +0/-0
    • View Profile
    • Z's Roguelike Stuff
Re: Windows GUI or Custom GUI?
« Reply #7 on: December 06, 2010, 06:00:59 PM »
Yes. I also generally recommend using SDL. The main reason for using SDL is that it is portable, which means it should not be a problem to move to a new OS. It displays a windows with (as far as I recall) the title and all the basic buttons (minimize, maximize, close), and all the content is yours to draw.

If you don't want your program to look like e.g. a standard Windows application, I don't see why would you use standard Windows (or Java, or Qt, etc) libraries for drawing GUIs.

linux_junkie

  • Newcomer
  • Posts: 28
  • Karma: +0/-0
    • View Profile
    • Email
Re: Windows GUI or Custom GUI?
« Reply #8 on: December 07, 2010, 02:54:19 AM »
Have you looked into agar?  http://libagar.org/

It's a great GUI toolkit, and well worth checking out.  I'm using it myself with libtcod.

5v3nd0ttg

  • Newcomer
  • Posts: 42
  • Karma: +0/-0
  • Nate
    • MSN Messenger - p03tic5ickn355@msn.com
    • AOL Instant Messenger - p03tic5ickn355
    • Yahoo Instant Messenger - p03tic5ickn355
    • View Profile
    • The Other Experiment Studio
    • Email
Re: Windows GUI or Custom GUI?
« Reply #9 on: December 07, 2010, 05:17:52 PM »
Have you looked into agar?  http://libagar.org/

It's a great GUI toolkit, and well worth checking out.  I'm using it myself with libtcod.

I haven't heard of Agar. Ability to implement Vector-based graphics seems amazing. Wouldn't have to package an unnecessary Macromedia flash or shockwave plugin with applications. Will definately need to compare and contrast the two for size and speed. Some great other features it has as well. Thanks for the link.

Check out my artwork, photography, and video game projects at www.theoestudio.com.

elwin

  • Rogueliker
  • ***
  • Posts: 96
  • Karma: +0/-0
    • View Profile
    • Roguelike Gallery
Re: Windows GUI or Custom GUI?
« Reply #10 on: December 11, 2010, 09:48:58 PM »
I would recommend not trying to come up with a fix for each different version.  Someone is sure to come along with a custom theme or a weird combination of settings that ruins all your carefully devised adjustments.
Roguelike Gallery: play Rogue online.  SSH or in browser.

mariodonick

  • Rogueliker
  • ***
  • Posts: 296
  • Karma: +0/-0
    • View Profile
    • LambdaRogue .:. roguelike RPG
Re: Windows GUI or Custom GUI?
« Reply #11 on: January 14, 2011, 12:34:58 PM »
Even on the different versions of Windows it's possible to get a guaranteed positioning of widgets. There exist functions to get the current working area size, the current font size, dpi etc. Use the resulting values to adjust the position and size of your controls.

Or, indeed, don't use Windows forms at all, but switch to SDL or another library.
https://mariodonick.itch.io/lambdarogue-the-book-of-stars
-- LR: The Book of Stars graphical roguelike RPG