Need to link a submenu to a database for favorites list for browser

cflare
12-17-2003, 08:11 AM
I have a question, I will post this in interfacing also.

How can I link a database of favorites to a submenu, so that all items in the list get their corresponding submenu line, then use code to put that item's address into an address bar and go there?

Basically I want to create my own favorites list seperate from explorer, and put it in the menu as items in a submenu, using two simple lined text databases one for the caption in the submenu, and the second for an address.

It's more complex than I studied so far...

If I can't do it in a menu, then I guess I could substitute a drop down list, but I would rather the menu (drop down list for favorites seems corny)

Flyguy
12-17-2003, 09:22 AM
I have a question, I will post this in interfacing also.

Cross posting is not allowed.

cflare
12-17-2003, 10:40 AM
Cross posting is not allowed.
Sorry, I'm not getting my answer anywhere, and I won't do it again.

Dennis DVR
12-17-2003, 11:42 AM
Cross posting is not allowed.
Sorry, I'm not getting my answer anywhere, and I won't do it again.

you need to use the api for menu

Flyguy
12-17-2003, 11:57 AM
In the submenu add a menu item (eg mnuFav), set it's index to 0.
Now you have a control array for this menu item
You can add new items to it by using "Load mnuFav(mnuFav.UBound + 1)"
If you put the URL in the Tag property of the newly load menu item you can do a ShellExecute API on the .Tag of the clicked menu item.

cflare
12-17-2003, 04:01 PM
In the submenu add a menu item (eg mnuFav), set it's index to 0.
Now you have a control array for this menu item
You can add new items to it by using "Load mnuFav(mnuFav.UBound + 1)"
If you put the URL in the Tag property of the newly load menu item you can do a ShellExecute API on the .Tag of the clicked menu item.
How do you do the shellexecute?

Dennis DVR
12-17-2003, 06:51 PM
In the submenu add a menu item (eg mnuFav), set it's index to 0.
Now you have a control array for this menu item
You can add new items to it by using "Load mnuFav(mnuFav.UBound + 1)"
If you put the URL in the Tag property of the newly load menu item you can do a ShellExecute API on the .Tag of the clicked menu item.
How do you do the shellexecute?

just click on the link above to see an example on how to use shellexecute.

cflare
12-18-2003, 02:51 PM
Now, How do I link that with a database, let's say I have two simple text databases--one for the address of the site, and one for the caption of the menu item... like in explorer's database.

I never got to the database section in highschool and I don't have a book with me.

#1: Can I open two at once

like

Open ... #1 for Input

then

Open ... #2 for Input

#2: How do I advance the line

like

for menu #1 do I say like line one from #1 for tag, and line one from #2 for mnuFav(1).Caption...

but how do I read the second line for mnuFav(2)
and the third for submenu mnuFav(3)


what's the syntax for all this???

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum