-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
the problem was it was comparing the string with "false", so if
it wasn't all lower case, it thought it should be true. I have updated
the SVN version to ignore the case. You can check out the fixed code
with:
svn co
https://redbutton.svn.sourceforge.net/svnroot/redbutton/redbutton-author/trunk
next time I do a release it will include this fix.
Derek Pang wrote:
> Hi
> I found a bug of mhegc, it always give 'InitiallyActive = True' even
> I put it False there.
>
> e.g.
>
> {:Text
> 44
> :TextColour '=D4=D4=D4=00'
> :BackgroundColour '=00=00=00=FF'
> :OrigContent 'mheg-5 test 1'
> :OrigBoxSize 150 60 // Size of text box
> :OrigPosition 50 50 // X,Y position
> :InitiallyActive True
> }
>
> is same as
> {:Text
> 44
> :TextColour '=D4=D4=D4=00'
> :BackgroundColour '=00=00=00=FF'
> :OrigContent 'mheg-5 test 1'
> :OrigBoxSize 150 60 // Size of text box
> :OrigPosition 50 50 // X,Y position
> :InitiallyActive False
> }
>
>
> And I use the 'mheg5dump -otext' dump the output, 'InitallyActive
> True or False' makes no difference, it always give TRUE.
>
> Second question is that, I would like to put the current video as
> background, and the string 'mheg-5 test 1' is on top of the video, but my
> application run without the video, and the video shows again after I quit
> the application. I'm not sure what was wrong.
>
> Any idea?
>
>
>
> ------------------------------------------------------------------------
>
> //test
>
> {:Application
> ( '/startup' 0 ) // Application content reference
> :Items (
> {:Stream 103
> :CHook 10
> :OrigContent :ContentRef("rec://svc/cur")
> :Shared True
> :Multiplex (
> {:Video 101
> :ComponentTag -1
> :OrigBoxSize 720 576
> }
> {:Audio 174
> :ComponentTag -1
> }
> )
> }
>
> {:Link
> 1
> :EventSource 0 // Check this application...
> :EventType IsRunning // ... for the IsRunning event
> :LinkEffect (
> :TransitionTo (( '/page_1.mhg' 0 ) )
> )
> }
> )
>
> :BackgroundColour '=00=00=00=FF'
> :TextCHook 10
> :TextColour '=BF=DF=FF=00'
> :BitmapCHook 4
> }
>
>
> ------------------------------------------------------------------------
>
> //page_1.mhg.txt
>
> {:Scene
> ( '/page_1.mhg' 0 )
> :Items
> (
> {:Text
> 1
> // :InitiallyActive False
> :TextColour '=D4=D4=D4=00'
> :BackgroundColour '=00=00=00=FF'
> :OrigContent 'mheg-5 test 1'
> :OrigBoxSize 150 60 // Size of text box
> :OrigPosition 50 50 // X,Y position
> }
>
>
> {:Link
> 3
> :EventSource 0 // Source is this scene
> :EventType UserInput // Event type that we are looking for
> :EventData 101
> :LinkEffect (
> :Quit( ('/startup' 0 ) )
> )
> }
>
> )
>
> :InputEventReg 3
> :SceneCS 720 576
> }
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Redbutton-devel mailing list
> Red...@li...
> https://lists.sourceforge.net/lists/listinfo/redbutton-devel
- --
Simon Kilvington
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH4lIOmt9ZifioJSwRAsqBAJwI43fE8RDK8zS9DEHgg40vd5SJVgCcDXB5
t5Hfm0cSs5baQo4OVBJhhjk=
=rpVp
-----END PGP SIGNATURE-----
|