Reputation: 119
I have several questions concerning the controls like a button, if You could answer i would be very much pleased.
Questions:
Regards, Galymzhan Sh
Upvotes: 0
Views: 1102
Reputation: 3462
This one is tricky one.
I developed my own GUI, it is advance topic.
Here is how i developed mine.
Create class called button
In button class, create all variables needed like the width and Height of the button
Have a render function
If you gonna let users load their own texture for the button, you should include a load function
Create class for wrapper
This is just simple way to write buttons
Upvotes: 1
Reputation: 73713
It's relatively easy. If you want the same behaviour as a button (click, hover etc etc), then the best bet is to subclass the button control.
Have a read of the following MSDN articles:
http://msdn.microsoft.com/en-us/library/bb773183.aspx
http://msdn.microsoft.com/en-us/library/ms997565.aspx
http://msdn.microsoft.com/en-us/library/ms633569.aspx
Upvotes: 2