1. How do I load multiple files and switch from one to another in ActiveX?

Use the LoadDrawing method to load mark files into the ActiveX control. To load multiple files and then select from the set of loaded files, use the Index property. Note that, while you could reload a file every time it is needed, to do so will use up the Windows GDI Resources which can then lead to software lockup. It is best to load the files once, then index through them to select the desired file. A typical use of the LoadDrawing and MarkDrawing methods and the Index property in Visual Basic is:

mh.DrawingIndex = 0

mh.LoadDrawing “test1.mkh”

mh.DrawingIndex = 1

mh.LoadDrawing “test2.mkh”

mh.DrawingIndex = 2

mh.LoadDrawing “test3.mkh”

mh.DrawingIndex = 0

mh.MarkDrawing

mh.DrawingIndex = 1

mh.MarkDrawing

mh.DrawingIndex = 2

mh.MarkDrawing

The first six lines of VB code load three mark files to three index locations. The last six lines of code illustrate how to call up each drawing by index value and then mark it.

 

2. Importing Vector Graphic Files into WinMark Pro®.

 When importing vector graphic files into WinMark Pro versions 2.0.0.3090 and lower, vector files are automatically scaled to fit 66% of the available Drawing Canvas (field size). WinMark Pro version 2.1.0.3468 now allows you to choose how the imported graphic is scaled. The new scaling options are: Best Fit (66%), One-to-One, X-axis Extents, or Y-axis Extents. To change the default setting (Best Fit), click Tools / General Settings… and on the Objects Default tab, click the Vector Import Scale property. All versions of WinMark Pro allow either proportional or non-proportional scaling of imported graphics by using precise scaling values or by "clicking and dragging".

(Back to top)

3. Saving Custom Formats Before Upgrading WinMark Pro Software

WinMark Pro stores custom date code formats, saved serial numbers, shift code definitions, and Launcher startup information in the Windows Registry rather than in the .MKH mark file. To avoid losing this information, you must save the appropriate Registry keys before upgrading WinMark Pro and then restore that data after installation. Follow the steps described below to save custom date formats and repeat this process for other keys you want to save. Valid Registry key names are:

Custom date codes - UserDateFormats

Shift code definitions - Shift Defines

Saved serial numbers - SavedSerialNumbers

Launcher startup info - Startup

DO NOT SAVE AND RESTORE ANY OTHER REGISTRY KEYS! Doing so may affect the functionality of the upgrade. If you have changed WinMark Pro’s global Drawing or Object Defaults (under Tools/General Settings.../Application Settings) with customized values, you must reenter them after the upgrade installation is complete.

To save Registry information:

1)   Open RegEdit.EXE from the Windows directory.

2)   Click on the '+' sign next to HKEY_CURRENT_USER.

3)   Click on the '+' sign next to Software.

4)   Click on the '+' sign next to Synrad.

5)   Click on the '+' sign next to Synrad WinMark.

6)   Click on the UserDateFormats folder. Verify that your custom date codes are listed in the Name and Data columns to the right.

7)   Go to the Registry menu and select Export Registry File.

8)   Verify that the Selected Branch option is selected in the Export Range group and that the selected branch is:
'HKEY_CURRENT_USER\Software\Synrad\Synrad WinMark\UserDateFormats'.

9)   Type in an appropriate file name (like 'CustomDateCodes') and click on Save.

10) Repeat Steps 6 through 9 to save shift, serial number, or startup data as required.

11) Close RegEdit.

To uninstall/upgrade WinMark Pro:

1)   Uninstall WinMark Pro, then install the WinMark Pro version upgrade.

2)   Open WinMark Pro, select the marking head and lens type, and then close WinMark Pro.

To restore Registry information:

1)   Open RegEdit.

2)   Go to the Registry menu and select Import Registry File.

3)   Select the saved date code file and click OK. You should see a message that the data was successfully imported into the Registry file.

4)   Perform a test mark using a mark file containing one of your custom date formats to verify that date codes are properly formatted.

5)   Repeat Steps 2 through 4 to restore any other saved Registry key data.

 

(Back to top)

 

Synrad, Inc.  4600 Campus Place  Mukilteo, WA 98275 USA
1.800.SYNRAD1  · tel 1.425.349.3500  · fax 1.425.349.3667  · e-mail synrad@synrad.com