Look at the function _TXT_display(bReturnText) in _ScriptLibrary/TEXTBOX.ASP and all will become clear!
The textbox is rendered in a number of formats depending on the Browser and the Properties. For example, a 'disabled' textbox can be rendered as an INPUT in IE, but must be mimicked using a TABLE for Netscape.
I have adjusted this function to include a stylesheet class name to the output HTML. (see below).
If you need to add an attribute to the textbox (alignment) then you may add attributes to the _TXT__Prototype() function. But please note the following:
1. You may set these attributes on an ASP page in the thisPage_onenter
2. VI will not 'pop-up' properties/methods that you create. So document these carefully!
3. So the textbox 'remembers' the settings on each round trip, you may want to add any new properties to the _TXT__PreserveState / _TXT__RestoreState methods. Alternatively, ensure you set the values in the thisPage_onenter function.
Good Luck!
To add a stylesheet name, adjust the display method:
if (this._nStyle == TXT_PASSWORD)
strHTML = '<' + 'INPUT type="password" id="'
else
strHTML = '<' + 'INPUT type="text" id="'
strHTML += this.id + '" name="' + this.name + '"';
...etc...
strHTML += ' class="clsTextBox"'; //to allow link to style sheet
...etc...