I have coding similar to the coding below. I expect that when the popup popLevel2 is displayed, pressing 3 will return "Main 06 Sub 03". However, it is returning "Main 03". So, it seems like even the popup popLevel2 is activated, the popup popSetup is still the active one. I hope someone can help me to resolve this problem.
Thank you.
local lnPos1, lnPos2, lcPrompt
lnPos1 = mrow()
lnPos2 = mcol()
lcPrompt = ""
define popup popSetup shortcut from lnPos1, lnPos2 relative
define bar 1 of popSetup prompt "Main 0\<1"
define bar 2 of popSetup prompt "Main 0\<2"
define bar 3 of popSetup prompt "Main 0\<3"
define bar 4 of popSetup prompt "\-"
define bar 5 of popSetup prompt "Main 0\<4"
define bar 6 of popSetup prompt "Main 0\<5"
define bar 7 of popSetup prompt "\-"
define bar 8 of popSetup prompt "Main 0\<6"
on bar 8 of popSetup activate popup popLevel2
define popup popLevel2 shortcut margin relative
define bar 1 of popLevel2 prompt "Main 06 Sub 0\<1"
define bar 2 of popLevel2 prompt "Main 06 Sub 0\<2"
define bar 3 of popLevel2 prompt "Main 06 Sub 0\<3"
define bar 4 of popLevel2 prompt "Main 06 Sub 0\<4"
define bar 5 of popLevel2 prompt "Main 06 Sub 0\<5"
on selection popup popLevel2 lcPrompt = prompt()
define bar 9 of popSetup prompt "\-"
define bar 10 of popSetup prompt "Main 0\<7"
define bar 11 of popSetup prompt "Main 0\<8"
define bar 12 of popSetup prompt "Main 0\<9"
on selection popup popSetup lcPrompt = prompt()
activate popup popSetup
wait window "Selected Item is [" + lcPrompt + "]"
deactivate popup popSetup
deactivate popup popLevel2
release popups popSetup, popLevel2
Thank you.
local lnPos1, lnPos2, lcPrompt
lnPos1 = mrow()
lnPos2 = mcol()
lcPrompt = ""
define popup popSetup shortcut from lnPos1, lnPos2 relative
define bar 1 of popSetup prompt "Main 0\<1"
define bar 2 of popSetup prompt "Main 0\<2"
define bar 3 of popSetup prompt "Main 0\<3"
define bar 4 of popSetup prompt "\-"
define bar 5 of popSetup prompt "Main 0\<4"
define bar 6 of popSetup prompt "Main 0\<5"
define bar 7 of popSetup prompt "\-"
define bar 8 of popSetup prompt "Main 0\<6"
on bar 8 of popSetup activate popup popLevel2
define popup popLevel2 shortcut margin relative
define bar 1 of popLevel2 prompt "Main 06 Sub 0\<1"
define bar 2 of popLevel2 prompt "Main 06 Sub 0\<2"
define bar 3 of popLevel2 prompt "Main 06 Sub 0\<3"
define bar 4 of popLevel2 prompt "Main 06 Sub 0\<4"
define bar 5 of popLevel2 prompt "Main 06 Sub 0\<5"
on selection popup popLevel2 lcPrompt = prompt()
define bar 9 of popSetup prompt "\-"
define bar 10 of popSetup prompt "Main 0\<7"
define bar 11 of popSetup prompt "Main 0\<8"
define bar 12 of popSetup prompt "Main 0\<9"
on selection popup popSetup lcPrompt = prompt()
activate popup popSetup
wait window "Selected Item is [" + lcPrompt + "]"
deactivate popup popSetup
deactivate popup popLevel2
release popups popSetup, popLevel2