GUI coding, placing of objects

This is a discussion on GUI coding, placing of objects within the Windows Programming forums, part of the Platform Specific Boards category; Basically when I create a GUI I create one object (eg a textbox) on the main window (with CreateWindowEx) and ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,761
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 04:30 PM
  2. Someone help my pathetic excuse for GUI coding
    By bikr692002 in forum Windows Programming
    Replies: 2
    Last Post: 04-10-2006, 06: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, 10:13 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21