Questions tagged as 'eventos'

1
answer

What is an event handler?

I've read what an event , but then I saw that there are event handlers, event handler . What is an event handler ? What are they serving and where are they used? Are there in all languages?
asked by 25.05.2017 / 21:21
1
answer

What are the correct practices for manipulating events in PHP?

I've created some classes and an interface to handle events for a small MVC application. My intention is to implement the Observer pattern, but I do not know if you agree, since I still confuse it with PHP. In the following code, did I do it the...
asked by 30.12.2013 / 01:38
1
answer

How to dynamically create events in VBA?

The code below creates Labels dynamically and now I need to control the mouse action (Click event) on each Label. For example, move the text font (Caption) to bold if you are regular (not blacked out). How to create the "Click" even...
asked by 24.05.2016 / 18:04
2
answers

How to close a JFrame using keyboard events?

I have a JFrame that I want to close when I press the Esc key ... Well, I did this: public Cadastro() { addKeyListener(this); And then this: public void keyTyped(KeyEvent evt) { if(evt.getKeyCode() == KeyEvent.VK_ESCAPE){...
asked by 26.03.2015 / 21:08
2
answers

Error in key events in Allegro

I'm doing work from my course using Allegro as indicated. I need to capture the keystroke events on the keyboard, so I used the following: al_wait_for_event(evento, &ev); if(ev.type == ALLEGRO_EVENT_KEY_UP){ if (ev.keyboard.keycode==...
asked by 16.06.2014 / 07:34
2
answers

Toggle text and class of a link when clicked - jQuery

I'm trying to delegate a click event to a link inside a table, as this jsFiddle sample shows : The result you can see is: By clicking the " Enable " link, the click event assigned to the .activate class is triggered,...
asked by 15.10.2015 / 06:04
4
answers

How do I execute a method at the end of each method of my C #

You have a parent class and a daughter, and would like to execute a particular method, such as an event, always at the end of each method call for the child classes. How can I do it?     
asked by 23.06.2014 / 13:40
3
answers

How to reuse event code?

I have events that when pressing different keys perform some actions but I need to use this thing in more than one form , how can I do this? I found the issue of inheritance in C # Windows Forms a little complicated. An example that I use...
asked by 16.07.2016 / 22:04
3
answers

Why do not I need to pass parameters to this function?

I would like to know how function passing as a parameter in JS works, I'm starting the language now and I needed to make a call of EventListenner document.getElementsByClassName("informacao")[0].addEventListener("mouseover", troca(b...
asked by 26.02.2016 / 21:51
1
answer

How do I apply a Loading effect before loading the page?

Is there any way to use JavaScript / jQuery to measure loading a page and display a .GIF image until it loads? I see examples, such as Preloader CSS3 , which only use CSS3, which makes me think that the loading is done in a "false" way, seei...
asked by 02.06.2014 / 03:55