Change Color of Cell in Table

BastikiBastiki Member Posts: 11
I've found nothing concerning this topic in the forum. If already answered, please forgive me ;-)

Is it possible to change the backcolor of a table's cell in a form dynamically? I've found no property or function to do this.
If not, has anyone an idea how to solve such a problem?

Comments

  • ErictPErictP Member Posts: 164
    Maybe not want you want, but it works for me.

    In the OnFormat trigger of the textbox on the form:
    CurrForm.Txtboxname.UPDATESELECTED(TRUE of FALSE);
    
    This changes the backgroundcolor, but this depends upon the Windows color scheme that the end user has chosen.

    Or if you want only change the textcolor.
    IF TRUE then
      CurrForm.Txtboxname.UPDATEFORECOLOR(255)  //color red
    ELSE
      CurrForm.Txtboxname.UPDATEFORECOLOR(0);   //color black 
    
  • BastikiBastiki Member Posts: 11
    Thanks for the answer, but is there no way to change the color to another one?
    The UpdateSelected-Method is not bad but you are restricted to use 2 colors that can differ on various clients depending on the system-settings.
  • krikikriki Member, Moderator Posts: 9,110
    Bastiki wrote:
    Thanks for the answer, but is there no way to change the color to another one?
    No, there isn't. Only the forecolour is dynamically changeable.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.