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 02-17-2006, 11:34 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
How to get type of listener widget ?

The API docs show the method

SetWidgetProperty() to get the property, but I assume this is a typo (since it doesnt work - it complains that this method needs 3 parameters). I tried

Code:
type = GetWidgetProperty(widget, "Type")
and
Code:
type = GetWidgetProperty(widget, "Listener Type")
but I always get the following exception:

Code:
Error in method reflection of GetWidgetProperty of java.lang.ArrayIndexOutOfBoundsException: -1

Any help greatly appreciated.

Dirk
Reply With Quote
  #2  
Old 02-18-2006, 12:25 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Purely a guess, since I've never done this: the xml file shows "ListenerEvent" as part of a listener widget. Perhaps try that as the property name?

- 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
  #3  
Old 02-18-2006, 03:42 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
From the multi-function stop import hook:

ListenerName=GetWidgetProperty(Listener,"ListenerEvent")

So Opus wins the prize!
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #4  
Old 02-18-2006, 10:48 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by nielm
From the multi-function stop import hook:

ListenerName=GetWidgetProperty(Listener,"ListenerEvent")

So Opus wins the prize!
Doh, I searched for "GetWidgetProperty" in my current STV loaded in Studio, but I don't have the multi-function stop imported on my dev client ...

Of course, as Opus said, I also could have just looked at the XML directly ...


Thanks !

Dirk
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


All times are GMT -6. The time now is 02:59 PM.


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