| View previous topic :: View next topic |
| Author |
Message |
ihmed43 Expert Cheater
Reputation: 0
Joined: 04 May 2007 Posts: 150
|
Posted: Wed Jun 17, 2009 8:01 pm Post subject: [MSVC++ 2008] GUI Buttons |
|
|
last year i used to know how to add buttons on GUI's but i forgot how (cuz i didnt learn the language)
but now i kow some of the language and i forgot how to add buttons anyone want to explain how to add stuff like buttons and labels?? _________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jun 17, 2009 8:18 pm Post subject: |
|
|
CreateWindowEx
or just do it visually on a dialog.
Go google ResEdit, it will generate the code for you, as well as the dialogs if you want to use those instead. |
|
| Back to top |
|
 |
ihmed43 Expert Cheater
Reputation: 0
Joined: 04 May 2007 Posts: 150
|
Posted: Wed Jun 17, 2009 8:30 pm Post subject: |
|
|
can u give me a more thurough explanation? _________________
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jun 17, 2009 8:52 pm Post subject: |
|
|
Controls (like buttons) are windows.
If you want to create your window and everything yourself, you'll be using CreateWindowEx.
What you create is determined by the class you specify with CreateWindowEx. http://msdn.microsoft.com/en-us/library/ms633574%28VS.85%29.aspx1
You can also use Dialogs resources to create your interface. Dialogs are windows as well, but the system will handle the init of all the controls, the message pump, etc. |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Thu Jun 18, 2009 4:18 am Post subject: |
|
|
QPushButton *pb = new QPushButton(this);
:) |
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Thu Jun 18, 2009 11:41 am Post subject: |
|
|
Qt is gayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy. |
|
| Back to top |
|
 |
|