| View previous topic :: View next topic |
| Author |
Message |
Negima I post too much
Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Fri Aug 15, 2008 7:29 pm Post subject: Making a GUI? |
|
|
| How does one make a GUI for a C++ application? |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
|
| Back to top |
|
 |
Negima I post too much
Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Fri Aug 15, 2008 7:56 pm Post subject: |
|
|
| Jani wrote: | | http://www.zetcode.com/tutorials/wxwidgetstutorial/firstprograms/ | I mean how in VS 08 and how to make it so that functions will be performed on
button press. |
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Fri Aug 15, 2008 8:00 pm Post subject: |
|
|
| Double click on the button and add your code there. |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Aug 15, 2008 8:06 pm Post subject: |
|
|
| Negima wrote: | | Jani wrote: | | http://www.zetcode.com/tutorials/wxwidgetstutorial/firstprograms/ | I mean how in VS 08 and how to make it so that functions will be performed on
button press. |
respond to WM_COMMAND
http://msdn.microsoft.com/en-us/library/ms647591(VS.85).aspx
wParam is the ID. |
|
| Back to top |
|
 |
Negima I post too much
Reputation: 5
Joined: 22 May 2007 Posts: 2221
|
Posted: Fri Aug 15, 2008 9:14 pm Post subject: |
|
|
| dnsi0 wrote: | | Double click on the button and add your code there. | button?
@slovach I mean the button on the form itself. |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Aug 15, 2008 10:04 pm Post subject: |
|
|
| Negima wrote: | | dnsi0 wrote: | | Double click on the button and add your code there. | button?
@slovach I mean the button on the form itself. |
I know.
wParam is the ID of your button. if wParam is that ID, you know it's been clicked and can act appropriately.
http://www.winprog.org/tutorial/
read this and understand it. |
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Fri Aug 15, 2008 10:53 pm Post subject: |
|
|
C++ isn't some RAD language where you have a WYSIWYG style GUI builder. You actually have to handle the message that your process recieves when someone clicks a button. _________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sat Aug 16, 2008 5:38 am Post subject: |
|
|
C++ != VB, you will have to handle the GUI messages and such yourself as others said. What Jani linked you to is a cross-platform GUI library that helps make GUI development a little easier (assuming you read how to use the lib itself). _________________
- Retired. |
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Mon Aug 18, 2008 5:28 am Post subject: |
|
|
but appface can change the interface? why is that then? _________________
Intel over amd yes. |
|
| Back to top |
|
 |
|