Skip to content

MaxPopupWidth Property

Description

The MaxPopupWidth property specifies the maximum width of popup menus.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property MaxPopupWidth() As Double

Remarks

The MaxPopupWidth property specifies the maximum width that a popup menu can occupy. It does not specify the popup width.

MaxPopupWidth represents the percentage of the total screen width that a popup can occupy. The valid range is 0.0 - 1.0, with 0.0 meaning 0 percent of total screen width and 1.0 meaning 100 percent of total screen width.

By default, MaxPopupWidth = 0.3.

Example

This sample illustrates how to specify the maximum width of the screen that a popup menu can occupy.

' Popup menu can occupy up to 30% of total screen width  
CommandBars.Options.MaxPopupWidth = 0.3  

' Popup menu can occupy up to 50% of total screen width  
CommandBars.Options.MaxPopupWidth = 0.5  

' Popup menu can occupy up to 100% of total screen width  
CommandBars.Options.MaxPopupWidth = 1.0  

See Also

CommandBarsOptions Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.