Picture

 

The Picture control is a simple control you use to display a bitmap.

You indicate the bitmap to display by placing the bitmap file name and, optionally, the file path in the Background Bitmap Attribute of the control.

If you supply a file path, WinBatch will check the supplied path for the bitmap file, before checking other locations. If it does not find the file or if you do not supply a path, WinBatch will search the current directory, the windows directory and the WinBatch directory for the bitmap file.

Although the control does not normally display text, you can still place text in the Text attribute. WinBatch will display the text when it cannot find the bitmap indicated in the Background attribute while loading the dialog template.

Your bitmap does not need to be the same size as the Picture control. The appropriate stretch or compress is applied to the bitmap, so that the entire image is displayed. However, if the aspect ratio of your control is significantly different from the bitmap’s aspect ratio, your image may appear distorted.

To resize the Picture control, simply click on the edge and drag with the left mouse button.

 

image\pict.gif

Control Attributes

 

Calendar

Check Box

Com Control

DateTime

Drop-down Combo Box

Edit Box

File List Box

Group Box

Item List Box

Menu Bar

Menu Item

Multiline Edit Box

Picture

Picture Button

Push Button

Radio Button

Report View

Spinner

Static Text

Variable Text

 

 

For example, the line in the script generated by the WIL Dialog Editor may look like:

 

MyDialog003=`111,084,059,046,PICTURE,"Picture_1",DEFAULT,"Picture 1",DEFAULT,3,DEFAULT,DEFAULT,DEFAULT,"C:\WINDOWS\Coffee Bean.bmp"`