![]() Now with Aero Glass support! - 3D Separator - ListView Options Screen - TabControl with tab-specific ContextMenuStrips and Tab-Dragging *NEW* OptionsView control with rich design-time support - MonthPicker - Validators for Winforms - Double TrackBar - Editable ListBox - Outlook Navigation Bar - ColorListBox with images - Advanced ToolStripContainer - RadioButtonGroup Control - Expandable Groupbox - Wizard Template Usercontrol (full Design-time support!). ![]() ObjGraphics.DrawLine(pen, m_intxAxis, m_intyAxis + CInt(m_diameter / 2), m_intxAxis, m_intyAxis + m_intHeight - CInt(m_diameter / 2)) ObjGraphics.DrawArc(pen, ArcRect, 90, 90) ObjGraphics.DrawLine(pen, m_intxAxis + CInt(m_diameter / 2), m_intyAxis + m_intHeight, m_intxAxis + m_intWidth - CInt(m_diameter / 2), m_intyAxis + m_intHeight) ObjGraphics.DrawLine(pen, m_intxAxis + m_intWidth, m_intyAxis + CInt(m_diameter / 2), m_intxAxis + m_intWidth, m_intyAxis + m_intHeight - CInt(m_diameter / 2)) ObjGraphics.DrawArc(pen, ArcRect, 270, 90) ObjGraphics.DrawLine(pen, m_intxAxis + CInt(m_diameter / 2), m_intyAxis, m_intxAxis + m_intWidth - CInt(m_diameter / 2), m_intyAxis) ObjGraphics.DrawArc(pen, ArcRect, 180, 90) Public Sub DrawRoundedRectangle(ByVal objGraphics As Graphics, _īyVal m_diameter As Integer, ByVal color As Color)ĭim BaseRect As New RectangleF(m_intxAxis, m_intyAxis, m_intWidth, m_intHeight)ĭim ArcRect As New RectangleF(BaseRect.Location, New SizeF(m_diameter, m_diameter)) Public clrToolstripBtnGrad_White_Pressed As Color = Color.FromArgb(255, 228, 245, 252) Public clrToolstripBtnGrad_Blue_Pressed As Color = Color.FromArgb(255, 124, 177, 204) Public clrToolstripBtn_Border As Color = Color.FromArgb(255, 41, 153, 255) Public clrToolstripBtnGrad_White As Color = Color.FromArgb(255, 237, 248, 253) Public clrToolstripBtnGrad_Blue As Color = Color.FromArgb(255, 129, 192, 224) Public clrVerBG_Shadow As Color = Color.FromArgb(255, 181, 190, 206) Public clrVerBG_White As Color = Color.FromArgb(255, 250, 250, 253) Public clrVerBG_GrayBlue As Color = Color.FromArgb(255, 196, 203, 219) Public clrCheckBG As Color = Color.FromArgb(255, 206, 237, 250) Public clrMenuBorder As Color = Color.FromArgb(255, 160, 160, 160) Public clrSelectedBG_Drop_Border As Color = Color.FromArgb(255, 48, 127, 177) Public clrSelectedBG_Drop_Blue As Color = Color.FromArgb(255, 139, 195, 225) Public clrSelectedBG_Border As Color = Color.FromArgb(255, 150, 217, 249) Public clrSelectedBG_White As Color = Color.FromArgb(255, 241, 248, 251) Public clrSelectedBG_Header_Blue As Color = Color.FromArgb(255, 146, 202, 230) Public clrSelectedBG_Blue As Color = Color.FromArgb(255, 186, 228, 246) Public clrImageMarginLine As Color = Color.FromArgb(255, 160, 160, 180) Public clrImageMarginWhite As Color = Color.FromArgb(255, 244, 247, 252) Public clrImageMarginBlue As Color = Color.FromArgb(255, 212, 216, 230) ![]() Public clrSubmenuBG As Color = Color.FromArgb(255, 240, 240, 240) Public clrHorBG_White As Color = Color.FromArgb(255, 244, 247, 252) Public clrHorBG_GrayBlue As Color = Color.FromArgb(255, 233, 236, 250) This module hosts all the different color constants and a 'DrawRoundedRectangle' function (not mine). If you want your ToolStrip in a ToolStripContainer, add that too and add your MenuStrip and ToolStrip controls to the ToolStripContainer instead of the form.Īdd a new 'Module' and call it "clsColors.vb". You can rightclick them and choose "Insert Standard Items" to insert the standard items if you wish. If you haven't already got a MenuStrip and/or ToolStrip control, add them now. To make this work, all you need is the following code! No custom controls, just the usual MenuStrip and ToolStrip (not MainMenu and ToolBar!) controls. I don't know if I can change this since that is simply the size of a MenuStrip. ![]() The blue selection rectangles for example and the image margins. The arrow after a nested submenu is still white, should be black. Here is a screenshot, with a shot of the VS2008 IDE menu for comparison:ġ. I have just finished creating my first ever custom ToolStripRenderer, and I managed to create one that looks very similar to the VisualStudio 2008 IDE.
0 Comments
Leave a Reply. |