Exemplo n.º 1
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="g"></param>
		/// <param name="sbRect"></param>
		/// <param name="clipRect"></param>
		/// <param name="state"></param>
		/// <param name="part"></param>
		public static void DrawScrollBar(Graphics g, Rectangle sbRect, Rectangle clipRect,
			ScrollBarStates state, ScrollBarParts part)
		{
			if (g == null || sbRect.Width <= 0 || sbRect.Height <= 0 ||
				clipRect.Width <= 0 || clipRect.Height <= 0)
			{
				return;
			}

			ThemeFactory.DrawThemeBackground(g, "SCROLLBAR", (int) part, (int) state, sbRect, clipRect);
		}
Exemplo n.º 2
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="g"></param>
		/// <param name="sbRect"></param>
		/// <param name="state"></param>
		/// <param name="part"></param>
		public static void DrawScrollBar(Graphics g, Rectangle sbRect,
		                                 ScrollBarStates state, ScrollBarParts part)
		{
			ThemeFactory.DrawScrollBar(g, sbRect, sbRect, state, part);
		}