n3lThon Posted March 13, 2009 at 05:24 PM Report Share #250578 Posted March 13, 2009 at 05:24 PM Como é que ao clicar num botão consigo verificar se uma tecla está a ser premida? :/ dreams.each do |dream| dream.make_it_happen end Link to comment Share on other sites More sharing options...
Hellblazer Posted March 13, 2009 at 06:52 PM Report Share #250587 Posted March 13, 2009 at 06:52 PM tens o evento do form KeyPress There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
n3lThon Posted March 13, 2009 at 07:01 PM Author Report Share #250590 Posted March 13, 2009 at 07:01 PM Como verifico se é um determinado botão que está a ser premido? dreams.each do |dream| dream.make_it_happen end Link to comment Share on other sites More sharing options...
Hellblazer Posted March 13, 2009 at 07:07 PM Report Share #250591 Posted March 13, 2009 at 07:07 PM utilizando o e.KeyChar e depois basta saberes a tabela de ascii 😉 Exemplo Enter: If e.KeyChar = Chr(13) Then MessageBox.Show("It worked") End If There are two ways to write error-free programs; only the third one works. Link to comment Share on other sites More sharing options...
n3lThon Posted March 13, 2009 at 07:30 PM Author Report Share #250593 Posted March 13, 2009 at 07:30 PM E para o rato? dreams.each do |dream| dream.make_it_happen end Link to comment Share on other sites More sharing options...
jpaulino Posted March 13, 2009 at 09:47 PM Report Share #250611 Posted March 13, 2009 at 09:47 PM E para o rato? MouseDown Link to comment Share on other sites More sharing options...
n3lThon Posted March 13, 2009 at 10:28 PM Author Report Share #250619 Posted March 13, 2009 at 10:28 PM Obrigado aos dois, está resolvido. 😉 dreams.each do |dream| dream.make_it_happen end Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now