VLMenuPlus Reference

Read/Write Property BackgroundPicture

See Also See Also Applies To Applies To

Returns or sets a graphic to be used as background for a popup menu. Specified picture will be tiled on the popup menu.

 

Syntax

object.BackgroundPicture [= picture]

 

The BackgroundPicture property syntax has these parts:

Part Description
object An object expression that evaluates to VLMenuPlus
picture A string expression specifying a file containing a graphic, as described in Settings.

Settings

The settings for BackgroundPicture are:

Setting Description
(None) (Default) Draws the popup menu background as per the MenuBackground and BitmapBackground color settings. Menu item fore ground is drawn as per the setting of TextColor and DisabledTextColor .
(Bitmap, icon) Specifies a graphic. You can load the graphic from the Properties window at design time. At run time, you can also set this property using the LoadResPicture function from a resource file.

In this case, the MenuBackground and BitmapBackground settings will be ignored.

Also, the TextColor and DisabledTextColor setting are ignored and the menu text is drawn in inverted colors to ensure text readability on background pictures.

Remarks

At design time, you can transfer a graphic with the Clipboard using the Copy, Cut, and Paste commands on the Edit menu.