Jump to content

FocusColor property for some components


albertovesx

Recommended Posts

hi,

This is not elegant, but it works, I have tested only for TunidbEdit and TuniEdit : 

 

 

On  Enter Event ;

 

 

Procedure TForm1i.EFieldEnter(Sender: TObject);
 
begin
      TunidbEdit(Sender).Color :=  ClMoneyGreen ;
end;

 

On Exit Event : 

 

 

procedure TFForm1.EFieldExit(Sender: TObject);
var msg : String ;
 
begin
      TunidbEdit(Sender).Color :=  Clwindow ;

 

end;

Link to comment
Share on other sites

I'm sorry, if it says FM, will be corrected.

 

I do not know much about Java and CSS, but if you find a way to store this data, for example on a MySQL table, and create a function that allows the client side to customize these parameters (focuscolor etc. Etc) and loads these parameters "On Create Form Event "IT WORKS.

 

P.S. already tested.
Link to comment
Share on other sites

×
×
  • Create New...