Make Eto Color Picker Without Dropdown Menu?

Hi All,

I’m in week 1 of learning Eto, having great fun/results so far. This might be obvious, but can one make this color picker (i.e. you click the color swatch and there is no drop down menu on the right) in Eto?

I’ve looked up the documentation and inspected the class properties:

dir(ColorPicker)

[‘AllowAlpha’, ‘AllowDrop’, ‘ApplyStyles’, ‘AttachNative’, ‘BackgroundColor’, ‘Bindings’, ‘Bounds’, ‘Callback’, ‘CaptureMouse’, ‘ColorChangedEvent’, ‘ContextMenu’, ‘ControlObject’, ‘Cursor’, ‘DataContext’, ‘DataContextChanged’, ‘Detach’, ‘DetachNative’, ‘Dispose’, ‘DoDragDrop’, ‘DragDrop’, ‘DragDropEvent’, ‘DragEnd’, ‘DragEndEvent’, ‘DragEnter’, ‘DragEnterEvent’, ‘DragLeave’, ‘DragLeaveEvent’, ‘DragOver’, ‘DragOverEvent’, ‘Enabled’, ‘EnabledChanged’, ‘EnabledChangedEvent’, ‘Equals’, ‘FindParent’, ‘Focus’, ‘Gestures’, ‘GetCallback’, ‘GetHashCode’, ‘GetPreferredSize’, ‘GetType’, ‘GotFocus’, ‘GotFocusEvent’, ‘Handler’, ‘HasFocus’, ‘Height’, ‘ICallback’, ‘ID’, ‘IHandler’, ‘Initialize’, ‘Invalidate’, ‘IsAttached’, ‘IsDataContextChanging’, ‘IsDisposed’, ‘IsMouseCaptured’, ‘IsSuspended’, ‘IsVisualControl’, ‘KeyDown’, ‘KeyDownEvent’, ‘KeyUp’, ‘KeyUpEvent’, ‘Load’, ‘LoadComplete’, ‘Loaded’, ‘Location’, ‘LogicalParent’, ‘LostFocus’, ‘LostFocusEvent’, ‘MapPlatformCommand’, ‘MemberwiseClone’, ‘MouseDoubleClick’, ‘MouseDoubleClickEvent’, ‘MouseDown’, ‘MouseDownEvent’, ‘MouseEnter’, ‘MouseEnterEvent’, ‘MouseLeave’, ‘MouseLeaveEvent’, ‘MouseMove’, ‘MouseMoveEvent’, ‘MouseUp’, ‘MouseUpEvent’, ‘MouseWheel’, ‘MouseWheelEvent’, ‘NativeHandle’, ‘OnApplyCascadingStyles’, ‘OnColorChanged’, ‘OnDataContextChanged’, ‘OnDragDrop’, ‘OnDragEnd’, ‘OnDragEnter’, ‘OnDragLeave’, ‘OnDragOver’, ‘OnEnabledChanged’, ‘OnGotFocus’, ‘OnKeyDown’, ‘OnKeyUp’, ‘OnLoad’, ‘OnLoadComplete’, ‘OnLostFocus’, ‘OnMouseDoubleClick’, ‘OnMouseDown’, ‘OnMouseEnter’, ‘OnMouseLeave’, ‘OnMouseMove’, ‘OnMouseUp’, ‘OnMouseWheel’, ‘OnPreLoad’, ‘OnShown’, ‘OnSizeChanged’, ‘OnStyleChanged’, ‘OnTextInput’, ‘OnThemeChanged’, ‘OnUnLoad’, ‘Parent’, ‘ParentWindow’, ‘Parents’, ‘Platform’, ‘PointFromScreen’, ‘PointToScreen’, ‘PreLoad’, ‘Print’, ‘Properties’, ‘RectangleFromScreen’, ‘RectangleToScreen’, ‘ReferenceEquals’, ‘RegisterEvent’, ‘ReleaseMouseCapture’, ‘ResumeLayout’, ‘Shown’, ‘ShownEvent’, ‘Size’, ‘SizeChanged’, ‘SizeChangedEvent’, ‘Style’, ‘StyleChanged’, ‘SupportedPlatformCommands’, ‘SupportsAllowAlpha’, ‘SuspendLayout’, ‘TabIndex’, ‘TabStop’, ‘Tag’, ‘TextInput’, ‘TextInputEvent’, ‘ThemeChanged’, ‘ThemeChangedEvent’, ‘ToString’, ‘ToolTip’, ‘TriggerStyleChanged’, ‘UnLoad’, ‘Unbind’, ‘UpdateBindings’, ‘UpdateLayout’, ‘Value’, ‘ValueBinding’, ‘ValueChanged’, ‘Visible’, ‘VisualControls’, ‘VisualParent’, ‘Width’, ‘class’, ‘delattr’, ‘doc’, ‘enter’, ‘exit’, ‘format’, ‘getattribute’, ‘hash’, ‘init’, ‘new’, ‘reduce’, ‘reduce_ex’, ‘repr’, ‘setattr’, ‘sizeof’, ‘str’, ‘subclasshook’]

But have not found a solution. For reference, this is what I can currently get:

Thanks and best,

Anders

the one you are pointing out is a custom (Rhino internal) color picker.

Cheers @Gijs. Assuming it is written in Eto, maybe this internal Rhino color picker ought be used when Rhino.UI.EtoExtensions.UseRhinoStyle() is applied (left = off, right = on):

Thanks @AndersDeleuran for the request,

RH-98792 Make the Rhino color picker style part of UseRhinoStyle