C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-23-2008, 09:51 AM   #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.
jsithy is offline   Reply With Quote
Old 11-23-2008, 01:59 PM   #2
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
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.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 11-23-2008, 11:59 PM   #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. ★
execute is offline   Reply With Quote
Reply

Tags
gui, objects, programming, win32

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Developing GUI objects in C - advice needed officedog C Programming 14 10-31-2008 03:30 PM
Someone help my pathetic excuse for GUI coding bikr692002 Windows Programming 2 04-10-2006 05:42 PM
I believe I've found an official Answer to my Problem (Object Factories) Shamino Game Programming 60 12-20-2005 11:36 PM
Placing GUI in Top Right Corner pldd4 Windows Programming 2 07-16-2003 09:13 AM


All times are GMT -6. The time now is 07:59 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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