Download Now

    Reference TMemoRow

    Declared in Codebot.Render.Widgets.pas on line 578

    TMemo is a multiple line text box. It has the keyboard, mouse, and clipboard features of TEdit, and adds Up, Down, Page Up, and Page Down, which select when used with Shift. Control with Home and End moves to the ends of the text.
    Lines holds the text as a list of strings. When WordWrap is True lines too long to fit continue on the next row. When ScrollBars is True the mouse wheel scrolls the text, and a scroll bar is shown for each direction in which the text does not fit. Scroll bars are drawn by the theme.
    Positions are byte offsets into the text with lines separated by #10.
      TMemoRow = record
      public
        { The offset of the first character and the number of bytes in the row }
        Start: Integer;
        Length: Integer;
        { True when the row ends a line, False when it wraps onto the next row }
        Hard: Boolean;
        Width: Float;
      end;

    See also

    Float in Codebot.System.pas