+ Reply to Thread
Results 1 to 3 of 3

Face ID on main menu?

Hybrid View

Guest Face ID on main menu? 02-15-2006, 02:55 AM
Guest RE: Face ID on main menu? 02-15-2006, 03:55 AM
Guest Re: Face ID on main menu? 02-15-2006, 04:20 AM
  1. #1
    abdulsalam.abdullah@gmail.com
    Guest

    Face ID on main menu?

    Hi,

    I have the following code:

    Set myCustMenu = cbWSMenuBar.Controls.Add(Type:=msoControlButton,
    before:=iHelpIndex, Temporary:=True)
    With myCustMenu
    .Style = msoButtonCaption
    .Caption = "Test"
    .FaceId = 247
    .OnAction = "TryME"
    End With

    The menu bar is not displaying the face ID. Is it not possible to have
    a face ID n a menubar button on the main menu?

    if i have a sub menu control button on a popup menu it works.

    any idea?

    thanks


  2. #2
    Greg Wilson
    Guest

    RE: Face ID on main menu?

    Change msoButtonCaption to msoButtonIconAndCaption or to msoButtonIcon if you
    only want to display the icon. Alternatively, don't specify the Style as it
    defaults to msoButtonIcon. This worked for me:-

    Sub Test()
    Dim iHelpIndex As Integer
    Dim myCustMenu As CommandBarButton
    With Application.CommandBars(1)
    iHelpIndex = .Controls("Help").Index
    Set myCustMenu = .Controls.Add(Type:=msoControlButton, _
    before:=iHelpIndex, Temporary:=True)
    End With
    With myCustMenu
    .Style = msoButtonIconAndCaption 'msoButtonCaption
    .Caption = "Test"
    .FaceId = 247
    .OnAction = "TryME"
    End With
    End Sub

    Sub TryMe()
    MsgBox "Try me !!!"
    End Sub

    Regards,
    Greg

    "abdulsalam.abdullah@gmail.com" wrote:

    > Hi,
    >
    > I have the following code:
    >
    > Set myCustMenu = cbWSMenuBar.Controls.Add(Type:=msoControlButton,
    > before:=iHelpIndex, Temporary:=True)
    > With myCustMenu
    > .Style = msoButtonCaption
    > .Caption = "Test"
    > .FaceId = 247
    > .OnAction = "TryME"
    > End With
    >
    > The menu bar is not displaying the face ID. Is it not possible to have
    > a face ID n a menubar button on the main menu?
    >
    > if i have a sub menu control button on a popup menu it works.
    >
    > any idea?
    >
    > thanks
    >
    >


  3. #3
    abdulsalam.abdullah@gmail.com
    Guest

    Re: Face ID on main menu?

    It works fine now.

    Thanks


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1