SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-19-2009, 12:05 PM
cracklepopflash cracklepopflash is offline
Sage User
 
Join Date: Aug 2009
Location: Sunnyvale
Posts: 26
Help in Animation when particular items in focus

I have a panel that i wanted updated with new information based on which button is in focus. So I have a UpdateNow attribute widget. And when the buttons are in focus (I check with the conditonal widget If Focused), then I change the UpdateNow to true. However the panel's contents does not change. I set the Animation property to be: =UpdateNow. It does however update when I click on the button (when I set the button's action to set UpdateNow to true). How do I get my update to happen when particular buttons are in focus?
Reply With Quote
  #2  
Old 08-19-2009, 12:21 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
The usual way to do this sort of thing is with GetFocusContext(). Give each button an attribute called (say) MyInfo containing the information you want displayed in the panel for that button (or some key that lets you calculate or retrieve that info). In the panel's UI chain, call GetFocusContext() and then refer to the MyInfo variable to get the information. Which instance of MyInfo you actually get will depend on which button has focus. The panel will be refreshed automatically when the focus changes.

If you don't want to do it that way, then I'd suggest using FocusGained hooks on your buttons to call RefreshArea on the panel, rather than trying to do it with "If Focused" and dynamic animations.
__________________
-- Greg
Reply With Quote
  #3  
Old 08-19-2009, 02:33 PM
cracklepopflash cracklepopflash is offline
Sage User
 
Join Date: Aug 2009
Location: Sunnyvale
Posts: 26
GKusnick:
I am attempting to do the GetFocusContext() method you described in your first paragraph. So are you saying each item/button widget has the attribute widget MyInfo as its child? Well that's what I did. So in the panel I want updated, I did:

Action Widget(GetFocusContext())
|
--->Action Widget(MyInfo)
|
---->Text Widget

And it doesn't seem to work...I think I am doing something wrong
Reply With Quote
  #4  
Old 08-19-2009, 02:56 PM
cracklepopflash cracklepopflash is offline
Sage User
 
Join Date: Aug 2009
Location: Sunnyvale
Posts: 26
GKusnick:

Nevermind. I got it to work. I think I initially misunderstood your explanation. But now I got it. Thank you!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is animation just meant to slow down? PLUCKYHD SageTV Studio 3 05-23-2009 08:03 AM
Animation options? kricker SageMC Custom Interface 0 04-04-2008 10:02 AM
Tables, Items, Focus (and Themes?) stanger89 SageTV Studio 14 12-20-2007 11:59 AM
Animation wishlist GKusnick SageTV Studio 4 10-05-2007 05:34 AM
Animation Q sticky SageTV Studio 4 02-18-2006 05:56 PM


All times are GMT -6. The time now is 02:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.