data 7 design ocx help
TRANSCRIPT
-
8/6/2019 Data 7 Design OCX Help
1/22
Data 7 Design Thumbnail OCX Helpwww.data7consultancy.com
Use the Data 7 Design Thumbnail OCX to display an embroidery design file. The Data 7 Design
Thumbnail control is compatible with many different design formats.
Note: This OCX comes with a developer LIC file that is required so it can be used with your own developmentcode. Under no circumstances must the LIC be included in any installation packages or distributed withoutprior consent from Data 7 Consultancy.
PropertiesBackColourBlueblueBorderSizeBorderStyleColourNumberColoursDesignHeight
DesignWidthDrawNeedleGreengreenMaxXMaxYMinXMinYNeedleChangesPaletteColourPictureRedStitchesImage
MethodsShowshowdesign
-
8/6/2019 Data 7 Design OCX Help
2/22
Compatible Design Formats
- Data 7 Quick Expanded .QEP
- Barudan DOS .U01
- Babylock, Bernina, Brother .PES-
- Compucon .XXX
- Elna .EMD
- Generations .VST
- Happy .TAP
- Janome .JEF
- Janome .SEW- Melco .EXP
- Pfaff .KSM
- Pfaff .PCS
- Pfaff .PCM
- Tajima .DSB (Barudan stitch data)
- Tajima .DST (Eltac stitch data)
- Tajima .DSZ (Fortron stitch data)
- Toyota .10O
- Wilcom Barudan .T03 (Barudan stitch data)
- Wilcom Tajima .T01 (Eltac stitch data)
- Wilcom Zangs .T04 (Fortron stitch data)- Wilcom ZSK .T05 (Fortron stitch data)
-
8/6/2019 Data 7 Design OCX Help
3/22
BackColour Property
Returns or sets the background colour of the thumbnail control.
Syntax
thumbnailcontrol.BackColour [= colour]
Setting Description
Normal RGB colours Colours specified by using the standard RGB Colour palette
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
4/22
Blue Property
Returns an integer representing the blue element of the design colour pointed to by the
ColourNumber property. The value returned is a number in the range 0-255
Syntax
thumbnailcontrol.Blue
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
5/22
BorderSize Property
Returns or sets the BorderSize in pixels. This is reflected as a space around the control/design. Therange is 0-20.
Syntax
thumbnailcontrol.BorderSize = [value]
The BorderSize property settings are:
Setting Description
0 None (no border space from edge of control todesign).
1-20 Space in pixels from edge on control to design.
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
6/22
ColourNumber Property
Returns or sets the colour number of a design currently displayed by the thumbnail control. The
ColourNumber property is used to return values for the PaletteColour, Red, Greenand Blueproperties
Syntax
thumbnailcontrol.ColourNumber = [value]
Setting Description
0-thumbnailcontrol.Colours Colour number to return PaletteColour, Red,
Green or Blue property.
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
7/22
Colours Property
Returns the total number of colours in the sequence for the currently displayed design in the
thumbnail control. This number is then used as the maximum number passed to the ColourNumberSyntax
thumbnailcontrol.Colours
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
8/22
DesignHeight Property
Returns the height of the design currently displayed in the thumbnail control. This value is in
1/10mm
Syntax
thumbnailcontrol.DesignHeight
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
9/22
DesignWidth Property
Returns the width of the design currently displayed in the thumbnail control. This value is in1/10mm
Syntax
thumbnailcontrol.DesignWidth
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
10/22
DrawNeedle Property
Returns or sets the colour number of a design to be drawn.
Syntax
thumbnailcontrol.DrawNeedle = [value]
Setting Description
0 Draw entire design
1-thumbnailcontrol.Colours Draws only colour set by this property
Remarks
If the DrawNeedle property is set to a none zero value which is not greater than the Colours
property then only this colour is drawn and the Stitchesproperty will equal the total stitches in thatcolour only.
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
11/22
Green Property
Returns an integer representing the green element of the design colour pointed to by the
ColourNumber property. The value returned is a number in the range 0-255
Syntax
thumbnailcontrol.Green
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
12/22
MaxX Property
Returns an integer representing the maximum x co-ordinate of the currently drawn design.
Syntax
thumbnailcontrol.MaxX
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
13/22
MaxY Property
Returns an integer representing the maximum y co-ordinate of the currently drawn design.
Syntax
thumbnailcontrol.MaxY
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
14/22
MinX Property
Returns an integer representing the minimum x co-ordinate of the currently drawn design.
Syntax
thumbnailcontrol.MinX
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
15/22
MinY Property
Returns an integer representing the minimum y co-ordinate of the currently drawn design.
Syntax
thumbnailcontrol.MinY
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
16/22
NeedleChanges Property
Returns the total number of needle changes in the currently displayed design in the thumbnail
control.
Syntax
thumbnailcontrol.NeedleChanges
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
17/22
Red Property
Returns an integer representing the red element of the design colour pointed to by the ColourNumber
property. The value returned is a number in the range 0-255
Syntax
thumbnailcontrol.Red
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
18/22
Stitches Property
Returns the total number of stitches in the currently displayed design in the thumbnail control unless
the DrawNeedle property was first set to a value between 1 and the total number ofColours.
Syntax
thumbnailcontrol.Stitches
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
19/22
ShowDesign Method
Sets the design to be drawn.
Syntax
Retval=thumbnailcontrol.ShowDesign(Design)
The ShowDesign method syntax has these parts:
Part Description
Design Full design name and path of design to be drawn by the control
Returns an integer.
0 Design drawn successfully
None Zero Error drawing design. Return value is error code.
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
20/22
PaletteColour Property
Returns the position of the colour in the design palette pointed to by the ColourNumber property.
e.g.
A design has 10 colours in it sequence and 9 needle changes but only has 5 colours in the design
palette.
Colour Number 1 2 3 4 5 6 7 8 9 10
Palette Position 4 1 2 5 3 5 3 2 5 4
if ColourNumber equals 4 then PaletteColour would equal 5 which would be the palette position 5.
Syntax
thumbnailcontrol.PaletteColour
Available only at run-time
-
8/6/2019 Data 7 Design OCX Help
21/22
BorderStyle Property
Returns or sets the border style for the thumbnail control.
Syntax
thumbnailcontrol.BorderStyle = [value]
The BorderStyle property settings are:
Setting Description
0 None (no border or border-related elements).
1 Fixed Single
-
8/6/2019 Data 7 Design OCX Help
22/22
Image Property
Returns the a snapshot image of whatever is within the control.
Syntax
LPPictureDisp = thumbnailcontrol.Image
Available only at run-time