Hi,
I have added a PopupMenuTool to my ribbon bar (configured as a SegmentedStateButton), and populated it with four StateButtonTools (all 4 in the same option group), when one of the sate buttons is clicked I set the checked state for the button to true, but when I drop down the menu no items are checked! :S
I used the code below to set the checked state:
PopupMenuTool legendMenu = (PopupMenuTool)grpChart.Tools["btnLegend"];
((StateButtonTool)legendMenu.Tools["btnLegendBottom"]).Checked = true;
When I examine it in the debugger the StateButtonTool.Checked property IS set, but it never displays that way.
Am I doing something wrong?
Thanks.
Brian
Set the MenuDisplayStyle of all the StateButtonTools to DisplayCheckmark. I believe the default MenuDisplayStyle gives no indication of the checked state when the StateButtonTool has no image.
That was the problem, I didn't have any image to begin with and setting DisplayCheckMark works very nicely in that situation. :)
However, I have now added an image and changed the setting back to DisplayToolImage, but although there is a light orange two pixel border around the image it's not very noticable (second picture below). :( On toolbars the outer pixel is darker forming a nice noticable border when the button is selected (last picture below), and also with the check mark option (first picture), but with the image it only gets this dark border if you roll over it with the mouse, at which point it also gets a second border around the whole item, image and text (third picture).
Should the dark border not be visible all the time when it's checked?
Yes, I believe there should be a darker border around the image when the tool is checked. I would recommend submitting this issue to the support group: http://ko.infragistics.com/gethelp.