Topic: Color, Size and Style of Police

Hello Dimitri

When I want to change caracteristics of a text in an EditBox by the way of Object Inspector, there are no changes.
But in a previous post, you said it was  a bug.

Well, I said : 'Let's pass behind et let's use a script ' (this is my script) :

procedure Affichage_Edit2_OnChange (Sender: string);
Var s : String;
begin
   s := Affichage.Edit2.Text;
   s := UpperCase(s);
   Affichage.Edit2.Font.Style := fsBold;
   Affichage.Edit2.Font.Color := $00000033;

The first instruction  works fine (UpperCase).
The two last have no effect on the text.

I'm using VDB 1.42

Any explication about this ?

Thanks for your help.

Sincere Thanks

Jean B

Re: Color, Size and Style of Police

Hello,


In current version you can't change font color in Object Inspector and in scipt. In the moment i can't find way to solve this.


But you can change background color in Object Inspector using property BgColor
or script:
Form1.Edit1.Color := $00DDEEFF;

Dmitry.