Re: [Lazarus] BidiMode improvments patch

2009-06-15 Thread Paul Ishenin
Zaher Dirkey wrote: Hi, thanks for the replay @Paul If it is just TMenu i have no problem, but there are a another components (TTrayIcon, ...), and some components i have plan to create it in my job. It is not a problem to create this code for TMenu, TTrayIcon and TApplication. As I remember

Re: [Lazarus] BidiMode improvments patch

2009-06-15 Thread Zaher Dirkey
Ok Paul i will keep the current style of code. Thanks. -- Zaher Dirkey -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] BidiMode improvments patch

2009-06-14 Thread Hans-Peter Diettrich
Zaher Dirkey schrieb: Hi Paul, Another idea Make TMainMenu and most Components which inherited form TComponent take their BidiMode from the Owner, i mean MainMenu be right to left depend on BidiMode of the Form, and then i will remove the BidiMode/ParentBidiMode properties from this components.

Re: [Lazarus] BidiMode improvments patch

2009-06-14 Thread Paul Ishenin
Zaher Dirkey wrote: Make TMainMenu and most Components which inherited form TComponent take their BidiMode from the Owner, i mean MainMenu be right to left depend on BidiMode of the Form, and then i will remove the BidiMode/ParentBidiMode properties from this components. In fact who need to

Re: [Lazarus] BidiMode improvments patch

2009-05-26 Thread Zaher Dirkey
Paul Ishenin wrote: I would leave class hierarchi as is. It is not a big problem to copy property BidiMode to the TMenu, TTrayIcon or anything else. Not just copy the code. When TForm or TApplication has BidiMode changed it pass to owned components to change the BidiMode ---

[Lazarus] BidiMode improvments patch

2009-05-25 Thread Zaher Dirkey
First, I know i touch a sensitive code but we can discuss about it. 1 - Added TVisualCompont it is between TLCLComponent and and TControl, it has a properties and methods that have visual effect but still it unvisible at form. i will use it for BidiMode and ParentBidimode TMenu, TPopupMenu,

Re: [Lazarus] BidiMode improvments patch

2009-05-25 Thread Paul Ishenin
Zaher Dirkey wrote: First, I know i touch a sensitive code but we can discuss about it. 1 - Added TVisualCompont it is between TLCLComponent and and TControl, it has a properties and methods that have visual effect but still it unvisible at form. i will use it for BidiMode and ParentBidimode