0

how to acces home button through code without using keyboard.

I have one sidebarview ,on that i have added one textbutton("exit"), i want when i click that button , we directly return to dock.Please anyone suggest me how to do that.

by
3 Replies
  • QUOTE (AMIT @ Feb 8 2010, 04:14 AM) <{POST_SNAPBACK}>
    I have one sidebarview ,on that i have added one textbutton("exit"), i want when i click that button , we directly return to dock.Please anyone suggest me how to do that.

    Try something like this:

    CODE
    this.controls.exampleBtn = new KONtx.control.TextButton({
    events : {
    onSelect : function(event) {
    KONtx.HostEventManager.send("exitToDock");
    }
    }
    });
    0
  • QUOTE (Steve @ Feb 8 2010, 04:24 AM) <{POST_SNAPBACK}>
    Try something like this:

    CODE
    this.controls.exampleBtn = new KONtx.control.TextButton({
    events : {
    onSelect : function(event) {
    KONtx.HostEventManager.send("exitToDock");
    }
    }
    });



    Great! its working, many many thanks steve, its my first post and i got d reply within 1 hour. Its Amazing.
    0
  • QUOTE (AMIT @ Feb 8 2010, 05:30 AM) <{POST_SNAPBACK}>
    Great! its working, many many thanks steve, its my first post and i got d reply within 1 hour. Its Amazing.

    No problem...but it was actually within 10 minutes :)
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets