I am using the mscomm control to read the serial port. The
mscomm.oncomm event has the following code:
thisform.txtmy3.setvalue(thisform.txtmy3.getvalue()+this.input)
this just appends any new data (this.input) to the value of the textbox.
However, the value is being displayed partially off the screen to the right.
my textbox is a whopping 463 pixels wide. And the string in question is only 22 characters wide, including spaces.
LEN(ALLTRIM(thisform.txtmy3.getvalue()))=22
It's not really right justified, since most of the string is getting cut off, visually. But I would like it to be left justified.
The only custom code I have is in the gotfocus & lostfocus, otherwise it's a standard codemine textbox, my custom code:
this.zinitalbackcolor=this.BackColor
IF !thisform.lWriteLock AND this.Enabled AND this.zSetBackColor
this.BackColor = RGB(255,255,0)
ENDIF