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 06-27-2010, 01:28 PM
CrackBerry Abuser
Device(s): 8530
Carrier: Sprint
Pin: 31450f63
 
Join Date: Jun 2010
Posts: 243
Likes Received: 1
Thanked 0 Times in 0 Posts
Default Making a clock move with a layer

I looked through the SVG thread and found a lot of useful stuff and thought I would be complete but my addiction to themes (I have five I am going to post in the near future) is driving me crazy and now want to make a clock move with the layer I have my hidden dock on. I know how to hide the clock using the SVG but how do you add the custom clock in Composer. My theme idea has the clock move like StaticFXs does in his example in the SVG thread. Hope someone can help me out.

Posted from my CrackBerry at wapforums.crackberry.com
Reply With Quote Tip this Post
  #2  
Old 06-27-2010, 05:07 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

if you are using the new theme builder (sp1) then it will no longer work because you cannot hide or "hit" the clock like this.

hide the clock (i think this is the clock?) lol
Code:
<set xlink:href="#banner-display-home" attributeName="display" to="none" begin="0"/>
ad this to your layer
Code:
	<image id="O_clock"
      x="-54"
      y="218"
      width="105"
      height="22"
      xlink:href="x-object:/CurrentDateTime?clocktype=time&amp;width=105&amp;height=22&amp;font-family=Arial_Black&amp;font-style=bold&amp;font-size=18&amp;fill=0299FF&amp;align=center&amp;altFont=BBMillbank&amp;ampmSize=18"/>
remember to adjust sizes & fonts accordingly...
__________________
Reply With Quote Tip this Post
    Thread Author   #3  
Old 06-27-2010, 07:23 PM
CrackBerry Abuser
Device(s): 8530
Carrier: Sprint
Pin: 31450f63
 
Join Date: Jun 2010
Posts: 243
Likes Received: 1
Thanked 0 Times in 0 Posts
Default

Thanks Ill try it out when I get home

Posted from my CrackBerry at wapforums.crackberry.com
Reply With Quote Tip this Post
    Thread Author   #4  
Old 06-27-2010, 10:44 PM
CrackBerry Abuser
Device(s): 8530
Carrier: Sprint
Pin: 31450f63
 
Join Date: Jun 2010
Posts: 243
Likes Received: 1
Thanked 0 Times in 0 Posts
Default

Thanks StaticFX it worked perfectly. I didn't use the first code you posted at all and only used the second one but didn't get a single error or nothing and it functioned perfectly both on the simulator and my phone. Thanks again!

Posted from my CrackBerry at wapforums.crackberry.com
Reply With Quote Tip this Post
  #5  
Old 06-27-2010, 10:56 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

no problem. Just be careful of the "clock" button becoming huge. Had that happen (trying to do a landscape home with it)

i used this:
Code:
<set xlink:href="#hs_time_switchgroup" attributeName="display" to="none"   begin="ShowIcons.focusin"/>
to turn off the clock button when its moved... then turning it back on when it returns to the original location. works great.
__________________
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   Making a clock move with a layer

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes