Hi,
I am using the Popup menu control in my windows application.
I want to hide the image are in the popup dropdown ie. side strip
Awaiting for the reply
Thanks & Regards
Maguesh
I assume you mean you want to prevent the images of the tools in the menu from appearing in the image area on the left edge of the menu. One way to accomplish this is by setting the menu's Settings.ToolDisplayStyle to TextOnlyInMenus. If you want to hide the image for individual tools but leave others showing, you can set the tool's DisplayStyle (accessed from its InstanceProps or SharedProps) to TextOnlyInMenus.
Thanks Mike,
I am using some menus with some without images I want to hide the images area which menu dont have the images,
I am tryed your suggesion but it cant work
Please advice
I'm not sure I fully understand the problem. If you can post a image of what it looks like now and possibly an image of what you are trying to achieve I might be able to help.
Hi Mike
Thanks for your reply
I have attached screen shot of the menu image in that some of the menus have the images in the side strip some have not.
I want to hide the side strip which menus have not the images
Thanks
Thaks Mike
I will try
I see now. In that case, it is not possible to hide the icon area with a normal popup menu, but you might be able to do this with a PopupGalleryTool. Add a PopupGalleryTool to the ribbon and set the following porperties on it:
MaxDropDownColumns = 1;
ShowPreviwInRibbon = false;
Then add two items to its Items collection. Set the Title of the GalleryToolItems to the text you want displayed. Then you can handle the GalleryToolItemClick event to know when one of the items was clicked by the user.
In the screen shot the two menu items have the images in the side. this is perfect.
I have menus which has no images in the side. form that i want to hide the side grey area(side strip)
In the screen shot you have attached, there are two menu items within the menu and each have an image. I assume you want to reproduce the behavior where each menu item has bold text with regular text below it. This can be accomplished by setting the SharedProps.DescriptionOnMenu property on the tools. This will cause the Caption value to appear in bold at the top of the menu item and the description you have set to be below the caption.