|
-
Sep 7th, 2000, 11:12 AM
#1
Thread Starter
New Member
Hi
I have a popup menu on a system tray icon. One of the menu items opens a submenu listing some filenames in a directory.
I'm looking to expand this to include folders within the directory, which will in turn expand into another submenu listing the files within those folders.
See what I mean?!
I can list the top-level files OK - this is done by creating a dummy submenu in the MenuEditor and programmatically adding to the menu's array. BUT how do I add another submenu to this array?
I hope you understand what I mean )
-
Sep 7th, 2000, 11:50 AM
#2
Hyperactive Member
You can make an array of the submenu and use the following code to add more submenus at runtime.
Code:
Private Sub Form_Load()
Dim I As Integer
For I = 1 To 10
Load mnuf(I)
Next I
End Sub
-
Sep 8th, 2000, 08:19 AM
#3
Thread Starter
New Member
-
Sep 8th, 2000, 02:18 PM
#4
Hyperactive Member
I guess u'll have to make the menus using the windows api, which gives you the ability to change/design at runtime.
-
Sep 8th, 2000, 02:38 PM
#5
Take a look at this thread for creating menus with api.
-
Mar 31st, 2002, 04:38 PM
#6
Hyperactive Member
Wasiq...
Thanks for the menu tip!!
Just what I was looking for.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|