MaxValue: Double;
The MaxValue property determines the maximum value that can be set in the editor.
If MaxValue = MinValue = 0, maximum value is limited by the maximum value available for the Double data type.
Executing the example requires a form, a button named Button1 on it and the Ribbon component named Ribbon1. A tab and a panel are created on the ribbon of the Ribbon1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
RPanel: IRibbonPanel;
RFEdit: IRibbonFloatEdit;
Begin
RPanel := Ribbon1.ActiveCategory.Panels.Item(0);
RFEdit := New RibbonFloatEdit.Create;
RPanel.Elements.Add(RFEdit);
RFEdit.MinValue := -100;
RFEdit.MaxValue := 100;
RFEdit.Precision := 2;
RFEdit.Value := 50;
End Sub Button1OnClick;
Clicking the button creates an integer editor on the ribbon panel. Base parameters are set up for the editor.
See also: