Jump to content
Sign in to follow this  

Tray Menu read values

Recommended Posts

hi everyone,

I want to make a dynamic menu. I succesfully create a part of this program that can read a text file that contains descriptions of programs to start, and put values in a Array 2D

After I created a TrayMenu and I'm able to read the values of my Array and put these values in my TrayMenu. So If I have per exemple in my file the values CALC, EXPLORER and PAINT, these values will be automatically in the traymenu.

My problem is that I can't figure how can I read these items values in the traymenu when I click on them, because these values are not static. If I have a static menu, I could use a while loop with as many "case" that I have values...

For this part, I'm not sure how to procede.... perhaps I will need a function call, but how and how can I get the value of item selected in the menu ? If I only could get the text of the item I select and after, search this text in my array it will be great....

the goal is to start the correct executable of the program choosed from traymenu...

thank you for your help!

Share this post

Link to post
Share on other sites


Post what you have so far so we can see what direction you are goiing in.


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...