Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox display behavior
Message
From
13/06/2003 08:50:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Textbox display behavior
Miscellaneous
Thread ID:
00799727
Message ID:
00799727
Views:
67
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
Next
Reply
Map
View

Click here to load this message in the networking platform