Home

Anomaly of Field display

Updated on Oct,18, 2001
  • Sorry if the title is incorrect, but let 's see how my problem is and how I solved it.

    I have three or four Edit fields. Chaning their fonts will make these fields to repositioned because each line has changed its dimension. But the anomaly is if the focus is not at the first field, then the focused field will not be shifted. This makes other fields to be shifted to a new position relative to the focused field. This can cause the first field to be shifted up and down out of its first top position.

    To fix this, right before changing fonts, I put the command TopOfDisplay(), then change fonts, then put the focus back to the current field.

  • I also met the case that changing the buffer of multiple Edit fields so that some Edit fields changes from one line to multiple lines and vice versa can cause field shifted incorrectly too. To solve this, I remove all field then add them again.
  • Home