Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > Theme Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 03-28-2011, 07:29 PM
CrackBerry Abuser
Device(s): Unlocked 9700 (Bold) / 32GB Playbook
Carrier: Rogers
Pin: hrm...
 
Location: Toronto, Canada
Join Date: Nov 2010
Posts: 264
Likes Received: 2
Thanked 16 Times in 15 Posts
Default Change Button focus (not the image)

Is it possible when using button1.activate then place a focus on another button.

For example I click button1 and then the focus jumps to button2?
__________________
32GB Playbook
Unlocked Bold 9700 - Berrylicious VI Hybrid
Reply With Quote Tip this Post
  #2  
Old 03-28-2011, 09:49 PM
CrackBerry Master
Device(s): 9800 (Torch)
Carrier: Telus
Pin: cushion
 
Join Date: Oct 2009
Posts: 1,294
Likes Received: 442
Thanked 286 Times in 153 Posts
Default

If you want to activate button 2 it would get tricky.

If you want it purely for aesthetics, you could either use focusin/out like below.

Code:
<set xlink:href="#button_2_focus" attributeName="display" to="inline" 
begin="button_1.focusin" end="button_1.focusout" />
or you could focus on button2 when you activate button 1 like your post reads

Code:
<set xlink:href="#button_2_focus" attributeName="display" to="inline" 
begin="button_1.activate"
not sure what good the latter would do you.
Reply With Quote Tip this Post
    Thread Author   #3  
Old 03-28-2011, 11:15 PM
CrackBerry Abuser
Device(s): Unlocked 9700 (Bold) / 32GB Playbook
Carrier: Rogers
Pin: hrm...
 
Location: Toronto, Canada
Join Date: Nov 2010
Posts: 264
Likes Received: 2
Thanked 16 Times in 15 Posts
Default

Thanks for the reply, I see how that might work. However when tested it didn't seem to work. The button was a custom button initially created in theme builder and i named it: down_button

When trying to use down_button_focus there was no reference found. Am I calling the focus layer within the svg? or is this a direct call to focus on down_button?

I am trying to accomplish this:

When a user activates the down_button which hides a layer then the up_button gets focused on. Currently the focus dissapears until it is moved back on screen. I am moving down_button then when the motion stops down_button is hidden and the focus is lost off screen until the user moves it back on screen. I am trying to move the focus from down_button to up_buttom as up_button becomes visible when down_button is hidden....
__________________
32GB Playbook
Unlocked Bold 9700 - Berrylicious VI Hybrid

Last edited by Justam; 03-28-2011 at 11:20 PM.
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   Change Button focus (not the image)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes