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 11-28-2010, 08:52 AM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
How to scroll text?

If you have a text panel and the text is too big for that text panel - what are the steps required to make the text scroll when that component is focused?

I was looking for a "scroll text" checkmark in the text properties - but didn't see it :-)
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #2  
Old 11-28-2010, 10:39 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I just had this same issue. The solution was to write a completely new text entry dialog from scratch (with help from jaminben) which handles every keystroke and takes the necessary actions. It was a PITA.

PM me your email address and I'll send you the code I developed. I don't recommend starting from scratch.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #3  
Old 11-28-2010, 11:03 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Or you could just copy smm method which is much easier
Reply With Quote
  #4  
Old 11-28-2010, 11:09 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by PLUCKYHD View Post
Or you could just copy smm method which is much easier
And where would somebody interested in plagiarizing your work look to find that?
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #5  
Old 11-28-2010, 11:22 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
If you're talking about text display (not text input), then you need to set the panel's Scrolling property to Vertical and provide a set of scrollbar controls that fire the Page Up and Page Down events when clicked. There are plenty of examples of this in the stock STV (e.g. the Airing Details or System Information screens).
__________________
-- Greg
Reply With Quote
  #6  
Old 11-28-2010, 11:27 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by tmiranda View Post
And where would somebody interested in plagiarizing your work look to find that?
Smm list view I found a better way of doing it but haven't updated fully the only difference is I clip it now to stay in the box.
Reply With Quote
  #7  
Old 11-28-2010, 11:34 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by PLUCKYHD View Post
Smm list view I found a better way of doing it but haven't updated fully the only difference is I clip it now to stay in the box.
Does it also handle editing the text using arrows, Insert, Delete, Backspace, Home and End keys? That was important functionality and I didn't find any existing STV code that did that. I *think* SageMC had that capability but it was implemented in java and would require a dependency on one of the SageMC JAR files.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #8  
Old 11-28-2010, 01:27 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Confused why would you want to edit scrolling text?
Reply With Quote
  #9  
Old 11-28-2010, 01:27 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by tmiranda View Post
I just had this same issue. The solution was to write a completely new text entry dialog from scratch (with help from jaminben) which handles every keystroke and takes the necessary actions. It was a PITA.

PM me your email address and I'll send you the code I developed. I don't recommend starting from scratch.
Cool - I am only looking to display - not for editing.. So I am not sure that code share will help me..

However, I certainly don't want to start from scratch.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #10  
Old 11-28-2010, 01:28 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by GKusnick View Post
If you're talking about text display (not text input), then you need to set the panel's Scrolling property to Vertical and provide a set of scrollbar controls that fire the Page Up and Page Down events when clicked. There are plenty of examples of this in the stock STV (e.g. the Airing Details or System Information screens).

Vertical?? That seems really counter intuitive to me..

I didn't remember anything auto-scrolling in the stock STV.. I will go take a look.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #11  
Old 11-28-2010, 01:29 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by PLUCKYHD View Post
Or you could just copy smm method which is much easier

Email sent!
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #12  
Old 11-28-2010, 01:32 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by PLUCKYHD View Post
Confused why would you want to edit scrolling text?
In the stock STV, and anywhere else I looked, if you are using text input and the length of the text exceeds the size of the text input area the text gets "cut off" on the right side and it just displays as "...".
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #13  
Old 11-28-2010, 01:40 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by broconne View Post
Vertical?? That seems really counter intuitive to me...
Sorry, I assumed you were trying to make a vertically-scrollable panel of wrapped text (like the examples I cited).

But if your goal is a single line of horizontally-scrollable text, the same considerations should apply. Just choose Horizontal instead of Vertical scrolling on the panel, and disable word-wrapping on the Text widget.

Or are you talking about a ticker-style text display that scrolls continuously without user intervention? That would be a different kettle of fish.

So maybe you could clarify exactly what you're trying to do so we can target our advice appropriately.
__________________
-- Greg
Reply With Quote
  #14  
Old 11-28-2010, 03:10 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by GKusnick View Post
Sorry, I assumed you were trying to make a vertically-scrollable panel of wrapped text (like the examples I cited).

But if your goal is a single line of horizontally-scrollable text, the same considerations should apply. Just choose Horizontal instead of Vertical scrolling on the panel, and disable word-wrapping on the Text widget.

Or are you talking about a ticker-style text display that scrolls continuously without user intervention? That would be a different kettle of fish.

So maybe you could clarify exactly what you're trying to do so we can target our advice appropriately.
Nope - sorry it wasn't clear.


I am trying to do exactly what plucky does in SMM list view. I have text that is too big to fit into a single text area. I don't like how it looks when the text is "shrunk" to fit. When the user move the focus to the text, I want the text to automatically scroll so the user can see the full title text.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #15  
Old 11-28-2010, 03:30 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by broconne View Post
Nope - sorry it wasn't clear.


I am trying to do exactly what plucky does in SMM list view. I have text that is too big to fit into a single text area. I don't like how it looks when the text is "shrunk" to fit. When the user move the focus to the text, I want the text to automatically scroll so the user can see the full title text.
You mean something like what was discussed in this thread? Not the text entry bit but the other normal scrolling text further down in the thread. If so I think your probably better off getting Pluckys version to work as the table method isn't all that friendly with text spacings.
__________________
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
  #16  
Old 11-28-2010, 06:34 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by jaminben View Post
You mean something like what was discussed in this thread? Not the text entry bit but the other normal scrolling text further down in the thread. If so I think your probably better off getting Pluckys version to work as the table method isn't all that friendly with text spacings.
Yeah - pretty much exactly as you had it working in Ortus in that video..

sigh - that thing looked pretty :-)
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
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
can't scroll in some menus dlevey SageTV Media Extender 4 04-26-2010 11:57 AM
Mouse scroll button WeidnerJ SageTV Software 2 09-27-2009 02:38 PM
Why do Sage scroll bars work differently than all the other scroll bars in the world? Chriscic SageTV Software 10 07-26-2009 10:23 AM
New Time Scroll functionality? Opus4 SageTV Software 3 05-15-2004 03:10 AM
How can I scroll the info screen??? potpiejimmy SageTV Beta Test Software 0 01-26-2004 11:34 AM


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


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