IRibbonEdit.InnerWidth

Fore Syntax

InnerWidth: Integer;

Fore.NET Syntax

InnerWidth: Integer;

Description

The InnerWidth property determines width of the control.

Comments

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

Example

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;
    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;

Clicking the button creates a text editor on the ribbon panel. Base parameters are set up for the editor.

See also:

IRibbonEdit