[Lazarus] Proposal for CreateMessageDialog() function
bartjunk64 at gmail.com
Mon Nov 3 21:28:26 CET 2008
> For example, if TApplication.BidiMode (I have added support for it
> with the help of Paul) is set to bdRightToLeft, should every TControl
> and TMenu base compoents should be automatically be aligned to right
> or the developer must choose the direction regardless of
> TApplication.BidiMode ?
On this specific point I would recommend as part of the BiDi
implementation expanding the choices for basic alignment to include a
new value that means "automatically decide based on bd setting". Then,
the logic would be to look at the BiDiMode to determine the alignment.
This way all existing code should work as it always has. If a developer
wanted to adapt his program to take BiDi into account he could just set
the BiDiMode and change all the alignments that should respond to the
new alignment value. Any controls that should not adapt can continue to
set their own alignment independent of the BiDi mode.
More information about the Lazarus