Hi,
How do I create a PopupMenu that contains only images? Additionally, the images must retain their width and height (ie not be resized).
I am currently using ButtonTool as the tool, and setting
button.AppearancesLarge.MenuAppearance.Image = myImage;
contextMenu.UseLargeImages = DefaultableBoolean.True;
I guess I'm looking for a DisplayStyle like "ImageOnly". I've just had a thought that there may be a better tool than ButtonTool for this, but any help will be appreciated.
Thanks and regards
David D
You can try settings the captions for all the tools to empty strings. There might be some minimum width for the text area though. I would recommend submitting a feature request for this if you do not get the desired result: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.
Hopefully it's obvious that I'd leave the Captions unset. The main problem is the resizing of the images, as mentioned in the initial post; they need to be "as drawn".I'm offering the user a selection of images to choose from, not text-with-icons.
Can anyone be definitive about whether this is possible?
I can do it in regular WIndows forms OK, but would rather use the nice shiny Infragistics stuff.
Thanks
Dave D
That's a good idea, thanks. I'd be amazed if this really can't be done, but maybe I'm doing something extraordinary with this menu.
Regards,
The only other thing I can think of would be to set the Settings.PopupStyle of the PopupMenuTool to Toolbar. If that does not get the desired result, it is not possible and you can submit a feature request for this.