Hi,
I want to be able to save a temporary scrap file that would
contain a image
Look for the stars ***
but I don't want to have a save dialog appear
I am not sure how to do this
and when the user clicks next the rest code below clears the paint
canvas
// Reset Variables
fName=""
f=nil
pic=nil
// Clear Canvas1
Canvas1.Graphics.ClearRect 0, 0, Canvas1.width, Canvas1.height
Canvas1.Backdrop = pic
// Set PIC as a NEW Picture
pic=New Picture(graphics.width, graphics.height, 32)
******** SEE BELOW
Dim dlg as New SaveAsDialog
// Check to see if Filename has been created
If fName="" then
// Filename has NOT been created so goto SAVE AS
dlg.Filter="image/jpg, bmp, pict, gif"
dlg.SuggestedFileName=fName
dlg.Title="Save Drawing"
f=dlg.ShowModal()
If f <> Nil then
f.saveaspicture(pic)
fName=f.name
Else
//user canceled
End If
// Filename has been created so continue to SAVE
ElseIf fName<>"" then
f.name=fName
If f <> Nil then
f.saveaspicture(pic)
End If
End if
Brian Heibert
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>