0

Display a button that not changes color when it has focus

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);

by
3 Replies
  • What interface are you doing this in sidebar or fullscreen?

    As it relates to sidebar, you application _may_ not pass QA based on the device manufacturer (OEM) approval process. Keep in mind the highlight focus color changes per OEM. VIZIO is blue, LG is red, etc.
    0
  • QUOTE (WidgetRealm @ Jul 24 2010, 07:03 PM) <{POST_SNAPBACK}>
    What interface are you doing this in sidebar or fullscreen?

    As it relates to sidebar, you application _may_ not pass QA based on the device manufacturer (OEM) approval process. Keep in mind the highlight focus color changes per OEM. VIZIO is blue, LG is red, etc.


    thank but i am development a fullscreen game. Any suggestions?

    THX
    0
  • Since you are doing a fullscreen game, I think this should be ok. I'd recommend sending an email to tvwidgets@ to get confirmation based on your design.

    -Jeremy
    0

Recent Posts

in Design / Interaction - Yahoo! TV Widgets