Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: gbravo on May 14, 2008, 07:44:52 PM
-
How I can to include a picture or icon in dialog box.?
I need to put some identification symbols within dialog box (like stop, question or exclamation used in Msgbox but with other picture).
Thanks,
German
-
From the VB Cypress Enable Doc.
DlgSetPicture
DlgSetPicture Identifier, PictureName
The DlgSetPicture function is used to set the graphic displayed by a picture control in a dialog.
The Identifier is a string or numeric representing the dialog box. The PictureName is a string that identifies the picture to be displayed.
scott
-
Thanks Scott,
Solved
I found this example in Cypress language reference and works OK.
Only attention, the picture must be .BMP.
Sub DrawBitmapSample
Dim MyList()
Begin Dialog BitmapDlg 60, 60, 290, 220, "Enable bitmap sample", .DlgFunc
ListBox 10, 10, 80, 180, MyList(), .List1, 2
Picture 100, 10, 180, 180, "Forest.bmp", 0, .Picture1
CancelButton 42, 198, 40, 12
OKButton 90, 198, 40, 12
End Dialog
Dim frame As BitmapDlg
' Show the bitmap dialog
Dialog frame
End Sub
German