d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Quick Question About Visual Studio And Mfc...
Add Reply New Topic New Poll
Member
Posts: 292
Joined: Jul 9 2012
Gold: 25,882.00
Jul 21 2013 06:04pm
Hey guys,

Might something really easy for you guys if you're used to work with MFC.
I have a main frame in which i just have many inputs and labels.

Hmm, how to explain it...i want to put a label in the same line as its input and align things so the window looks "cool" but i can't find any property on my main frame so i have like a magnetic grid or something to help me to align things...

Does anyone has a tip for me? :)

Thanks for your help ;)
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jul 21 2013 06:32pm
no idea what MFC is. but when i used the GUI builder for c#/vb years ago, you can set the location (make the y coordinates line up) then anchor it if you're concerned about resizing.

not sure what "looks cool" means.
Member
Posts: 292
Joined: Jul 9 2012
Gold: 25,882.00
Jul 24 2013 01:57am
Well thanks for your help, i've been searching for 2 days and it seems like microsoft didn't give a fuck about this function, they just stoped the MFC project and went to .net ;(
MFC is like the windows form library but older and made for C++
Told my mate we should do our bot in C# it's way more easier :(
Member
Posts: 237
Joined: Aug 6 2011
Gold: 6,026.00
Aug 8 2013 06:35pm
It's been ages but from what I remember, you have to display the property window from the "view" menu, then select the controls in the gui side, it'll display the coordinates in the said window for you to modify. You can also do this programmatically, something like myLabel.posX. Look for the members of the lable control class in the mfc documentation.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll