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 09-06-2006, 11:15 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
ExecuteWidgetChain()

1) I have a reference to a widget which shows an options menu, but if I call ExecuteWidgetChain() on this widget in Studio code the menu does not get displayed (but it seems to be there, I have to escape out to continue). If I select ExecuteWidgetChain() from within Studio the menu shows up fine

2) if I call ExecuteWidgetChain() on code that changes some state and calls Refresh() at the end (and which should change the UI elements shown), nothing happens. In this case, even executing it from within Studio does not make a difference.

Question: is ExecuteWidgetChain() not applicable to any code which is doing UI stuff, or am I missing something ?

Dirk
Reply With Quote
  #2  
Old 09-06-2006, 01:44 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
My understanding is that, like EvaluateExpression, ExecuteWidgetChain executes in a null variable context. It can't see any of the variable states set up by your widget code. So if the widgets you're trying to execute depend on such states, they're going to malfunction. Could this possibly explain what you're seeing?
__________________
-- Greg
Reply With Quote
  #3  
Old 09-06-2006, 03:05 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by GKusnick
My understanding is that, like EvaluateExpression, ExecuteWidgetChain executes in a null variable context. It can't see any of the variable states set up by your widget code. So if the widgets you're trying to execute depend on such states, they're going to malfunction. Could this possibly explain what you're seeing?
Mhh, I don't think that this would be the reason ... The widget chain consists of a simple Options menu widget which does not depend on any variables (the root widget is just an action widget containing a comment string).

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 09:49 AM.


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