private void StatusStrip_Update(double time) { StatusStrip.Invalidate(); UpdateFPSLabel(this.FrameTracker.averageFramePerSecond); UpdateKeyStateLabel(this.tks); UpdateTimeLabel(time); StatusStrip.Refresh(); }
public static void SetStatusBarColor(StatusStrip statusStrip, VisualStudioStatusBarColor color) { var foreColor = Color.White; if (statusStrip.ForeColor != foreColor) { statusStrip.ForeColor = foreColor; foreach (ToolStripItem item in statusStrip.Items) { InitializeRecursive(item, foreColor); } } var col = color == VisualStudioStatusBarColor.Purple ? GetColor(0x68217A) : color == VisualStudioStatusBarColor.Cyan ? GetColor(0x007ACC) : color == VisualStudioStatusBarColor.Orange ? GetColor(0xCA5100) : color == VisualStudioStatusBarColor.DarkBlue ? GetColor(0x293955) : Color.Black; ((VisualStudio2013ColorTable)(((VisualStudio2013ToolStripRenderer)statusStrip.Renderer).ColorTable)).background = col; statusStrip.Invalidate(); }
public static void ToolStripText(ToolStripLabel toolStripLabel, ref StatusStrip SS, String text) { toolStripLabel.Text = text; SS.Invalidate(); SS.Update(); }