TextView text.color

  1. last year


    18 Nov 2019 User since 2016

    There may be an issue with TextView.animation and changing the text colour.
    When animating TextView ( to rise above the keyboard) DidBeginEditing, DidEndEditing it works well when the text colour is not changed. However when the text colour is changed ( to stand out from the background ) the new text is not saved .
    TextView1.animate(1.0, 0.8, '', {
    TextView1.backgroundColor = Color.yellow
    TextView1.frame.y = 250;
    TextView1.textColor = Color.red;
    }, null)

    TextView1.animate(1.0, 0.8, '', {
    TextView1.backgroundColor = Color.black
    TextView1.frame.y = 611;
    TextView1.textColor = Color.white;
    }, null)

  2. andrea

    19 Nov 2019 Administrator User since 2016

    Hi @Joel_Eisenstat , this is a bug, it will be fixed in the next release of Creo.
    Thank you for reporting.

  3. Joel_Eisenstat

    2 Dec 2019 User since 2016

    I also have an issue with changing a TextView.text object when under animation as well . This is more involved as it is populated by a query in a view during the animation ;

    identifier = cell.identifier
    var sql = 'SELECT * FROM "Chart_Odont_Repository_Note" WHERE "id" = \(cell.identifier)';
    var rs = PostgreSQL1.select(sql);
    Procedure.noteText.text = Procedure.noteText.text + "\n" + rs.note;
    Procedure.View2.hidden = true;

    The Procedure.noteText.text appears correct but is not updated in Postgres , the original text is though. No postgres errors

or Sign Up to reply!