Show a popup menu and return the number of the item selected. The item number is the index of the StrArray selected minus LBound(StrArray). The value -1 is returned in no menu item is selected.
PopupStyle
| Value
| Effect
|
vbPopupLeftTopAlign
| 0
| Align menu left edge at XPos and top at YPos. (default)
|
vbPopupUseLeftButton
| 1
| User can select menu choices with the left mouse button only.
|
vbPopupUseRightButton
| 2
| User can select menu choices with the left or right mouse button
|
vbPopupRightAlign
| 4
| Align menu with right edge at the XPos.
|
vbPopupCenterAlign
| 8
| Align menu center at the XPos.
|
vbPopupVCenterAlign
| 16
| Align menu center at the YPos.
|
vbPopupBottomAlign
| 32
| Align menu bottom at the YPos.
|