locked
popup menu default item RRS feed

  • Question

  • 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?
    Tuesday, September 12, 2006 11:05 PM

Answers

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

    Friday, September 15, 2006 12:40 AM

All replies

  • Just add> state:focused="true"
    Wednesday, September 13, 2006 7:49 AM
  • thats what I thought...must be my emulator..Thanx
    Wednesday, September 13, 2006 1:27 PM
  • 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");

    Friday, September 15, 2006 12:40 AM