Thread: GUI designer

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    53

    GUI designer

    I'm looking for a visual GUI designer for win32. The thing i want is to learn the coordinates and sizes of the controls i will use. I can't use the built-in designer in Visual Studio, because i would like to create the controls at run time, using CreateWindow.

    I searched the net, but i couldn't find much. And the ones i tried wouldn't return the true coordinates, oddly.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Are you just looking for a resource editor? If so: ResEdit Resource Editor - free resource editor for Win32
    bit∙hub [bit-huhb] n. A source and destination for information.

  3. #3
    Registered User
    Join Date
    Mar 2011
    Posts
    53
    Yeah, that's what i'm looking for, but in ResEdit, the size of the window is about 2 times the real one.

    I recall sth called "dialog units", could it be because of that? Because as i mentioned before, i'm doing everything using CreateWindow, not using resources.

    Do you have any other recommendations?

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by new_in_c++ View Post
    I'm looking for a visual GUI designer for win32. The thing i want is to learn the coordinates and sizes of the controls i will use. I can't use the built-in designer in Visual Studio, because i would like to create the controls at run time, using CreateWindow.

    I searched the net, but i couldn't find much. And the ones i tried wouldn't return the true coordinates, oddly.
    There's only one way to do this, short of spending a huge wad of cash... Create the control windows then tinker the coordinates until you get what you want.

    The reason you are not getting "true coordinates" from back tracking .rc files is that dialogs don't measure window placement in pixels. They have their own DUs (Dialog Units) which may or may not equate to pixels. (Typical Microsoft... 3 times harder than it needs to be.)

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by new_in_c++ View Post
    Yeah, that's what i'm looking for, but in ResEdit, the size of the window is about 2 times the real one.

    I recall sth called "dialog units", could it be because of that? Because as i mentioned before, i'm doing everything using CreateWindow, not using resources.

    Do you have any other recommendations?
    If, by chance, you're going this way because VS free versions don't include resource editors... there's a few ways around that... First there is resedit as already mentioned... but there is also Pelles C... which comes with everything you need for free.

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Considering your name... are you writing C or C++?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User
    Join Date
    Mar 2011
    Posts
    53
    i'm writing for C, but i'm learning c++ at the moment. I'm still not confident at it... So nearly all the "useful" programming i do is C.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A Question regarding QT designer
    By manasij7479 in forum C++ Programming
    Replies: 1
    Last Post: 04-17-2011, 02:17 AM
  2. Any easy GUI designer ???
    By JessH in forum C++ Programming
    Replies: 3
    Last Post: 03-19-2011, 07:39 PM
  3. 2008 WPF designer
    By VirtualAce in forum General Discussions
    Replies: 11
    Last Post: 12-16-2010, 05:08 PM
  4. win32 application designer
    By dayglo77 in forum Windows Programming
    Replies: 3
    Last Post: 08-01-2009, 06:57 AM
  5. Looking for GUI Designer
    By Ruski in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 06-29-2002, 03:27 AM

Tags for this Thread