Hello, I have a question:
I would like to display a button that not changes color when it has focus.
I created a button with an image, using events, when the button has focus i change the image. But everything looks blue when it has focus and is ugly. Even if it does not have focus you can see a white bar at the top of the button.
Greetings and thanks.
this is my code:
CODE
resp4 = new KONtx.control.Button({
label: "D",
content: new KONtx.element.Image({
src: "Imagenes/butPreg.png"
}),
styles: {
width: 337,
height: 74,
vOffset: 390,
hOffset: 442
},
events: {
onSelect: function(event) {
model.selecSol(4);
},
onFocus: function(event) {
this.content.src = "Imag/butPregSel.png";
},
onBlur: function(event) {
this.content.src = "Imag/butPreg.png";
}
}
}).appendTo(this);