View Full Version : DVD Lab Pro. How to create Multi-function buttons?
Pentajet
7th December 2006, 13:39
Maybe I am dumb but I have yet another problem with DVD Lab Pro. I want that when the user clicks on a button GPRM10 is set to "2", the audio is set to stream 2 and the user is taken to another menu.
The problem is that the "set GPRM" function will only allow me to set GPRM10 to 2 and link to the other menu but not to set the audio within one click. Can anybody help?
PS: I know that with the VM Command SetSN= (audio=number) LinkPGCN it is possible to set the audio and jump to a menu but I want to do all three together and I have no clue about how to do it.
bigotti5
7th December 2006, 17:52
You cant do that in a button command directly (2 commands needed)
Do it in postcommands
e.g
Button command:
GPRM10=2 LinkTailPGC
in postcommands:
if (GPRM10==2) goto 6
...
...
...
6. SetSTN Audio=x, LinkPGCN y
...
or use SPRM8 (the highlighted button)
1.GPRM8=SPRM8
2.if GPRM8=1 goto 6
3.if GPRM8=2 goto 9
..
..
6.SetSTN Audio=x, LinkPGCN y
Pentajet
7th December 2006, 19:47
Thanks again for your help. The first solution worked but there is a little bug with it. If the user presses the "title" button on the control he is returned to the main menu but the audio isn't set right. It does work fine if the menu is exited normally (this is a static menu not motion menu). I will look into the second solution as I did not understand it very well (I am a bit new to this - this is my first "complex" DVD and I am not that free to design it as I like since this is really a reproduction of another menu made by another person which I am translating into Italian.)
bigotti5
8th December 2006, 09:34
Create a report from Lab (Project - Generate Report - HTML Report) or post the DAL for debugging
Pentajet
9th December 2006, 15:18
I managed to solve the problem as follows:
1) I disabled the selection of the root menu by using the UOPs and settings so the user is forced to exit the menu either by pressing the appropriate button or the title button.
2) I added the following code to the title button (a slight modification of the first code that you suggested):
if (GPRM10 == 0) Goto 7 (; ie if the audio was set and the menu exited with title button)
if (GPRM10 == 2) Goto 7 (; same thing)
SetSTN (audio=1 )
GPRM11 = 0
GPRM13 = 0
JumpSS VTSM (vts 1, tt 1, menu ROOT)
SetSTN (audio=0 )
GPRM11 = 0
GPRM13 = 0
JumpSS VTSM (vts 1, tt 1, menu ROOT)
I had to disable the root menu selection (The problem can't be solved the same way like the title button as that way it would link to itself in an infinite loop) but that's really no big deal.
THANKS again for the big help you gave me with this DVD.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.