Results 1 to 13 of 13

Thread: [RESOLVED] Creating menu items at runtime

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2005
    Location
    Chicago
    Posts
    202

    Resolved [RESOLVED] Creating menu items at runtime

    Hi all. I have a context menu that which I want to display the index of each item from a listbox as menu items in a context menu. For example, if there are 5 items in the listbox, I would like the context menu to be as follows:


    Stop after track... -->
    1
    2
    3
    4
    5
    I would also like the menu items to be called "mnuStopTrack" and then the number that is displayed i.e. "mnuStopTrack3." How would I do this using a loop? I then need to be able to set properties if the dynamically made menu item is clicked.
    Last edited by wldrumstcs; Nov 23rd, 2005 at 11:41 PM.
    A programmer is a person who fixes a problem you did not know you had in a way that you cannot understand.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width