Dialogs
Methods
Destroy the splash screen if it is being displayed.
public static void KillSplash()
Displays Rhino's check list box.
Returns: An array or boolean values determining if the user checked the corresponding box. On error, null.
Displays the standard modal color picker dialog for floating point colors.
public static bool ShowColorDialog()
parent,
Parent window for this dialog, should always pass this if calling from a form or user control.
ref Color4f
color,
The initial color to set the picker to and also accepts the user's choice.
allowAlpha
Specifies if the color picker should allow changes to the alpha channel or not.
obsoleteUse ShowColorDialog(object parent, ref Color4f color, bool allowAlpha)
Returns: true if a color was picked, false if the user canceled the picker dialog.
Displays the standard modal color picker dialog for floating point colors.
public static bool ShowColorDialog()
parent,
Parent window for this dialog, should always pass this if calling from a form or user control.
ref Color4f
color,
The initial color to set the picker to and also accepts the user's choice.
allowAlpha,
Specifies if the color picker should allow changes to the alpha channel or not.
namedColorList,
If not null and contains at least one named color this list will replace the standard Rhino Color list displayed by the rhino color dialog.
colorCallback
May be optionally passed to ShowColorDialog and will get called when the color value changes in the color dialog.
Returns: true if a color was picked, false if the user canceled the picker dialog.
Displays the standard modal color picker dialog for floating point colors.
public static bool ShowColorDialog()
parent,
Parent window for this dialog, should always pass this if calling from a form or user control.
ref Color4f
color,
The initial color to set the picker to and also accepts the user's choice.
allowAlpha,
Specifies if the color picker should allow changes to the alpha channel or not.
colorCallback
May be optionally passed to ShowColorDialog and will get called when the color value changes in the color dialog.
Returns: true if a color was picked, false if the user canceled the picker dialog.
Displays the standard modal color picker dialog for floating point colors.
public static bool ShowColorDialog()
parent,
Parent window for this dialog, should always pass this if calling from a form or user control.
ref Color4f
color,
The initial color to set the picker to and also accepts the user's choice.
allowAlpha
Specifies if the color picker should allow changes to the alpha channel or not.
Returns: true if a color was picked, false if the user canceled the picker dialog.
Display Rhino's color selection dialog.
public static bool ShowColorDialog()
ref Color
color,
[in/out] Default color for dialog, and will receive new color if function returns true.
includeButtonColors,
Display button face and text options at top of named color list.
dialogTitle,
The title of the dialog.
namedColorList
If not null and contains one or more named colors the Rhino color dialog named color list will be replaces with this list.
Returns: true if the color changed. false if the color has not changed or the user pressed cancel.
Display Rhino's color selection dialog.
Returns: true if the color changed. false if the color has not changed or the user pressed cancel.
Display Rhino's color selection dialog.
Returns: true if the color changed. false if the color has not changed or the user pressed cancel.
Displays the standard modal color picker dialog for floating point colors.
Returns: true if a color was picked, false if the user canceled the picker dialog.
Displays Rhino's combo list box.
Returns:
selected item.
null if the user canceled.
Displays Rhino's string edit box.
Returns: true of OK was clicked, false otherwise.
Show a modal dialog to edit the material in the layer specified in layerIndices.
public static bool ShowLayerMaterialDialog()
doc,
Rhino document
layerIndices
true if the new layer button will be visible.
Returns: True if the dialog was closed with the OK button. False if the dialog was closed with escape.
Displays Rhino's LineType list box.
Returns: The id of the selected item if successful, null on cancel.
Displays Rhino's list box.
Returns: The selected item if successful, null on cancel.
Displays Rhino's list box.
Returns: The selected item if successful, null on cancel.
Same as System.Windows.Forms.MessageBox.Show but using a message box tailored to Rhino.
public static ShowMessageResult ShowMessage()
parent,
Parent window
message,
Message box text content.
title,
Message box title text.
buttons,
Which buttons to display in the message box.
icon,
Which icon to display in the message box.
defaultButton,
Which button is the default button.
options,
Additional message box options.
mode
The modality of the message box.
Returns: One of the ShowMessageBoxResult values.
Same as System.Windows.Forms.MessageBox.Show but using a message box tailored to Rhino.
public static ShowMessageResult ShowMessage()
message,
Message box text content.
title,
Message box title text.
buttons,
Which buttons to display in the message box.
icon
Which icon to display in the message box.
Returns: One of the ShowMessageBoxResult values.
Same as System.Windows.Forms.MessageBox.Show but using a message box tailored to Rhino.
Returns: One of the ShowMessageBoxResult values.
Same as System.Windows.Forms.MessageBox.Show but using a message box tailored to Rhino.
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public static DialogResult ShowMessageBox()
obsoleteUse ShowMessage
Same as System.Windows.Forms.MessageBox.Show but using a message box tailored to Rhino.
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public static DialogResult ShowMessageBox()
obsoleteUse ShowMessage
Displays Rhino's multiple selection list box.
Returns: The selected items if successful, null on cancel.
Displays Rhino's number edit box.
Returns: true of OK was clicked, false otherwise.
Displays Rhino's number edit box.
Returns: true of OK was clicked, false otherwise.
Shows the print widths dialogs
Returns: The selected print width
Shows the print widths dialogs
Returns: The selected print width
Displays Rhino's property list box.
Returns: A list of property values if successful, null otherwise.
Displays Rhino's property list box.
Returns: A list of property values if successful, null otherwise.
Displays Rhino's single layer selection dialog.
public static bool ShowSelectLayerDialog()
ref int
layerIndex,
Initial layer for the dialog, and will receive selected layer if function returns DialogResult.OK.
dialogTitle,
The dialog title.
showNewLayerButton,
true if the new layer button will be visible.
showSetCurrentButton,
true if the set current button will be visible.
ref bool
initialSetCurrentState
true if the current state will be initially set.
Returns: True if the dialog was closed with the OK button. False if the dialog was closed with escape.
Displays Rhino's single linetype selection dialog.
Returns: True if the dialog was closed with the OK button. False if the dialog was closed with escape.
Returns: True if the dialog was closed with the OK button. False if the dialog was closed with escape.
Show a windows form that is modal in the sense that this function does not return until the form is closed, but also allows for interaction with other elements of the Rhino user interface.
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public static DialogResult ShowSemiModal()
Returns: One of the System.Windows.Forms.DialogResult values.
Show the modal sun dialog.
Returns: Returns true if the user clicked OK, or false if the user canceled.