cancel
Showing results for 
Search instead for 
Did you mean: 

What's This menu on right click?

former_member682029
Contributor
0 Kudos

Hi

Any body tried adding the "What's This?" menu on user form Right Click menu list?

I mean, In Sales Order or any other system form, if we right click on a text box we can see "What's This?" menu item. Which actually resides in "Help -> Documentation".

How to enable the same menu item on user forms?

I am trying to enable the same menu item (UID 281). Not a user defined menu.

Thanks

Anoop

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

because menu uid = 281 is system menu id with direct link to help, you cannot use it. You may add own menu on right clcik, catch this menu in menuevent and do your logic behind.

former_member682029
Contributor
0 Kudos

Petr,

My thoughts was some kind of initialization in a user form will automatically brings this menu item (281) to the right click menu list.

Is this correct?

Anoop

Former Member
0 Kudos

on form call

Private Sub addmenu(ByVal oform As SAPbouiCOM.Form)
        Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
        oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
        oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
        oCreationPackage.UniqueID = "wt"
        oCreationPackage.String = "Whats this"
        oCreationPackage.Position = 100
        oform.Menu.AddEx(oCreationPackage)


    End Sub

it will add own menu to each item on form

former_member682029
Contributor
0 Kudos

Did you mean to add a menu on right click menu list like what in the SDK sample?

if there is no chance to add the original What's this? as in the system forms, my plan is to implement this.

Anoop

Former Member
0 Kudos

You cannot add original 281 menu id as in system forms - fields are linked to help files in some internal logic and you cannot even enable this menu.

The only solution i think is add item on right clcik with code i sent and in menu event catch it and show own help.

former_member682029
Contributor
0 Kudos

Thanks

Answers (0)