Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 09:24:05 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Picture in Dialog Box
Pages: 1   Go Down
Print
Author Topic: Picture in Dialog Box  (Read 697 times)
0 Members and 1 Guest are viewing this topic.
gbravo
Active Member

Offline Offline

Posts: 5


View Profile
« on: May 14, 2008, 06: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
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Online Online

Posts: 770


Briceville, TN, USA



View Profile WWW
« Reply #1 on: May 15, 2008, 08: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
Logged

All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
gbravo
Active Member

Offline Offline

Posts: 5


View Profile
« Reply #2 on: May 15, 2008, 11:16:24 AM »

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
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!