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 04-21-2009, 11:38 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Question about Table/group

Is there are way to make a statice pivot point as a list scrolls?

In other words if I have 12 rows and one column but want the selection/focus to stay in the center and the list scroll is this possible?
Reply With Quote
  #2  
Old 04-21-2009, 11:46 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
SetFocusForVariable() sets the focus on a designated element.

EnsureVisibilityForVariable() positions a designated element at a particular row position.

With these you should be able to implement your own handling of the scroll up/down commands.
__________________
-- Greg
Reply With Quote
  #3  
Old 04-21-2009, 11:52 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Okay that makes sense but where do you put those calls under the table or in the table?
Reply With Quote
  #4  
Old 04-21-2009, 12:54 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
I am guessing from reading I would put this in before menu load

But do I call it as

SetFocusVariable("videoitem")
EnsureVisibilityForVariable("videoitem",10)

Would that set the default focus to the video item on row 10?
Reply With Quote
  #5  
Old 04-21-2009, 03:40 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by PLUCKYHD View Post
I am guessing from reading I would put this in before menu load
No, you would put it under listeners that handle the scrolling commands. The listeners should be children of the Table widget to handle commands for that widget. There's a tutorial on listeners in the Studio manual; work through those tutorials if you haven't already.

Quote:
Originally Posted by PLUCKYHD View Post
But do I call it as

SetFocusVariable("videoitem")
EnsureVisibilityForVariable("videoitem",10)
No. If you read the API docs for those methods, you'll see that SetFocusVariable() takes two arguments and EnsureVisibilityForVariable() takes three. The Name argument should be the name of a variable attached to your table items, and the Value should be the (unique) value of that variable for the particular item you want to focus or position. It's up to you to arrange your code so that such a variable exists, with distinct values for each table item.

You should probably look up some existing calls to these methods to see how they're used in practice. Once you understand how that existing code works, you'll be in a better position to write working code yourself.
__________________
-- Greg
Reply With Quote
  #6  
Old 04-21-2009, 04:33 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
okay. Listeners makes mores sense if I could find a sample code of these you are right would make more sense I thought I did all the tutorials I know listeners but didn't know about these I think I understand better now I will get some coding done if I still don't get it I will hit you up with some screen shots

By the way thanks allot for putting up with all my questions
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
Group won't go away Phydeaux SageMC Custom Interface 0 01-05-2009 01:44 PM
can I group all recorded movies into a MOVIES group Deacon Crusher SageMC Custom Interface 5 06-05-2008 12:22 PM
Convert Group rickgillyon SageTV Beta Test Software 5 07-16-2007 07:35 PM
Cannot Delete Group - as per P. 36 zebra14 SageTV Software 6 01-27-2007 06:43 PM
Group Movies Tyler Lloyd SageTV Studio 1 02-13-2006 01:46 AM


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


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