New Image Command and browse command release 7.3.10.3

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

New Image Command and browse command release 7.3.10.3

Post by kpassaur » Sat Feb 19, 2005 12:26 pm

I am having difficulty with the new image command. When I am in the designer and select the file it says no file exists. I have tried BMP, JPG and Gif images. Any idea on what it wrong? or I am missing. What kind of image files are supported?

Also, the new file browse command, is there an example of this in use and can you select a directory instead of a file. From the help menu it appears to capture the text. I am ususally trying to point to a folder and I have had the request to have a browse button instead of a text box where someone types in the directory path.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sat Feb 19, 2005 6:42 pm

Images on buttons are .bmps. Image objects can handle .bmp and .jpg files.

In your dialog block the image line would look like this:

Image=d:\mypic.bmp,224,48,105,105

Filebrowse is as simple as the syntax in the help file - it just takes the name of a button object and the name of an edit object. When you click the button the file browser appears and the file selected by the user is popped into the edit box. E.g:


Dialog>Dialog1
Caption=Dialog1
Top=113
Width=250
Left=17
Height=101
Button=Browse,144,24,75,25,0
Edit=msEdit1,16,24,121,
FileBrowse=Browse,msEdit1
EndDialog>Dialog1
MJT Net Support
[email protected]

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Image as Dialog Background and Browse to select Directory

Post by kpassaur » Mon Feb 21, 2005 11:20 am

Thanks for the help, I can put an image on a button; however I was trying to place a image as a background for the entire menu. From the dialog designer, I selected More then clicked on the Image Icon. Handles appeared and I right clicked and a properties box appeared. I browsed to an image file and clicked on "OK" and I get the message image file does not exist. The file exists; however, I must be doing something wrong or can you just place images on buttons?

Also, I can select a file with the browse button; however, most of my scripts require that a directory is selected not a file. Is there a way to select a directory instead of a file?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts