WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

PopupBoxObject

This object is available to unprivileged JavaScript. It implements the following interfaces:

Properties

boolean autoPosition

Allow the popup to automatically position itself.


Methods

void enableKeyboardNavigator ( boolean enableKeyboardNavigator ) void enableRollup ( boolean enableRollup ) void hidePopup ( ) void moveTo ( PRInt32 left , PRInt32 top ) void showPopup ( Element srcContent , Element popupContent , PRInt32 xpos , PRInt32 ypos , PRUnichar* popupType , PRUnichar* anchorAlignment , PRUnichar* popupAlignment ) void sizeTo ( PRInt32 width , PRInt32 height )

void enableKeyboardNavigator ( boolean enableKeyboardNavigator )

Allow the popup to eat all key events

Arguments:
enableKeyboardNavigator

void enableRollup ( boolean enableRollup )

Enable automatic popup dismissal

Arguments:
enableRollup

void hidePopup ( )


void moveTo ( PRInt32 left , PRInt32 top )

Move the popup to a point on screen

Arguments:
left
top

void showPopup ( Element srcContent , Element popupContent , PRInt32 xpos , PRInt32 ypos , PRUnichar* popupType , PRUnichar* anchorAlignment , PRUnichar* popupAlignment )

Arguments:
srcContent
popupContent
xpos
ypos
popupType
anchorAlignment
popupAlignment

void sizeTo ( PRInt32 width , PRInt32 height )

Size the popup to the given dimensions

Arguments:
width
height

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com