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 06-23-2009, 10:17 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Default Focus

I am having trouble configuring the default focus for tables not quite sure where to call it as I keep locking sage up trying.

I am using ensurefocusforvariable and setfocusforvariable to keep scrolling centered. I am wanting upon menuload to set the focus in the center of the table. I have tried menuneedsdefault focus hooks in the main menu and layoutstarted within the table but nether gets me results as I am guessing I am calling wrong underneath the hooks.

Under these hookes do I need to be using setfocusforvariable or ensurefocusforvariable or both?

TIA,

pluckyhd
Reply With Quote
  #2  
Old 06-23-2009, 10:28 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
After Looking at some examples I see how to call it but it doesn't seem to work

I am using

EnsureVisibilityForVariable("VideoCell",GetElement(GroupedVideos,0),5)
SetFocusForVaraible("VideoCell",GetElement(GroupedVideos,0))

VideoCell = Cell of table
GroupedVideos = is the group for the table

Can I call getelement within it like this? Do I need to be doing this somwhere under the table widget instead of in menuneedsdefault focus?
Reply With Quote
  #3  
Old 06-23-2009, 02:05 PM
Crashless's Avatar
Crashless Crashless is offline
Sage Icon
 
Join Date: Oct 2003
Location: Los Angeles, CA
Posts: 1,224
I worked through a similar problem a while back:

http://forums.sagetv.com/forums/show...ighlight=focus

Also, I have some updated code in my STV I haven't released yet that uses a similar trick. Let me know if you'd like a copy emailed.
__________________
Give the Meekell STV a try!
Reply With Quote
  #4  
Old 06-23-2009, 02:12 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Yeah I have it working on listeners like that no problem but I can't get it to set the focus on menu load to where I want it.
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
Not understanding focus PLUCKYHD SageTV Studio 4 04-07-2009 08:18 PM
Use eHome remote without focus Beaker Hardware Support 0 01-28-2008 07:23 PM
Focus Problems rmbu SageTV Software 2 01-02-2006 03:34 PM
No focus w/usbuirt stingray Hardware Support 7 12-05-2004 10:36 PM
keep sage always in focus phantomfsoc SageTV Beta Test Software 11 05-07-2004 08:25 PM


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


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