[FIXED]Control.cs



Users browsing this forum: No registered users and 2 guests

Next topic
Previous topic
Post new topic Reply to topic  NeoAxis Forum Index » General » Bugs
Search for:
Author Message

Joined: Thu Feb 03, 2011
Posts: 1305
PostPosted: Fri Dec 13, 2013 12:24 pm Post subject: [FIXED]Control.cs
Reply with quote Bottom of Page Back to top
For some input methods, it proceed children control in the ControlsCollection order, instead of reverse order ( to match control visibility )

Methods are :
OnKeyDown(KeyEvent e)
OnKeyPress(KeyPressEvent e)
OnKeyUp(KeyEvent e)
OnMouseWheel(int delta)
OnJoystickEvent(JoystickInputEvent e)
OnCustomInputDeviceEvent(InputEvent e)


Code: Select all   Expand view
//they use :
for (int index = 0; index < this.Controls.Count; ++index)

//they should use :
for (int index = this.Controls.Count - 1; index >= 0; --index) // used for mouse

 
 Profile  

Joined: Sat Dec 18, 2010
Posts: 531
Location: Download it all.. My website
PostPosted: Sat Dec 14, 2013 5:56 am 
Reply with quote Bottom of Page Back to top
hmm I am confused. 0 to item controls.count should work...confused why backwards would work better...

 
 Profile  

Joined: Thu Feb 03, 2011
Posts: 1305
PostPosted: Sat Dec 14, 2013 8:42 am 
Reply with quote Bottom of Page Back to top
Because item are rendered 0 to count. then the last item is on the top, and the first is on the bottom. Mouses methods count backward.

for example, if you try to assign scrollUp/Down, you have to move you mouse outside of the list because event if it's under the keylistener it will capture the even.. which is sad :-(

 
 Profile  
Administrator
Administrator

Joined: Wed Oct 11, 2006
Posts: 4936
Location: Saint Petersburg
PostPosted: Sun Jan 26, 2014 12:59 pm 
Reply with quote Bottom of Page Back to top
Thanks, fixed!
2.1 coming soon.

_________________
Administration account. Forums support: support@neoaxisgroup.com
 
 Profile  

Joined: Thu Feb 03, 2011
Posts: 1305
PostPosted: Sun Jan 26, 2014 6:34 pm 
Reply with quote Bottom of Page Back to top
Yeah ! =D

 
 Profile  

Joined: Sat Dec 18, 2010
Posts: 531
Location: Download it all.. My website
PostPosted: Tue Jan 28, 2014 4:05 am 
Reply with quote Bottom of Page Back to top
Yay. I see awesome fixes coming.!!!!

 
 Profile  

Joined: Sun Dec 08, 2013
Posts: 1
PostPosted: Sun Feb 02, 2014 7:55 pm 
Reply with quote Bottom of Page Back to top
in this more, more no good.

 
 Profile  

Joined: Thu Feb 03, 2011
Posts: 1305
PostPosted: Sun Feb 02, 2014 8:25 pm 
Reply with quote Bottom of Page Back to top
Could you explain more ?

 
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  NeoAxis Forum Index » General » Bugs

Jump to:  

Next topic
Previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron

All times are UTC




Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group