|
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
|
||||
|
||||
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 |
#2
|
|||
|
|||
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 |
#3
|
||||
|
||||
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. |
#4
|
|||
|
|||
Quote:
|
#5
|
||||
|
||||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |