masonwheeler
01-08-2007, 07:43 PM
Is there any way to make a control that looks like a TEdit (one-line textbox) on screen, but can only display data, not receive keyboard focus? Setting the ReadOnly property isn't enough; that still allows you to select the text. What I'm looking for is basically a label that looks exactly like a TEdit.
(The reason for this is that the edit box displays modifiable data that can be edited, but only by changing a value elsewhere; editing it directly would cause problems, and allowing it to receive focus while not being editable would cause confusion. Better to just make it non-editable, but still look like a TEdit to make its nature as a box that holds modifiable data clear.)
Mason
(The reason for this is that the edit box displays modifiable data that can be edited, but only by changing a value elsewhere; editing it directly would cause problems, and allowing it to receive focus while not being editable would cause confusion. Better to just make it non-editable, but still look like a TEdit to make its nature as a box that holds modifiable data clear.)
Mason