2

I have my bash dialog --menu box acting nicely, but i do need second one when i choose particular option like "change user". I want that "user list" --menu dialog box to open on top of the first one(which will be in background, but won't disappear completely) with specific coordinates.

Is that possible?

regards kasper

1

1 Answer 1

3

Chain the two with --and-widget:

dialog --menu "menu 1"  ........  --and-widget --begin $x $y --menu "menu 2" .......

Menu 1 will show and once you press enter it will remain in place while menu 2 will show and take control (like a new "popup window").

Sign up to request clarification or add additional context in comments.

2 Comments

Ok, that helped a bit, but what if i want to insert a case statement between? Like i want the content of the second window to depend of the option chosen in first menu? Choosing User option in 1 will show user list in 2 but choosing something else in 1 will bring something else in 2. I hope you know what i'm talking about :).
I don't think that's possible... I mean, you have the --file option (and you read what dialog to display from that file after the first dialog exists). But all you can write from a menu dialog is the "tag" and that's not very useful useful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.