Sign in Join
FPDoc Onlineexperiment

BidiAdjustButtonLayout function

In unit Buttons

Adjusts the specified button layout for use in bi-directional rendering.

Declaration

pascal
function BidiAdjustButtonLayout(IsRightToLeft: Boolean; 
 Layout: TButtonLayout): TButtonLayout

Description

Adjusts the layout for button glyphs to reflect the settings in IsRightToLeft. Uses an implementation constant to get the TButtonLayout value needed for the setting in IsRightLeft.

In general, when IsRightToLeft is True the value in Layout is reversed and used as the return value. blGlyphLeft becomes blGlyphRight, blGlyphTop becomes blGlyphBottom, etc.

When IsRightToLeft is False, the value in Layout is used.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.