>Hopefully I am in the same ballbark. How about having the individual Button RightClicks call the Container RightClick method. Just pass the individual button name as a parameter.
It's a little tricky because the number of buttons in the command group, plus their captions, are dynmically assigned at run time (and change repeatedly based on the context of the data being entered by the user).
That is why it's so handy to simply know the ordinal number of the button that was clicked. The number serves as an index into several arrays that contain all kinds of directives that tell my app what to do next...basically a forward-chaining technique that is table driven.
Anyway, the Click() event for the commandgroup works fine and lets the above happen. Capturing the RightClick() event the same way would enable some other interesting capabilities.
Is it possible to subclass buttons used in commandgroup containers, or are you stuck with the base class version of the button? I was thinking that I could subclass the button itself so that it's rightclick would do whatever is necessary. The rightclick event would by necessity be the same for all buttons. That's OK, but the code needs to know which button (ordinal number) was clicked.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only