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
  #21  
Old 01-11-2011, 02:59 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
Quote:
What's wrong with using the panel Animate property?
Yeah, I as about to say anything that needs more than a basic RefreshArea() call (which is what the Animate property seems to do) would be a little easier (maybe) in a fork/wait loop.

However, I think the LayoutStarted hook might be a way to 'do stuff' each time on the panel with the animate property, since it is really a "layoutabouttostart" and gives you a change to load stuff / tinker with variables etc before refresh kicks off.

btl.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #22  
Old 01-11-2011, 03:07 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
I'd be carefull with a LayoutStarted hook.... I found more often than not that it would run away with itself especially if your relying on default Sage stuff to refresh various items within your screen.

Quote:
Originally Posted by bialio View Post
Yeah, I as about to say anything that needs more than a basic RefreshArea() call (which is what the Animate property seems to do) would be a little easier (maybe) in a fork/wait loop.

However, I think the LayoutStarted hook might be a way to 'do stuff' each time on the panel with the animate property, since it is really a "layoutabouttostart" and gives you a change to load stuff / tinker with variables etc before refresh kicks off.

btl.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #23  
Old 01-11-2011, 03:46 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by jaminben View Post
I'd be carefull with a LayoutStarted hook.... I found more often than not that it would run away with itself especially if your relying on default Sage stuff to refresh various items within your screen.
Yeah the layout started is really iffy and very inefficient once again

I would use the animate like you are unless andy says it is going away. I doubt it will they probably put that because the newer way is more efficient especially on extenders and such.
Reply With Quote
  #24  
Old 01-12-2011, 06:44 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by bialio View Post
Opus - is the Animation attribute scheduled for decomission anytime soon? The Studio manual hints that this might be so, but I do see it being used a bit in the default STV....
The animation property isn't going away; the Studio manual notes that the layer animation system may be removed in the future. The animation property was also used to define layers for the pre-v7 layered animation system. The effect widgets should be used for animations instead of the older layer-based animations.

In terms of using the animation property, a forked thread, or an effect widget to do a loop... I suppose the answer would be "yes".

I use various methods in the default STV, depending on what the loop does - how complex it is & so on. A very simple loop can be done via the animation property. If I want to control a lot more stuff outside that UI chain, then I will consider a forked thread.

Don't forget to see the "Animation property vs. Refresh() API call" tip starting on p. 158 of the v7 Studio manual.

And, there are ways to make sure the thread dies when it should & no additional threads are created while a single one is active. In addition to recognizing that a menu has been exited (or focus lost, etc), I will also use a variable to say that the thread is already active so that a second one can't be started.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
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
Panel Properties broconne SageTV Studio 2 10-28-2010 08:24 AM
color control panel mkloharry SageTV Software 1 05-10-2008 09:12 AM
Right-to-left panel layout GKusnick SageTV Studio 0 02-12-2007 02:30 AM
Panel bug ? dflachbart SageTV Studio 2 02-11-2007 04:53 AM


All times are GMT -6. The time now is 06:06 PM.


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