locked
Custom Drop-Down Menu - Icon Required RRS feed

  • Question

  • I'm in the process of adding a custom menu to my entity via the isv.config file. I'm okay with this... however.

    I'm trying to add a drop-down menu item with an icon. Just like "Actions" menu item that can be found on every entity.

    Looking through the SDK it doesn't appear that I can mimic the actions menu. Is this correct? Is there any way I can put a small icon next to my menu, as it looks a bit naff when all over drop-down menu items support icons.

    Regards

    Steve
    Friday, May 22, 2009 2:59 PM

Answers

  • Hi.

    It's the Microsoft core functionality. You can add Icon to MenuItem, but not to the menu...
    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    • Marked as answer by lemonje Tuesday, May 26, 2009 8:43 AM
    Tuesday, May 26, 2009 8:41 AM
    Moderator

All replies

  • Hi.

    Look ISV.Config XML Reference . All that can be done in supported way is described in page.
    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    Friday, May 22, 2009 3:20 PM
    Moderator
  • I've looked at the SDK reference and it only mentions icon for buttons.

    Microsoft can do it with their actions menu items... so I guess the question is can we, or is it one rule for them and one for us!


    PS. Some of my menu items are only applicable based upon the criteria on the entity, when my form loads am I able to disable some menu items?

    Cheers

    Steve

    Friday, May 22, 2009 3:26 PM
  • Hi, Steve.

    You can add icon to Menu Items. Just include Icon attribute. For example:

              <MenuBar>
                <CustomMenus>
                  <Menu ValidForCreate="0">
                    <Titles>
                      <Title LCID="1033" Text="Menu" />
                    </Titles>
                    <MenuItem JavaScript="alert();" Icon="/_imgs/ico_18_4.gif">
                      <Titles>
                        <Title LCID="1033" Text="Menu Item" />
                      </Titles>
                    </MenuItem>
                  </Menu>
                </CustomMenus>
              </MenuBar>
    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    Monday, May 25, 2009 7:40 AM
    Moderator
  • Hi (a33ik)

    what about disabling some of the menu items via javascript, are these menus exposed within the DOM?
    Cheers

    Steve
    Monday, May 25, 2009 11:19 PM
  • I gave this a go and it does work for the individual menu items, but its the parent menu item I'm trying to affect. When this code is placed on the menu bar tag the isv.config fails to load.

    How do Microsoft get their images on their menus?
    Tuesday, May 26, 2009 8:35 AM
  • Hi.

    It's the Microsoft core functionality. You can add Icon to MenuItem, but not to the menu...
    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    • Marked as answer by lemonje Tuesday, May 26, 2009 8:43 AM
    Tuesday, May 26, 2009 8:41 AM
    Moderator