I know this might not be really advanced, but I really don't know how to make an event for when a button is pressed - since i'm making a login screen for a game i'm making - i need help for my OK button which logs the user in - but also I don't know what to do when the user presses Cancel - which should close the program.
oh btw - i'm using Microsoft Visual C++ and Forms - i found it the easiest way to make a window.
If no one knows what i mean - I mean, I want to make somthing happen when I press a button
Last edited by DigiTechs (2012-09-16 05:29:01)
Offline
DigiTechs wrote:
meew0 wrote:
1. Go into the designer view.
2. Double-click the button.
3. Write your code.
4. Done!when I do that, it only shows settings for the button... ugh.
I get the same problem. Maybe you stick the code in where it brings you, i dont really know. i use C# instead of C++ for now, because i find its easier and i also grew up with it. My friend knows a lot about C++, maybe he can help. Ill ask him.
Offline
I don't know if this will help, but from my knowledge of objective-c, you go into the 'designer view' as you call it, connect a "touch inside" action from the button to the "files owner", then select your action from the menu
As I said, this might not work in C++, since I only know Objective-C!
Offline