Thread: GUI coding, placing of objects

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    3

    GUI coding, placing of objects

    Basically when I create a GUI I create one object (eg a textbox) on the main window (with CreateWindowEx) and at first I just guess the X/Y and width/height values, will compile and run, see how it looks then keep modifying it until I get it in a position that looks good, but then when I add some more things, I have to modify that objects position and the textbox's so it all fits right and looks good.
    When working with lots of them it gets very tedious and takes long. Is there an easier way to do this?
    I mean in VB6 you can just draw the stuff on the form and can drag stuff around, I'm not looking for something that easy but whatever.

    I'm coding in C using MSVC++ 6.0.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Visual Studio comes with a resource editor as well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    137
    Thats one of the troubles with Win32 API, you have to keep testing, keep compiling.
    If you feel this is tiring, try using another library like wxWidgets.
    ★ Inferno provides Programming Tutorials in a variety of languages. Join our Programming Forums. ★

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Developing GUI objects in C - advice needed
    By officedog in forum C Programming
    Replies: 14
    Last Post: 10-31-2008, 03:30 PM
  2. Someone help my pathetic excuse for GUI coding
    By bikr692002 in forum Windows Programming
    Replies: 2
    Last Post: 04-10-2006, 05:42 PM
  3. Replies: 60
    Last Post: 12-20-2005, 11:36 PM
  4. Placing GUI in Top Right Corner
    By pldd4 in forum Windows Programming
    Replies: 2
    Last Post: 07-16-2003, 09:13 AM

Tags for this Thread