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 01-21-2006, 09:20 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
BeforeMenuUnload

Can anyone enlighten me on how BeforeMenuUnload is supposed to work? The Studio manual says that it fires "during a menu transition, before the current menu has been unloaded." However this seems not to be true if the transition is triggered by an item on an OptionsMenu. In that case, the current menu simply exits without BeforeMenuUnload ever getting called.

Is this by design? Have I uncovered a bug? Is there some other hook I should be using instead?
__________________
-- Greg
Reply With Quote
  #2  
Old 01-21-2006, 09:52 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Yes, that was a problem discovered fairly recently. I think it might have been fixed in v4.1.5, but if not, it will be in the next update.

- 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 01-21-2006, 10:08 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Thanks for the quick answer. I'm not seeing it mentioned in the release notes for 4.1.5, so perhaps I'll wait for 4.1.6.
__________________
-- Greg
Reply With Quote
  #4  
Old 01-22-2006, 07:54 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
OK, now here's a question about the other end: BeforeMenuLoad.

I created a dummy menu with three child widgets: an attribute, a BeforeMenuLoad hook, and a panel. I put calls to DebugLog in three places: in the attribute's value, in an Action widget under the hook, and in the Fixed Width property of the panel. On loading the menu I get the following output in the console window:

Sun 1/22 17:49:25.777 Attribute value
Sun 1/22 17:49:25.800 Panel property
Sun 1/22 17:49:25.804 BeforeMenuLoad hook
Sun 1/22 17:49:25.808 Panel property
Sun 1/22 17:49:25.830 Panel property

So it seems that BeforeMenuLoad is not the first thing to happen when a menu is loaded. Attributes and other widget properties are initialized first.

Is this how it's supposed to work?
__________________
-- Greg
Reply With Quote
  #5  
Old 01-22-2006, 09:33 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by GKusnick
Is this how it's supposed to work?
Pretty much -- some things have to get initialized before anything else can be done.

- 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
  #6  
Old 01-27-2006, 01:02 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Update: I finally had a chance to test this in v4.1.5, so I can now say this is fixed. If you transition to a new menu from an OptionsMenu dialog, the menu's BeforeMenuUnload will get called before the menu unloads.

- 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
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 06:11 PM.


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