TextView text.color

  1. 4 months ago

    Joel_Eisenstat

    Nov 18 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 .
    DidBeginEditing;
    TextView1.animate(1.0, 0.8, '', {
    TextView1.backgroundColor = Color.yellow
    TextView1.frame.y = 250;
    TextView1.textColor = Color.red;
    }, null)

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

  2. andrea

    Nov 19 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

    Dec 2 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
    PostgreSQL1.connect();
    var sql = 'SELECT * FROM "Chart_Odont_Repository_Note" WHERE "id" = \(cell.identifier)';
    var rs = PostgreSQL1.select(sql);
    Console.write(PostgreSQL1.errorMessage);
    Procedure.noteText.text = Procedure.noteText.text + "\n" + rs.note;
    Procedure.View2.hidden = true;
    Keyboard.hide();

    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!