Download CIMPLICITY BCE Language Reference Manual
Transcript
This second example shows how to use a picture from a picture library. Sub Main() Begin Dialog LogoDialogTemplate 16,31,288,76,"Introduction",,"pictures.dll" OKButton 240,8,40,14 PictureButton 8,4,224,64,"CompanyLogo",10,.Logo End Dialog Dim LogoDialog As LogoDialogTemplate Dialog LogoDialog End Sub See Also CancelButton (statement); CheckBox (statement); ComboBox (statement); Dialog (function); Dialog (statement); DropListBox (statement); GroupBox (statement); ListBox (statement); OKButton (statement); OptionButton (statement); OptionGroup (statement); PushButton (statement); Text (statement); TextBox (statement); Begin Dialog (statement), Picture (statement), DlgSetPicture (statement). Notes: Picture controls can contain either a bitmap or a WMF (Windows metafile). When extracting images from a picture library, the Basic Control Engine assumes that the resource type for metafiles is 256. Picture libraries are implemented as DLLs on the Win32 platforms. Picture controls can contain either bitmaps or Windows metafiles. Picture libraries under OS/2 are implemented as resources within DLLs. The PictureName$ parameter corresponds to the name of one of these resources as it appears within the DLL. Picture controls on the Macintosh can contain only PICT images. These are contained in files of type PICT. Picture libraries on the Macintosh are files with collections of named PICT resources. The PictureName$ parameter corresponds to the name of one the resources as it appears within the file. Under DOS, PictureButton statements within dialog box templates are ignored at runtime. GFK-1283G P 17-5