Simulating toolbar button click through menu item? 
Author Message
 Simulating toolbar button click through menu item?

I have a Select Case statement in a toolbar buttonclick
event that I would like to be accessed when clicking
on its counterpart created with the menu editor.  I
can call the toolbar_click event from the menu_click
event, but I don't know how to pass the value that is
needed by toolbar_click event -- (ByVal xxx As Button).
Can this be done or must I resort to copying the
statements from the Select Case statement directly
into the menu_click event?



Sun, 20 Aug 2000 03:00:00 GMT  
 Simulating toolbar button click through menu item?

Quote:

> I have a Select Case statement in a toolbar buttonclick
> event that I would like to be accessed when clicking
> on its counterpart created with the menu editor.  I
> can call the toolbar_click event from the menu_click
> event, but I don't know how to pass the value that is
> needed by toolbar_click event -- (ByVal xxx As Button).
> Can this be done or must I resort to copying the
> statements from the Select Case statement directly
> into the menu_click event?

You could :

menubar_click(..)

dim mybutton  as button
mybutton.key="Keyvalue"  'as defined in the KEY field in the toolbar

call toolbar_click(mybutton)

If you use select case on button.key in the toolbar_click.

(from the top of my head....)
Jon Arne
--
|tlf:22 23 67 57 - *Jon Arne Hegge* - mob: 90 78 52 48|

--===> Wherever you are, there you are <===--



Mon, 21 Aug 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Simulate clicking a toolbar button

2. VBScript for simulating clicking the stop button on IE toolbar

3. Click-Event for runtime-built Toolbar Button Dropdown Menu

4. Responding to Menu items and Toolbar buttons

5. Methods for linking menu items and toolbar buttons?

6. How to insert images in the dropdown toolbar button menu items in VB.

7. How to make a toolbar button click down/click up

8. Howto add a menu to right-click menu for an item

9. catching menu clicks and adding menu items

10. Identifying Which menu item was clicked on a custom menu

11. Right Click PopUp Menu and dynamic menu Item

12. Right Click PopUp Menu and dynamic menu Item

 

 
Powered by phpBB® Forum Software