IRibbonEdit.InnerWidth

Fore Syntax

InnerWidth: Integer;

Fore.NET Syntax

InnerWidth: Integer;

Description

The InnerWidth property determines width of the control element.

Comments

The width is calculated automatically for the control elements taking into account the number and parameters of neighboring control elements. This property allows to set a fixed width for the current control. The width value is defined in pixels, by default the text editor width is set to 100 pixels.

Example

Executing the example requires a form, a button named Button1 positioned 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;
    REdit: IRibbonEdit;
Begin
    RPanel := Ribbon1.ActiveCategory.Panels.Item(0);
    REdit := New RibbonEdit.Create;
    RPanel.Elements.Add(REdit);
    REdit.ImageIndex := 0;
    REdit.InnerWidth := 170;
    REdit.SearchMode := True;
    REdit.SearchPrompt := "Identifiers prefix";
    REdit.TextAlign := TextAlignment.Center;
End Sub Button1OnClick;

On clicking the button a text editor is created on the ribbon panel. Basic parameters are defined for the editor.

See also:

IRibbonEdit