Hello Guest it is April 24, 2024, 02:58:29 PM

Author Topic: Picture in Dialog Box  (Read 4134 times)

0 Members and 1 Guest are viewing this topic.

Picture in Dialog Box
« 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

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Picture in Dialog Box
« Reply #1 on: May 15, 2008, 09:27:07 AM »
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
fun times
Re: Picture in Dialog Box
« Reply #2 on: May 15, 2008, 12:16:24 PM »
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