CustomTitleBar

DrawablePanelContainerControlBindableWidgetWidgetReferences
public class CustomTitleBar : Drawable
A control which acts as a custom titlebar on certain Grasshopper windows.

Constructors

CustomTitleBar

#
public CustomTitleBar(string title)
title (string)

Fields

BarHeight

#
public const int BarHeight = 22
Height of the custom title bar.

EdgeWidth

#
public const int EdgeWidth = 1
Edge width around the contents of the custom title bar.

Properties

ShowCloseButton

#
public bool ShowCloseButton { get; set; }

ShowCopyButton

#
public bool ShowCopyButton { get; set; }

ShowInBold

#
public bool ShowInBold { get; set; }

ShowPhotoButton

#
public bool ShowPhotoButton { get; set; }

TitleText

#
public string TitleText { get; }

Methods

ScreenShotWindow

#
public Bitmap ScreenShotWindow()
Screen shot the portion of the window this title bar is controlling.

Events

CopyInvoked

#
public event EventHandler<CustomTitleBarEventArgs> CopyInvoked
Event is raised whenever the user clicks on the Copy button.

PhotoStarting

#
public event EventHandler<CustomTitleBarEventArgs> PhotoStarting
Event is raised whenever the screen cap operation is about to start. If you wish to make certain changes to the control before this happens, now's the time.