
context-sensitive (F1) help with pop-up menus
Using the menu editor, you can create popup menus and associate help-context
IDs with them. This works fine with a standard application. However, if
you try to build an application out of controls, and you have popup menus
(with help IDs) on your controls, the behavior seems broken (in VB6 at
least). Instead of getting the desired help context ID, you get the
positionally-equivalent help ID from menus on the containing form.
You can hack around this by putting dummy invisible menu entries hither and
yon in the control and on the form. Yuck.
Is there a way around this problem?
( I realise that the model is that a control can't know what form it will be
sited in, and shouldn't depend on
it, but I would expect that I could specify the appropriate help file in the
general properties of the control and get reasonable behavior.)
-Mike