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-06-2010, 12:03 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Scrollable Text Input?

How do I create a text input area that scrolls instead of disappearing off the right side of the text input box? I've tried various combinations of scrolling and wrapping in the properties for the panel that holds the text input area all to avail.

What am I doing wrong?
__________________

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
  #2  
Old 11-06-2010, 03:11 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by tmiranda View Post
How do I create a text input area that scrolls instead of disappearing off the right side of the text input box? I've tried various combinations of scrolling and wrapping in the properties for the panel that holds the text input area all to avail.

What am I doing wrong?
The only way I've ever done it is to create two fields. Then delete a character from the left and put it in the second field as characters are added to the right end of the visible field. Then do the opposite when characters are deleted from the right.
Reply With Quote
  #3  
Old 11-06-2010, 03:18 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by BobPhoenix View Post
The only way I've ever done it is to create two fields. Then delete a character from the left and put it in the second field as characters are added to the right end of the visible field. Then do the opposite when characters are deleted from the right.
There are 2 ways to do this. I do it in smm list view if you want to look at that.

Basically I grow a panel and clip it with a repeating scrolling animation.

Or you can make a panel and send scroll commands to it.

Cutting text off one at a time doesn't scroll very well in my experience.

If you need more details let me know.
Reply With Quote
  #4  
Old 11-06-2010, 03:45 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I'll need to experiment to see what works out better, thanks to both of you.

Good to know it wasn't me just missing something obvious. It shouldn't be so difficult to get text input!
__________________

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-06-2010, 03:48 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by tmiranda View Post
I'll need to experiment to see what works out better, thanks to both of you.

Good to know it wasn't me just missing something obvious. It shouldn't be so difficult to get text input!
It's not difficult once you know how .

Just make sure your panel is scrolling horizontal or vertical and send the sagecommands to scroll that ui element. the hardest part is figuring out the math for it.
Reply With Quote
  #6  
Old 11-06-2010, 04:26 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
Basically I grow a panel and clip it with a repeating scrolling animation.

If you need more details let me know.
Can you show me a screen shot of the panel properties for this? I can't get it to work very well.
__________________

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
  #7  
Old 11-06-2010, 04:45 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Sure be tomorrow before I can get to it.
Reply With Quote
  #8  
Old 11-06-2010, 05:03 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I appreciate it. I don't have your plugin installed or I'd go look at it myself.
__________________

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
  #9  
Old 11-06-2010, 05:26 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
This is something that I've asked for before when version 7 was in private beta and it is possible like Plucky said above.......but be warned, its not all that impressive (my opinion).

Anyway here's how Narflex suggested doing it....

Quote:
Originally Posted by Narflex View Post


There's another alternative which would only require a minor update to the core to make it work properly (update done). I tested this out yesterday (and again now). What you do is make a horizontal scrolling panel which contains that text. Then you Fork() a thread elsewhere which sends Right/Left events to that component specifically to cause it to scroll. You'll then need to do things to make sure they can't navigate to that component (since scrollable components are focusable by default). This can then give you constant, smooth-scrolling text.

You can also use a variable to control the scrolling duration; and then set that to zero and send a bunch of Left events at once to scroll it back to the original position. You'll also need to ensure your Fork'd thread terminates itself somehow.

The main problem is that scrolling animations use a Quadratic timescale; which won't be smooth. But for the next build; the change we added was if you put an Attribute under a scrolling Panel or Table called "LinearScrolling" and set it to true; then it'll use a linear timescale so it all looks smooth. I got pretty good results with the tests I did. The attached screenshot showed the STV code I used for it. There were no attributes on that Text widget; and the Panel just add a normal size and Horizontal scrolling and a set scroll duration.

Enjoy!
I've made both a panel and table version and although they work they do tend to stutter.....there is also an extender limitation which might not end up looking that good since extenders use an integer coordinate system and a PC render uses floating point (not something that can be changed; the extender hardware only renders in integer coordinates).

This example is as good as I could get it but if you work something out which is better let me know..... just out of curiosity

Cheers

Ben
Attached Images
File Type: jpg TextScroll.jpg (144.1 KB, 135 views)
__________________
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
  #10  
Old 11-07-2010, 04:37 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Thanks Ben,

I looked at the example and if I understand it properly it will scroll that large text string from left to right and then stop. Since what I want to do is use a text input panel does that mean I need to monitor every keystroke to determine if I need to scroll the panel right (when the user enters a character or presses the right key) or left (when the user erases a character or presses the left key)?

Do you need to set any special properties in the actual "Untitled" panel?

Tom
__________________

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
  #11  
Old 11-07-2010, 06:46 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Yes, if your using a panel you'd need to monitor the key strokes so you can push it back to the beginning and start over. As for the panel properties you'd need to set the scroll duration (about 350) and the drop down Animation to horizontal.....thats if I remember correctly.

I prefered using a table as you don't need to monitor anything..... it would naturally scroll around with table wrapping.

I believe Plucky uses a slightly different method so it maybe worth waiting to see what that is.

Cheers

Ben
__________________
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
  #12  
Old 11-07-2010, 07:58 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by jaminben View Post
I prefered using a table as you don't need to monitor anything..... it would naturally scroll around with table wrapping.
I never considered using a table for input. How do I go about doing that? Should the TextInput widget be a child of the Table widget or the TableComponent widget? Do I set the table to have 1 row and 1 column?
__________________

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-07-2010, 08:42 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Hmmm, I misread your post But in saying that it should still work with a table...... I've very quickly knocked this example up just to make sure we're talking about the samething?

If thats what your after let me know and I'll send over how I did it (in its very basic form).

Cheers

Ben
__________________
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
  #14  
Old 11-07-2010, 03:44 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Yes, that's it!
__________________

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
  #15  
Old 11-08-2010, 08:01 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Sent you an email with some screenshots and instructions of how I made it.......its not perfect and maybe not the best method but it works

Cheers

Ben
__________________
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-09-2010, 07:12 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Ben,

I received the email but have not looked at it yet. I appreciate the help.

Tom
__________________

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
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
Why is my text getting cut off? evilpenguin SageTV Studio 4 09-23-2010 08:37 PM
right-to-left text sivilya SageTV Beta Test Software 5 05-31-2010 03:11 PM
How to delete text? SageGk SageMC Custom Interface 2 05-23-2009 06:31 PM
Text input widget, copy from clipboard nathanm SageTV Studio 2 10-27-2006 05:47 AM
Can't see menu text rahul.b.patel SageTV Software 2 11-09-2004 01:38 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.