popup menu default item

I have a popup with 5 buttons on it...how and where do i define the 1st button to be active when it pops up



Answer this question

popup menu default item

  • Davids Learning

    thats what I thought...must be my emulator..Thanx


  • Jouan

    Just add> state:focused="true"
  • edwinzzz

    A note regarding this suggestion: setting state:focused="true" in the base XML isn't guaranteed to override the existing focus when the new popup is displayed. In order to assure correct focus management, don't set state:focused in the base XML. Instead, use <set state:focused="true"/> in a <cue> that is triggered by the appearance of your popup (if you rely on markup for focus management) or use the Animated Property API:

    document.yourPopup.state.focused="true";

    document.yourPopup.state.unsetProperty("focused");



  • popup menu default item