08-19-2012
You are both stars
Between you, I believe its working great
"2nd menu goes back to first menu every time & I can cancel from first menu if needed
WIll modify my main script and double check all OK...
But great work by both of you...Much appricaited
Regards
---------- Post updated at 07:23 AM ---------- Previous update was at 05:10 AM ----------
Hi
Yes, works perfect
Corrected my main script which uses quite a lot of menu's. Having 2 of them loop the way you showed me, improves my script a lot
Cheers again
10 More Discussions You Might Find Interesting
1. Programming
hello there,
i'm exploring the curses lib and i'm having some trouble with "defining a style". to clarify: i'm creating a menu driven app and i've been thinking what's the best way to use menus: make global vars (not my favourite), creating a function which designs the menu and returns the... (2 Replies)
Discussion started by: crashnburn
2 Replies
2. UNIX for Dummies Questions & Answers
Can someone give me an example of Enterprise level permissions? (4 Replies)
Discussion started by: wmosley2
4 Replies
3. UNIX for Dummies Questions & Answers
hiyas
I am trying to get back to the root directory: I went into MAIL directory and now I can't get back to the root directory. What are the commands...
I have '?' coming up and I cannot proceed with this, HELP
Cheers (1 Reply)
Discussion started by: etravels
1 Replies
4. Solaris
what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies
5. Shell Programming and Scripting
Hi. I am receiving this error message for the highlighted line (let "total=$total+$sales").
line 11: let: total+sales:expression recursion level exceeded (error token is "total+sales")
counter=0
sales=0
total=0
echo "enter sales price"
read sales
total=total+sales
while test $sales ; do... (5 Replies)
Discussion started by: Ccccc
5 Replies
6. AIX
Dont know what happened, my AIX 53 TL6 os just reverted back to original TL4 from whence I started this week. Is there a commad to check the ODM or kernel or something to ensure stability? (2 Replies)
Discussion started by: mrmurdock
2 Replies
7. AIX
Hi,
is it possible to roll back currently updated Technology level ? what are steps required?
Regards,
Manoj (2 Replies)
Discussion started by: manoj.solaris
2 Replies
8. UNIX for Dummies Questions & Answers
How is the level of access on a particular folder determined? I have heard (its just hearsay so am not particularly sure of it) that the access a particular user/group has to a low level directory is also affected by the level of access granted to the user/group on its parent directories. e.g.
... (1 Reply)
Discussion started by: jawsnnn
1 Replies
9. Red Hat
We have a RHEL 5.8 server at the production level and we have a Java application on this server. I know of the SSL certificate generation at the OS (RHEL) level but it is implemented on the Java application by our development team using the Java keytool. My doubt is that is the SSL generation can... (3 Replies)
Discussion started by: RHCE
3 Replies
10. Shell Programming and Scripting
I currently have a main menu (using whiptail) and one of the options makes an instance of another menu - sort of cascading fashion.
I like to be able to terminate the current (top) menu and return to the underlying main one.
I was thinking enclosing the main menu in "do... done" block.
... (0 Replies)
Discussion started by: annacreek
0 Replies
LEARN ABOUT OPENSOLARIS
tk_popup
tk_popup(1T) Tk Built-In Commands tk_popup(1T)
__________________________________________________________________________________________________________________________________________________
NAME
tk_popup - Post a popup menu
SYNOPSIS
tk_popup menu x y ?entry?
_________________________________________________________________
DESCRIPTION
This procedure posts a menu at a given position on the screen and configures Tk so that the menu and its cascaded children can be traversed
with the mouse or the keyboard. Menu is the name of a menu widget and x and y are the root coordinates at which to display the menu. If
entry is omitted or an empty string, the menu's upper left corner is positioned at the given point. Otherwise entry gives the index of an
entry in menu and the menu will be positioned so that the entry is positioned over the given point.
EXAMPLE
How to attach a simple popup menu to a widget.
# Create a menu
set m [menu .popupMenu]
$m add command -label "Example 1" -command bell
$m add command -label "Example 2" -command bell
# Create something to attach it to
pack [label .l -text "Click me!"]
# Arrange for the menu to pop up when the label is clicked
bind .l <1> {tk_popup .popupMenu %X %Y}
SEE ALSO
bind(1T), menu(1T), tk_optionMenu(1T)
KEYWORDS
menu, popup
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWTk |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for Tk is available on http://opensolaris.org.
Tk 4.0 tk_popup(1T)