Teen Programmers Unite  
 

 

Return to forum top

Control sizing/placement: VC++

Posted by FrEAkiSh209 [send private reply] at May 22, 2002, 08:34:26 AM

I am learning Windows programming and I'm not having a lot of trouble creating controls and windows and all that, but I do have problems with my controls not being the size that I want and in the place that I want. My code is up at www.angelfire.com/rant/freak/Interface.cpp and www.angelfire.com/rant/freak/DefInterface.h and soon I'll have a scanned freehand drawing of what I want it to look like. Basically though, I just want a main static text box, a secondary static text box, a group of buttons about 20x20 and a second group of buttons the same size on the right hand side and about 5 pixels of padding between(it's easier in the picture). When I try to create them using values from my RECT, they end up in odd places, and controls such as my buttons become extremely long, while my static text boxes dock together with no padding between them. If anyone read this far and still wants to help me, I'd be really thankful. Thank you.

Posted by FrEAkiSh209 [send private reply] at May 22, 2002, 08:59:32 AM

nevermind

Posted by CodeRed [send private reply] at May 22, 2002, 10:09:09 AM

If I remember correctly it goes: x,y,width,heigth

Posted by FrEAkiSh209 [send private reply] at May 22, 2002, 02:52:12 PM

Ya, the thing I had said it was x,y,ending x, ending y. But right after I posted I guessed at it and got it right, so I'm good now

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.