Tagged Questions
2
votes
2answers
238 views
Creating Rectangle-based buttons with OnClick events
As the title implies, I want a Button class with an OnClick event handler. It should fire off connected events when it is clicked.
This is as far as I've made it:
public class Button {
public ...
2
votes
2answers
99 views
How do I drag my widgets without dragging other widgets?
I have a bunch of drag-able widgets on screen. When I am dragging one of the widgets around, if I drag the mouse over another widget, that widget then gets "snagged" and is also dragged around.
...
7
votes
4answers
3k views
Should I use Events in a XNA Game?
I created a button class which draw a button on the screen. When I click on it, I want to see something happening. In WinForm, I would simply use the event OnClick of the button. What about XNA?
...