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 07-22-2010, 12:45 PM
CrackBerry Abuser
Device(s): 9550 (Storm2)
Carrier: Verizon
Pin: PM me
 
Location: Michigan
Join Date: Feb 2009
Posts: 202
Likes Received: 8
Thanked 15 Times in 14 Posts
Arrow How can i hide a whole layer via one button?

Ok, i know there is a way to do this but i cant figure it out, and i've searched around quite a bit.

Is there a way to hide a whole layer via one button?

Thanks all
Reply With Quote Tip this Post
  #2  
Old 07-22-2010, 01:04 PM
CrackBerry Genius
Device(s): iPhone 4s
Carrier: Verizon
 
Join Date: Nov 2009
Posts: 2,310
Likes Received: 88
Thanked 169 Times in 112 Posts
Default

code the button focusin to hide the layer.

be sure to name your layers so its easier...

example:

name a layer: Dock

in the code....
reference "Dock" instead of one object.

Code:
<set xlink:href="#Dock" attributeName="display" to="none" begin="HideDock.focusin"/>
you can hide show anything... images, buttons, etc.. just reference the correct ID
__________________
Reply With Quote Tip this Post
  #3  
Old 07-22-2010, 01:21 PM
CrackBerry Genius
Device(s): iPhone 4s
Carrier: Verizon
 
Join Date: Nov 2009
Posts: 2,310
Likes Received: 88
Thanked 169 Times in 112 Posts
Default

[edit]oops... not sure how i dbl posted....[/edit]
code the button focusin to hide the layer.

be sure to name your layers so its easier...

example:

name a layer: Dock

in the code....
reference "Dock" instead of one object.

Code:
<set xlink:href="#Dock" attributeName="display" to="none" begin="HideDock.focusin"/>
you can hide show anything... images, buttons, etc.. just reference the correct ID
__________________
Reply With Quote Tip this Post
    Thread Author   #4  
Old 07-22-2010, 02:32 PM
CrackBerry Abuser
Device(s): 9550 (Storm2)
Carrier: Verizon
Pin: PM me
 
Location: Michigan
Join Date: Feb 2009
Posts: 202
Likes Received: 8
Thanked 15 Times in 14 Posts
Default

Oh! So it's the same code as for animations and everything. So basically I can reference any object at any place in the code - there's nothing special for any object?

Quote:
Originally Posted by StaticFX View Post
[edit]oops... not sure how i dbl posted....[/edit]
code the button focusin to hide the layer.

be sure to name your layers so its easier...

example:

name a layer: Dock

in the code....
reference "Dock" instead of one object.

Code:
<set xlink:href="#Dock" attributeName="display" to="none" begin="HideDock.focusin"/>
you can hide show anything... images, buttons, etc.. just reference the correct ID
Posted from my CrackBerry at wapforums.crackberry.com
Reply With Quote Tip this Post
  #5  
Old 07-22-2010, 02:51 PM
CrackBerry Genius
Device(s): iPhone 4s
Carrier: Verizon
 
Join Date: Nov 2009
Posts: 2,310
Likes Received: 88
Thanked 169 Times in 112 Posts
Default

nope. as long as the object has an ID you can make it move/hide/etc. Check out the undocumented SVG thread. You can even hit stuff like the clock, unread icons, signal meters, etc.

Look here:http://forums.crackberry.com/f177/be...remium-483235/

I made all the items move with the docks.
__________________
Reply With Quote Tip this Post
  #6  
Old 07-27-2010, 05:44 PM
CrackBerry Abuser
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Aug 2008
Posts: 121
Likes Received: 0
Thanked 6 Times in 1 Post
Default

Static FX, is it possible to use these methods to not only move an item, but say to focus on a button (not activate it)?

for example, no matter what icon I am on, pressing a set access key would automatically make me focus on a certain preset button.
Reply With Quote Tip this Post
  #7  
Old 07-28-2010, 02:25 AM
CrackBerry User
Device(s): 8520 (Curve)
Carrier: Orange
 
Join Date: Jan 2010
Posts: 17
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by JTekt View Post
Static FX, is it possible to use these methods to not only move an item, but say to focus on a button (not activate it)?

for example, no matter what icon I am on, pressing a set access key would automatically make me focus on a certain preset button.
same question~~~
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   How can i hide a whole layer via one button?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes