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 09-01-2009, 03:27 AM
Ikarius's Avatar
Ikarius Ikarius is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 84
Table question

I'm currently trying to do a vertically arranged scrollable table with horizontal dividers between each focusable element.

These horizontal dividers will be images, but I've been looking carefully at this, and haven't found a working way to do this.

The dividers really need to scroll with the table items in order for things to look correct, and I need to insure that dividers are only displayed between visible elements.

Is this even feasible with the core-provided Table widget?

Looking at the sage predefined local variables, it doesn't appear that any of the variables allow me to find out if a given element is currently visible, or it's current display position; only if it's focused or not. I also looked at NumPages, VScrollIndex, and TableRow, but they don't provide enough detail to compute if an element is currently visible, or not.

So- is what I'm looking to do feasible with the built-in table control, or am I going to have to cobble my own deal together, and animate the elements individually?

If it's doable- either a pointer in the right direction, or just a pointer at some STV doing this would be much appreciated.

Otherwise, I'll buckle down and do this the obnoxious way.

Cheers
Ikarius
__________________

SageTV 6.6.2, SageMC+CenterSage Theme
Server: Intel Core2 Q6600, 8gb memory, 3x 1tb WD EACS drives, software RAID5 2tb capacity, 4gb Flash boot drive, Ubuntu 8.0.4 Server edition
Capture: 1x HD-PVR -> Motorola DTC6200
Clients: 1x STX-HD100 1x STX-HD200, Windows & OSX Clients
Reply With Quote
  #2  
Old 09-01-2009, 05:57 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
It is doable if I understand your question the right way. Sage Tables are much more versatile than people give them credit for. I am just trying to understand better what you are doing are you wanting the same picture below each element or is this say a fanart banner that changes with each element? What exactly are you having trouble with? You could easy do a vertical alignment on the table cells and have text on the top and picture on the bottom and it will scroll with the table.

The TableRow,Numrows etc can be very useful for figuring out your current focused location in a table and figuring out other elements with addition and subtraction but it gets tricky quick. The best way I have found it to use an array in a table and use "FindElementIndex".

cheers,

pluckyhd
Reply With Quote
  #3  
Old 09-01-2009, 08:16 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
It sounds like you just want to display the divider at the bottom of each item displayed in the table, except for the one currently displayed at the bottom.

You can use VScrollIndex to find the first visible item displayed & determine the last one using that value to adjust TableRow, then see if the current item's row is the last one by comparing to NumRowsPerPage. If there is more than 1 column, there is just more math to do.

- 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
  #4  
Old 09-01-2009, 09:09 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Opus4 View Post
It sounds like you just want to display the divider at the bottom of each item displayed in the table, except for the one currently displayed at the bottom.

You can use VScrollIndex to find the first visible item displayed & determine the last one using that value to adjust TableRow, then see if the current item's row is the last one by comparing to NumRowsPerPage. If there is more than 1 column, there is just more math to do.

- Andy
Yes take a look at some of the math on the tables in SMW to get an idea if you want. Like Andy said you can pretty much can any location in any table if you get the math right. Andy suggested to me a long time ago to make just a blank black table and put TableRow,VScroll,HScroll etc etc in the cells to get an idea on how to do the math. That has come in handy multiple times. The only tricky part if you will is if you wrap you get into negatives sometimes and have to adjust the formula for the wrapping section of the table.
Reply With Quote
  #5  
Old 09-01-2009, 10:36 AM
Ikarius's Avatar
Ikarius Ikarius is offline
Sage Advanced User
 
Join Date: Aug 2008
Posts: 84
Sonofagun.....


Opus- thanks. I had even played with VScrollIndex and concluded it was doing something I couldn't use.

Problem solved.

Cheers
Ikarius
__________________

SageTV 6.6.2, SageMC+CenterSage Theme
Server: Intel Core2 Q6600, 8gb memory, 3x 1tb WD EACS drives, software RAID5 2tb capacity, 4gb Flash boot drive, Ubuntu 8.0.4 Server edition
Capture: 1x HD-PVR -> Motorola DTC6200
Clients: 1x STX-HD100 1x STX-HD200, Windows & OSX Clients
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
Question about Table/group PLUCKYHD SageTV Studio 5 04-21-2009 04:33 PM
Getting the next entry in a table jphipps SageTV Studio 5 02-12-2008 06:18 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.