Follow these instructions to configure Delphi to build and test WebSnap Applications.
Install the WebSnap Components
The dclwebsnap60.bpl package contains the WebSnap components and wizards. Skip this step if the WebSnap components are installed. When installed you will see a WebSnap tab on the palette and a WebSnap tab in the File/New/Other... dialog.
Components/Install Packages...
- Add...
- bin/dclwebsnap60.bpl
- OK
Enable AutoSave
WebSnap applications contain HTML files that must be saved to disk before running the application.
Tools/Environment Options.../Preferences
- Check Autosave options/Editor Files
- OK
Configure Internet Environment Options
Use the Tools/Environment Options/Internet tab to configure internet options. These steps are optional.
Tools/Environment Options.../Internet
- If you have installed an HTML editor or XML editor on your system, you can configure Delphi to launch the editor. Choose the Edit... command. In the Edit Action field enter the action that the editor registered with windows (e.g; Edit_with_XML_Spy). To see your Win2K actions, open a folder and choose Tools.../Folder Options/File Types/Advanced. Once you've configured the editor, you'll be able to launch it when a file with a matching extension is open in Delphi. To launch an external editor, either choose the External Editor command on the Internet Toolbar or right click on the editor and choose the html Editor command in the popup menu.
- Choose the HTML file extension you prefer. The New Web Page Module wizard will create HTML files with your preferred extension.
- Define an image file on your local system that you would like the AdapterPageProducer components to use at design time. At this point, the only time this image is used is when a TDataSetAdapterImageField field is bound to an TImageField in a TDataSet. At runtime the blob will be converted from .bmp to .jpg. At design-time, the sample bitmap will be displayed.
Show the Internet Toolbar
The internet toolbar provides convenient access to the WebSnap wizards.
- Right-click on an existing IDE toolbar and check Internet.