wgroup: page restore problem

5 views
Skip to first unread message

Andrew Dabrowski

unread,
Jul 25, 2008, 12:32:27 PM7/25/08
to key...@googlegroups.com
I've discovered an odd problem when I try to restore pages that contain a Group tool.  

I added a menu that provides buttons to display a single track (in addition to the merged track).  So for example if the window is showing merged and track 1, the you click the button that says 2, it hides track 1 and reveals track 2.  This seems to be working OK, you can even tear off the menu and everything seems to work fine and restore properly.

The problem comes when that menu is torn off and labels are assigned to the tracks.  Then the restore fails, and in fact the main Group window doesn't show up.

Any idea what the issue may be here?  Suggestions on where to look?

-- 
Andrew Dabrowski   || ...my suspicion is that the universe is
Indiana University || not only queerer than we suppose, but
Swain East 117     || queerer than we can suppose. -JBS Haldane

Andrew Dabrowski

unread,
Jul 27, 2008, 3:44:53 PM7/27/08
to t...@nosuch.com, key...@googlegroups.com
The error message is in the attached screenshot. Line 104 is below,
it's inside the function I defined (parallel to mkmenu_trknamed) to
display the new menu. It looks like keykit is trying to restore the
menu before tn2label has been restored inside the Group tool.

function mkmenu_trknamed(o,po) {
list = po.tracklabels()
nt = sizeof(list)
for ( n=0; n<nt; n++ )
o.menucmd(list[n],po,"dispmore",n,1)
}
function mkmenu_trkonly(o,po) {
# line 104:
list = po.tracklabels()
nt = sizeof(list)
for ( n=0; n<nt; n++ )
o.menucmd(list[n],po,"disponly",n,1)
}

Tim Thompson wrote:
>> The problem comes when that menu is torn off and labels are assigned to
>>
> the tracks. Then the restore fails, and in fact the main Group window
> doesn't show up.
>

> Is there any error message printed in the console window?
>
> ...Tim...
>
>

dabrowsa.vcf
Keykit20080727.png
Reply all
Reply to author
Forward
0 new messages