Author Topic: UIKeyNavigation OnClick  (Read 3731 times)

Alessaint

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 67
    • View Profile
UIKeyNavigation OnClick
« on: May 26, 2014, 04:30:54 AM »
Hi,

I'm trying to use onclick but I guess I'm doing something wrong. I have a panel with buttons. There are two Button Activate components on one of the buttons - one hides its current parent panel  and the other is used to show another panel so after the button is clicked a new panel is opened and the current one closes. However I can't get OnClick to work - the problem seems to be that OnClick is evaluated before the second Button Activate (which activates the second panel along with onclick target button) so the target button is not active at that moment and therefore isn't selected...

 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIKeyNavigation OnClick
« Reply #1 on: May 26, 2014, 11:01:29 PM »
So why not just right click the UIButtonActivate and move it to be above the UIKeyNavigation component so that it's executed first?

Alessaint

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 67
    • View Profile
Re: UIKeyNavigation OnClick
« Reply #2 on: May 27, 2014, 01:20:17 AM »
Ok, will do that. I just wanted to make sure that the way I'm handling is right. Thanks.