![]() |
|
|||||||
| 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
|
|||
|
|||
|
Simple example needed
I have been a programmer for many years and have worked with all sorts of various API's, scripting languages and tools, but I tried my hand at studio last night and for some reason it's just not clicking for me - not saying the docs aren't good, they're just not working for me.
What I could use that I think would get me well on my way is a small stv that has a button to push and when you push it it prints something or pops something up. I'm just not getting the event flow and the sample stv and manual don't seem to have very clear cut language on how to create a button and handle a click, unless I'm just missing it. Advance request - please don't tell me to RTM I spent last night RTM. TIA Rob |
|
#2
|
|||
|
|||
|
Did you try the Tutorial STV? I found that pretty good to get started, and then try using the Default or SageMC STV for more advanced stuff..
Thanks, Jeff |
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
Quote:
Again, not to be belligerent but just for clarity, I have read the manual and gone through the tutorial. Last edited by APillowOfClouds; 08-04-2009 at 11:23 AM. |
|
#5
|
|||
|
|||
|
Usually a button is an "item" widget, and the children will either display the text/image within the size of the Item, and for the action, you can just put an "action" widget under a "item" widget that will be executed when it is selected, or you can use a "listener" widget using the various options, such as "select" and have the action widgets under the listener that will be executed unpon selection...
for example: -Item Widget >>> - Text Widtet ( Display the text on button ) >>> - Listener("Select") widget >>>>>> - Action widget ( code that will be executed ) How that makes sense... Last edited by jphipps; 08-04-2009 at 11:31 AM. |
|
#6
|
|||
|
|||
|
Another way to create a button using properties is shown in my attached example. There's quite a few different ways to create buttons but it really depends on what you want the button to do and if you want to permantly affect a screen item or not.
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 |
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
Thank you Ben, I will try your sample file when I get home tonight.
|
|
#9
|
||||
|
||||
|
Quote:
Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) Last edited by MeInMaui; 08-04-2009 at 12:07 PM. |
|
#10
|
||||
|
||||
|
Rob,
I feel your pain. I'm just learning Studio and it is a bit "odd". What's worked for me is to find something in the default STV that does what you are trying to do, and then study the code to see how it's done. If not done already, I'd highly suggest installing Greg's "Tools for Studio users". I have stress-tested the search function and it works quite well ![]() I am also very grateful that there are so many helpful people on these forums. I hope someday I can answer questions instead of asking them. 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. |
|
#11
|
|||
|
|||
|
Quote:
Needless to say at the moment I'm planning to build the Hoover Dam but I'm just learning which end of the trowel to use :-D |
|
#12
|
|||
|
|||
|
I don't think the studio code will help you much to move them, that code is part of the import process in the internals of Sage. I don't believe you can updated any of that data in the database. The FAQ for the migration has listed a parameter that you set in the properties file that will reconnect the media objects if you move them to a different drive and correct the path without loosing any media information...
Thanks, Jeff |
|
#13
|
|||
|
|||
|
Quote:
At the very least I'll learn how to write add ons Tx Rob |
|
#14
|
|||
|
|||
|
If you know java, you may be better off using java to write what you are looking for. I usually put the complex logic in java and call it from the STV. There is a pretty good post in the studio forum that has the basics of using java to call the sage api.
Thanks, Jeff |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why can'th this be simple ... NEED HELP !!! | robhix | SageTV Software | 3 | 12-20-2008 06:11 PM |
| Simple Question | vanchie21 | SageTV Software | 2 | 11-14-2008 10:04 PM |
| Needed: A Good, Simple, MPEG Editor | fidget | General Discussion | 6 | 06-20-2006 11:46 AM |
| Simple Sage? | galtigor | SageTV Customizations | 4 | 09-08-2004 10:59 AM |