- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Wanted: TK admin menu example
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 07:02 AM
07-12-2006 07:02 AM
Does anyone have an example of what I am looking for?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 07:12 AM
07-12-2006 07:12 AM
Re: Wanted: TK admin menu example
I have a perl/Tk menu system (X11). Is that an option?
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 07:27 AM
07-12-2006 07:27 AM
Re: Wanted: TK admin menu example
Hope these links help...
Tk::Menu in perl 5.6.1:
http://perl.enstimac.fr/perl5.6.1/site_perl/5.6.1/sun4-solaris/Tk/Menu.html
Perl/Tk FAQ:
http://www.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
Various Tcl software:
http://hpux.connect.org.uk/hppd/hpux/Tcl/
Useful ITRC thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=184217
Also consider doing a web-based front-end instead.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 07:29 AM
07-12-2006 07:29 AM
Re: Wanted: TK admin menu example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 07:41 AM
07-12-2006 07:41 AM
Re: Wanted: TK admin menu example
I can ask my boss if I can release my Tk Menu program as Open Source
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 07:53 AM
07-12-2006 07:53 AM
Re: Wanted: TK admin menu example
Writing GUI Applications in Perl/Tk:
http://www.perl.com/pub/a/2001/03/gui.html
Perl/Tk Menus: Past, Present and Future:
http://www.developer.com/lang/other/article.php/615201
Perl and the Tk Extension:
http://www.lehigh.edu/~sol0/ptk/tpj1.html
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 08:03 AM
07-12-2006 08:03 AM
Re: Wanted: TK admin menu example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 10:44 PM
07-12-2006 10:44 PM
Re: Wanted: TK admin menu example
Several options now.
1. You give me points :)
2. I give you the current state, which still has some TODO items
3. You wait till I packaged it and put it on CPAN. That may take a while though
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 12:40 AM
07-13-2006 12:40 AM
Re: Wanted: TK admin menu example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 01:56 AM
07-13-2006 01:56 AM
Solutionhttp://www.xs4all.nl/~procura/cshmen-3.50.tgz
NO warranty
It will be available on CPAN (user ID HMBRAND) once PASUE has synced up
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 01:57 AM
07-13-2006 01:57 AM
Re: Wanted: TK admin menu example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 01:58 AM
07-13-2006 01:58 AM
Re: Wanted: TK admin menu example
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 06:57 PM
07-13-2006 06:57 PM
Re: Wanted: TK admin menu example
I forgot to package the README. Rather important in this stage, as the package has neither a configure nor a Makefile.PL
Please assign points to *all* answers. no points is better than not assign at all. This will inform other readers how useful an answer was.
--8<--- README
=head1 NAME
cshmen, xamen - Basic menu application in curses or perl/Tk
=head1 SYNOPSYS
# cshmen [-?] [-a] [-e] [-d] [-v] [-n] [-m dir] [menu]
# xamen [-?] [-a] [-e] [-d] [-v] [-n] [-m dir] [menu]
=head1 DESCRIPTION
cshmen is a low level recursive menu program using curses.
xamen is the perl/Tk translation for cshmen
=head1 INSTALLATION
As this was built for internal use only, there are no serious
attempts yet made to create a working environment for building
and installing.
$ make
Should build cshmen in the current folder. You might need to
change #include
some lines in the Makefile too.
=head1 DOCUMENTATION
This is seriously missing in this dist, as the only available
documentation is written in Uniplex. In Dutch. Both pretty
useless for the OpenSource community.
=head1 Menu format
=head2 The menu files
A menu file consists of menu lines. Each line looks like
ID:MenuText:Command:State[:HelpFile]
=over 4
=item ID
Two ID's are required: "H" for Header, and "Q" for Footer. In these
two cases, the State is ignored (but still required).
The H-line will be used to display the menu title. The command may
optionally define a different environment for this menu (and all
the descendants).
The Q-line will be shown on the last line and is a placeholder for
the
For all the other lines ID denotes the line to display this item
on, optionally followed by a letter to use instead (default is the
line number). Lines 10 though 16 are indicated by 'A' through 'F'.
H:Home menu ::1
1:Text for line 1:echo line 1:1
3=F:Fortune :fortune:2
B:Test menu :M test_menu:1
Q:Stop ::1
=item MenuText
Free text to show in the menu. The colon is forbidden. and the
underscores are translated to space.
=item Command
The command to be invoked
A command can be a series of commands seperated by ' ; '. Whitespace
matters. Each command can have optional command line arguments,
redirection and a execution folder. Arguments can be questions.
Commands that start with 'M ' call a menu. No ' ; ' allowed. If you
*do* have a command 'M', use 'env'.
proc @Directory 1>/tmp/proc-1.log 2>>/tmp/proc-2.log -
?0QuestText[,[DefaultValue][,[Prefix][,[Options][,[HelpFile]]]]
=item State
0 = Not shown (hidden). Item cannot be selected
1 = Normal, active
2 = Normal, but wait after execution finishes with a user prompt
=item HelpFile
Optional help description for this item
=back
=head1 TODO
* Documentation: pod, manual page or serious readme. NO info!
* A better Makefile
* Some sort of install procedure
* example menu's
* See top of xamen
=head1 AUTHOR
H.Merijn Brand,
=head1 COPYRIGHT AND LICENSE
Copyright (C) 1986-2006 H.Merijn Brand, PROCURA B.V.
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
=cut
-->8---
Enjoy, Have FUN! H.Merijn