
Hey Julie,<br><br>What you've described is a common snag for beginners to the Connect! platform. It may be possible to do custom backgrounds in the way you've described, but I'm not failiar with that method. What I typically do is used stacked controls:<br><br>createView: function() {<br> //self reference for object level manipulation<br> self=this;<br> //The button holds the rest of the elements. NOTE that this is .element.Button and not control.Button or control.TextButton!<br> //element.button does not have any of the typical styles associated with it<br> this.controls.btn=new KONtx.element.Button({<br> events : { <br> onBlur : function(){<br> //use self to reference the object and set the src of the image accordingly.<br> self.controls.img.src='Images/btnbg.png'; <br> },<br> onFocus : function(){<br> self.controls.img.src='Images/btnbgOver.png';<br> },<br> onSelect : function(){<br> print('OOOOOOOOOOOOO');<br> }<br> },<br> styles:{<br> height:KONtx.utility.scale(88),<br> vOffset:0,<br> width:KONtx.utility.scale(97),<br> } <br> }).appendTo(this);<br> //The image is attached to the button. It will display your background<br> this.controls.img = new KONtx.element.Image({<br> src:'Images/btnbg.png'<br> }).appendTo(this.controls.btn)<br> //The label for your text box.<br> this.controls.label = new KONtx.element.Text({<br> label:'Text!!'<br> }).appendTo(this.controls.btn)<br> },<br><br>Using this "stack" of controls, you can have buttons with a custom background. Of course, if you're doing this a lot, you could make your own class based on this structure or by extending KONtx.control.TextButton<br><br><div class="quote"><div class="quotetop">QUOTE<cite>(Julie @ 29 Sep 2011 2:11 PM)</cite></div><blockquote class="quotemain">hi all -<br><br>i'm very new to this platform, and want to do some different over states for buttons (rather than the blue highlight). This is what I have tried so far:<br><br><div> button = new KONtx.control.TextButton({ <div><span class="Apple-tab-span" style="white-space:pre;"> </span>id: idName,<div><span class="Apple-tab-span" style="white-space:pre;"> </span>label: "Hello World", <div><span class="Apple-tab-span" style="white-space:pre;"> </span>styles: $merge({vOffset: 10}, Bravo.styles.main.menuButton), <div><span class="Apple-tab-span" style="white-space:pre;"> </span>textStyles: App.styles.main.menuButtonText,<div><span class="Apple-tab-span" style="white-space:pre;"> </span>events: {<div><span class="Apple-tab-span" style="white-space:pre;"> </span>onSelect: function(event) {<div> <span class="Apple-tab-span" style="white-space:pre;"> </span>KONtx.application.loadView( destinationId, data ); <div><span class="Apple-tab-span" style="white-space:pre;"> </span>},<div><span class="Apple-tab-span" style="white-space:pre;"> </span>onFocus: function(event){<div><span class="Apple-tab-span" style="white-space:pre;"> </span>this.styles = App.styles.main.menuButtonOver<div><span class="Apple-tab-span" style="white-space:pre;"> </span>}<div><span class="Apple-tab-span" style="white-space:pre;"> </span><div><span class="Apple-tab-span" style="white-space:pre;"> </span>}<div><span class="Apple-tab-span" style="white-space:pre;"> </span>}).appendTo(this); <br><br>so the style menuButtonOver has a different background image. Sadly, this isn't working. Is this possible? Thanks</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote></div>