Re: [Gambas-user] Moving things

2009-07-27 Thread nic
Ok, thanks! I replaced all the "btnExit"s with Button1, the name of my button. I have a textbox set to receive the keypresses, but hopefully I will come up with a better solution. But it works! Thanks Dimtiris and Charles! On Mon, Jul 27, 2009 at 1:25 PM, Dimitris Anogiatis wrote: > Nic, > > btnE

Re: [Gambas-user] Moving things

2009-07-27 Thread Dimitris Anogiatis
Nic, btnExit refers to a button control that is called btnExit. From the name I can infer that it's an exit button What the code does is when you have the focus on that button and you press the up button on your keyboard the button will jump 10 pixels up from its current position and if you press

Re: [Gambas-user] Moving things

2009-07-27 Thread nic
Well, I tried the code, but an error message pops up and tells me that "btnExit" is an unknown identifier. To be specific, it means this one: PUBLIC SUB btnExit_KeyPress() SELECT CASE Key.Code CASE Key.Up >btnExit.y = btnExit.y - 10 CASE Key.Down btnExit.y = btnExit.Y + 10

Re: [Gambas-user] Moving things

2009-07-25 Thread nic
Cool! Thanks! This will definitely help in my game :D thanks On Sat, Jul 25, 2009 at 3:44 AM, charlesg wrote: > > Hi > > Quick? Easy? Depends on where you are looking from :) > '-- > PUBLIC SUB btnExit_KeyPress() > SELECT CASE Key.Code >CASE Key.Up > btnE

Re: [Gambas-user] Moving things

2009-07-25 Thread charlesg
Hi Quick? Easy? Depends on where you are looking from :) '-- PUBLIC SUB btnExit_KeyPress() SELECT CASE Key.Code CASE Key.Up btnExit.y = btnExit.y - 10 CASE Key.Down btnExit.y = btnExit.Y + 10 END SELECT END '

[Gambas-user] Moving things

2009-07-24 Thread nic
Is there a quick, easy way to make a picture or button move according to the arrow keys? -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforg