I''m trying to display a menu that does not have the icons shown along the left side. I''m using the following code:
private void lnkChooseSubset_Click(object sender, System.EventArgs e)
Point ClickPoint = new Point(lnkChooseSubset.Right, lnkChooseSubset.Top);
// Convert to Screen coordinates
Point ScreenPoint = this.pnlSummary.PointToScreen(ClickPoint);
// Convert from Screen coordinates to Form coordinates
Point FormPoint = this.PointToClient(ScreenPoint);
// Show subset context menu
parentBarItem1.PaintStyle = PaintStyle.TextOnly;
for (int i = 1; i < 10; i++)
BarItem pNew=new BarItem();
pNew.Text="Label - " + i.ToString();
pNew.Tag="Label" + i.ToString();
pNew.PaintStyle = PaintStyle.TextOnly;
Note that I''ve set the PaintStyle to "TextOnly" and it does not work. Setting it to anything makes no difference...I always see a white vertical stripe down the left side of my menu whose background color is blue.
What might I be doing wrong?
ADAdministrator Syncfusion Team October 21, 2004 02:01 PM
Please refer to the test sample attached that shows how you could have a PopupMenu with BarItems in PaintStyle.TextOnly mode. If you are referring to the long vertical rectangle on the left side of the PopupMenu, then I would like to inform you that this is done by design intent and not a result of a bug in the BarItem''s PaintStyle property. Our XPMenus framework is closely modelled on the VS.NET''s menus and we have maintained similar behavior/look and feel for consistency purposes. If you are using Office2003 VisualStyle for the menus, this is exactly how the MS Office 2003 context menu looks too. Let me know if I have not understood your problem correctly. We appreciate your cooperation.