Toolbar DropDownMenu From Array

G

Guest

I want to Make DropDownMenu for toolbar(just like Back or forward buttons of
browser) takes its menuitems from Contextmenu filled with array of menuItems
I could not handle the event of clicking the menuItems because it is not
available to declare array withevents
can any one help to find alternative solution
 
C

Cor Ligthert

Meghezel.

The only way AFAIK to use the toolbar is with buttons. However it fits very
good what you told just to use the toolbar.

Keep in mind that the toolbar is a special way of control, that has its
buttons inside it, which you only can handle with a case select inside the
events from the toolbar.

In my opinion is the simplest way to get the toolbar to drag a toolbar to
your form, open the properties and than choose for the Buttons, which is a
collection inside those properties. Than a special form opens to set your
buttons.

I hope this helps,

Cor
 
G

Guest

Dear Cor
I already did what u mentioned
I inserted buttons of type dropDown
and choosed Contextmenu to represent the dropdown list
and I filled the Contextmenu from collection of menuItems
these menu items represents the history of browsed pages
Untill now it is ok , if the menuitems is separate variables,
It could be handled through the event menuitem.click
but i need the history to catch more than 20 Pages so
I made array of MenuItems to fill the contextmenu
and I want to handle the event when user click down the toolbarbutton and
choose item from the dropdown list appeared
walied
 
C

Cor Ligthert

Meghezel.

It seems that you are creating a special application. Normally I would
expect for browser history a combobox set to dropdownlist.

Can you show a piece of code what you do?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top