Hi,
I need to see the text in a Text Entry Button as I type it. I need to type in a paragraph. I'm unable to see the text and the cursor as I type in the Text Entry form when the text reaches the width of the button.
Is there any way to see the text and the cursor in case of long paragraphs?
Thanx in advance.
I had a similar problem and came up with a small workaround. Here's the relevant code (all from createView):
CODE
this.controls.kbTextbox=new KONtx.element.Text({
label: '',
styles: {
background:'#FFFFFF',
border:'1px solid #000000',
color: "#000000",
fontSize: KONtx.utility.scale(14),
hOffset:5,
vOffset:this.controls.kbprompt_lbl.outerHeight+5,
width:200,
zOrder:2,
},
}).appendTo(this.controls.keyboard_con);
this.controls.kbSubmit_btn = new KONtx.element.Button({
guid: "kbSubmit_btn",
events: {
onSelect: function(event) {
self.registerMessageCenterListenerCallback(self.drawSearchResults );
KONtx.utility.LoadingOverlay.on();
fetchSearchResults(self.controls.kbTextbox.text);
self.hideKeyboard();
self.showResults();
}
},
styles: {
hOffset:this.controls.kbTextbox.outerWidth+5,
vOffset:this.controls.kbTextbox.vOffset,
zOrder:2,
},
}).appendTo(this.controls.keyboard_con);
this.controls.kbSubmit_img = new KONtx.element.Image({
src : 'Images/Yahoo_Interface_Icons/addcity_btn.png',
styles:{
height:KONtx.utility.scale(20),
width:KONtx.utility.scale(20),
}
}).appendTo(this.controls.kbSubmit_btn);
this.keyboard = new KONtx.control.Keyboard({
controlSize: "standard",
layout : 'alphanumeric',
styles : {
hAlign:'center',
vOffset:this.controls.kbTextbox.outerHeight+10,
zOrder : 2
},
events : {
onValueChanged : function(event) {
var chars = event.payload.value;
self.controls.kbTextbox.setText(chars);
}
}
}).appendTo(this.controls.keyboard_con);