![]() |
|
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. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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?
|
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
GKusnick:
Nevermind. I got it to work. I think I initially misunderstood your explanation. But now I got it. Thank you! |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
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 |