topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 7:21 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Request for a stand-alone menu bar, that is capable of displaying sub-menus  (Read 5913 times)

hymself

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 2
    • View Profile
    • Donate to Member
I need a stand-alone menu bar that can show sub-menus like any windows program. The options on sub-menus need to come for text (.txt) file(s). Selecting the last option on any sub-menu or sub-sub-menus does not acutally need to do any action / launch any program.

This menu bar is needed for training / teaching purpose. The whole and sole purpose is to customize this menu bar, to reflect the options available in a program that the students are currently going to work with.

Once they are done with first program, the text files would be replaced with new files containing options to be displayed for next program that students are going to learn.

Here is an exmple.. the Program Launcher from Hiren's boot cd:
http://www.novem-it....ers_screenshot_4.png

http://imageshack.us.../20091207144319.png/

Thanks in advance.


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
That sounds easy enough.  One question I have though, you say "The options on sub-menus need to come for text (.txt) file(s)".

Does that mean it's not ok to have one file specify the entire contents of the menu inlcuding submenus?  if not then how do you build the menu out of multiple files?


hymself

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 2
    • View Profile
    • Donate to Member
Thanks for quick response.

Sure.. all the options can come from a single file.. that is exactly how those menus in HBCD are made...
My only concern in that case would be that that text file should be easy to create... like CSV kind of format.. possibly having the sub-menu options listed on as many lines as many sub-menus are to be displayed.

That text file in case of HBCD program launcher is quite cluttered...

Thanks for quick repy again.

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,832
    • View Profile
    • Donate to Member
we did something similar here, though that was intended as a prompt rather than a menu

is this like what you were looking for?

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,022
    • View Profile
    • Donate to Member
What this reminds me of, is like when you have an empty project in a visual IDE, and you just build the window and the menu parts, but don't have any commands associated with the UI elements yet.
Perhaps the product could be exactly that; an empty (command-less) window with menubar, but the menubar content gets populated according to a plain text config file.
XML would work very well for this, but CSV would be easier to deal with, I agree.

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
If you are still in need for an app, I made this real quick for you (or anyone who need it). It's called Menu Snack. It just reads a menu.txt file in the same folder as Menu Snack.exe.

Open the menu.txt file in the Menu Snack.zip file attached for more info. Hope it is what you needed.

Screenshot - 4_17_2012 , 4_40_02 PM.pngRequest for a stand-alone menu bar, that is capable of displaying sub-menus

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
That looks like just what he wanted.  :up: