Jump to content

Recommended Posts

Posted

Change background color of the component when it gets focus.

FocusColor for at least UniDBEdit, UniEdit, UniDBmemo, UniMemo, UniDBnumberedit, uninumberedit, UniDBdatetimepicker. I dont know if this can be implemented to be executed on clientside.

Posted

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;

Posted

yes, thank you.  But it is performed on server side. It would be better if color could be change on the client side. FM have said that UNIGUI is based on css so maybe this is not posible. I dont know.

Posted
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.
×
×
  • Create New...