property Menu.Width as Long
Retrieves or sets a value that indicates the width of the menu.

 TypeDescription 
   Long A long expression that indicates the width of the menu like follows: If it is greater than 0, the value indicates the maximum width of the menu, else if it is less than 0, the absolute value indicates the exact width of the menu.  
By default, the Width property is 0. If the Width property is 0, it has no effect. Use the Width property to truncate long strings. Use the Width property to specify the exact width of the menu no matter what's the length for the items. Use the Add method to add new items to the menu. Use the Visible property to specify whether an item is visible or hidden.

The following screen shot shows the menu when the Width property is 0 ( zero ):

The following screen shot shows the menu when the Width property is 128 ( positive value ):

The following screen shot shows the menu when the Width property is -256 ( negative value ):

 


Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.