home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
- Object = "{52DE3A21-0A3F-11D4-B9D2-008048FD54E6}#2.0#0"; "POLARDraw20.ocx"
- Begin VB.Form frmDrawVB
- Caption = "Polar Draw ActiveX Control - Demo"
- ClientHeight = 10200
- ClientLeft = 1500
- ClientTop = 630
- ClientWidth = 11880
- Icon = "DrawVB.frx":0000
- LinkTopic = "Form1"
- ScaleHeight = 10200
- ScaleWidth = 11880
- Begin ComctlLib.Toolbar Toolbar1
- Align = 1 'Align Top
- Height = 420
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 11880
- _ExtentX = 20955
- _ExtentY = 741
- ButtonWidth = 609
- ButtonHeight = 582
- Wrappable = 0 'False
- Appearance = 1
- _Version = 327682
- BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7}
- NumButtons = 39
- BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- Object.Width = 1e-4
- MixedState = -1 'True
- EndProperty
- BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Open"
- Object.ToolTipText = "Open"
- Object.Tag = ""
- EndProperty
- BeginProperty Button3 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Save"
- Object.ToolTipText = "Save"
- Object.Tag = ""
- EndProperty
- BeginProperty Button4 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Print"
- Object.ToolTipText = "Print"
- Object.Tag = ""
- EndProperty
- BeginProperty Button5 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- MixedState = -1 'True
- EndProperty
- BeginProperty Button6 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Cut"
- Object.ToolTipText = "Cut"
- Object.Tag = ""
- EndProperty
- BeginProperty Button7 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Copy"
- Object.ToolTipText = "Copy"
- Object.Tag = ""
- EndProperty
- BeginProperty Button8 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Paste"
- Object.ToolTipText = "Paste"
- Object.Tag = ""
- EndProperty
- BeginProperty Button9 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Undo"
- Object.ToolTipText = "Undo"
- Object.Tag = ""
- EndProperty
- BeginProperty Button10 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Redo"
- Object.ToolTipText = "Redo"
- Object.Tag = ""
- EndProperty
- BeginProperty Button11 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- MixedState = -1 'True
- EndProperty
- BeginProperty Button12 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Line"
- Object.ToolTipText = "Line"
- Object.Tag = ""
- EndProperty
- BeginProperty Button13 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Curve"
- Object.ToolTipText = "Curve"
- Object.Tag = ""
- EndProperty
- BeginProperty Button14 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Freeform"
- Object.ToolTipText = "Freeform"
- Object.Tag = ""
- EndProperty
- BeginProperty Button15 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Scribble"
- Object.ToolTipText = "Scribble"
- Object.Tag = ""
- Object.Width = 1e-4
- EndProperty
- BeginProperty Button16 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Rectangle"
- Object.ToolTipText = "Rectangle"
- Object.Tag = ""
- EndProperty
- BeginProperty Button17 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Ellipse"
- Object.ToolTipText = "Ellipse"
- Object.Tag = ""
- EndProperty
- BeginProperty Button18 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Triangle"
- Object.ToolTipText = "Triangle"
- Object.Tag = ""
- EndProperty
- BeginProperty Button19 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Diamond"
- Object.ToolTipText = "Diamond"
- Object.Tag = ""
- EndProperty
- BeginProperty Button20 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Text"
- Object.ToolTipText = "Text"
- Object.Tag = ""
- EndProperty
- BeginProperty Button21 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "TextBox"
- Object.ToolTipText = "Edit text of selected shape"
- Object.Tag = ""
- EndProperty
- BeginProperty Button22 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- MixedState = -1 'True
- EndProperty
- BeginProperty Button23 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Select"
- Object.ToolTipText = "Select"
- Object.Tag = ""
- EndProperty
- BeginProperty Button24 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Rotate"
- Object.ToolTipText = "Rotate"
- Object.Tag = ""
- EndProperty
- BeginProperty Button25 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "EditPoints"
- Object.ToolTipText = "EditPoints"
- Object.Tag = ""
- EndProperty
- BeginProperty Button26 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- MixedState = -1 'True
- EndProperty
- BeginProperty Button27 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Group"
- Object.ToolTipText = "Group shapes"
- Object.Tag = ""
- EndProperty
- BeginProperty Button28 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Ungroup"
- Object.ToolTipText = "Ungroup shapes"
- Object.Tag = ""
- EndProperty
- BeginProperty Button29 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "Link"
- Object.ToolTipText = "Link shapes"
- Object.Tag = ""
- EndProperty
- BeginProperty Button30 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "ConvertToCurve"
- Object.ToolTipText = "Convert To Polygon"
- Object.Tag = ""
- EndProperty
- BeginProperty Button31 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- MixedState = -1 'True
- EndProperty
- BeginProperty Button32 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "BringForward"
- Object.ToolTipText = "BringForward"
- Object.Tag = ""
- EndProperty
- BeginProperty Button33 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "SendBackward"
- Object.ToolTipText = "SendBackward"
- Object.Tag = ""
- EndProperty
- BeginProperty Button34 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "BringToFront"
- Object.ToolTipText = "BringToFront"
- Object.Tag = ""
- EndProperty
- BeginProperty Button35 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "SendToBack"
- Object.ToolTipText = "SendToBack"
- Object.Tag = ""
- EndProperty
- BeginProperty Button36 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = ""
- Object.Tag = ""
- Style = 3
- MixedState = -1 'True
- EndProperty
- BeginProperty Button37 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "CenterPage"
- Object.ToolTipText = "CenterPage"
- Object.Tag = ""
- EndProperty
- BeginProperty Button38 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "ZoomIn"
- Object.ToolTipText = "Zoom In"
- Object.Tag = ""
- EndProperty
- BeginProperty Button39 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Key = "ZoomOut"
- Object.ToolTipText = "Zoom Out"
- Object.Tag = ""
- EndProperty
- EndProperty
- End
- Begin POLARDRAW20Lib.POLARDraw POLARDraw1
- Height = 3885
- Left = 810
- TabIndex = 1
- Top = 1410
- Width = 4890
- _Version = 131072
- _ExtentX = 8625
- _ExtentY = 6853
- _StockProps = 224
- PaperShadowColor= 0
- PaperOutlinecolor= 22975812
- DrawPaperOutline= -1 'True
- DrawPaperShadow = -1 'True
- PaperShadowOffset= 0
- ViewportOriginX = 22975812
- ViewportOriginY = 22878684
- PageOriginX = 1
- PageOriginY = 201004261
- HorizontalGrid = 567
- VerticalGrid = 567
- SelectionCount = 22740992
- ShapeCount = 22742704
- CanvasWidth = 536873485
- CanvasHeight = 0
- AllowDeletePoints= -1 'True
- End
- Begin ComctlLib.ImageList ImageList1
- Left = 7170
- Top = 2295
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- MaskColor = 12632256
- UseMaskColor = 0 'False
- _Version = 327682
- BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
- NumListImages = 35
- BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":0442
- Key = "Open"
- Object.Tag = "Open"
- EndProperty
- BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":0554
- Key = "ConvertToCurve"
- Object.Tag = "ConvertToCurve"
- EndProperty
- BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":0666
- Key = "ZoomOut"
- Object.Tag = "ZoomOut"
- EndProperty
- BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":0778
- Key = "ZoomIn"
- Object.Tag = "ZoomIn"
- EndProperty
- BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":088A
- Key = "Text"
- Object.Tag = "Text"
- EndProperty
- BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":099C
- Key = "BringForward"
- Object.Tag = "BringForward"
- EndProperty
- BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":0AAE
- Key = "BringToFront"
- Object.Tag = "BringToFront"
- EndProperty
- BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":0BC0
- Key = "SendBackward"
- Object.Tag = "SendBackward"
- EndProperty
- BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":0CD2
- Key = "SendToBack"
- EndProperty
- BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":0DE4
- Key = "FitToHeight"
- EndProperty
- BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":0EF6
- Key = "FitToPage"
- EndProperty
- BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1008
- Key = "FitToWidth"
- Object.Tag = "FitToWidth"
- EndProperty
- BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":111A
- Key = "EditPoints"
- Object.Tag = "EditPoints"
- EndProperty
- BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":122C
- Key = "Save"
- Object.Tag = "Save"
- EndProperty
- BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":133E
- Key = "Print"
- Object.Tag = "Print"
- EndProperty
- BeginProperty ListImage16 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1450
- Key = "Cut"
- Object.Tag = "Cut"
- EndProperty
- BeginProperty ListImage17 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1562
- Key = "Copy"
- Object.Tag = "Copy"
- EndProperty
- BeginProperty ListImage18 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1674
- Key = "Paste"
- Object.Tag = "Paste"
- EndProperty
- BeginProperty ListImage19 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1786
- Key = "Undo"
- Object.Tag = "Undo"
- EndProperty
- BeginProperty ListImage20 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1898
- Key = "Redo"
- Object.Tag = "Redo"
- EndProperty
- BeginProperty ListImage21 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":19AA
- Key = "Line"
- Object.Tag = "Line"
- EndProperty
- BeginProperty ListImage22 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1ABC
- Key = "Curve"
- Object.Tag = "Curve"
- EndProperty
- BeginProperty ListImage23 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1BCE
- Key = "Freeform"
- Object.Tag = "Freeform"
- EndProperty
- BeginProperty ListImage24 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1CE0
- Key = "Rectangle"
- Object.Tag = "Rectangle"
- EndProperty
- BeginProperty ListImage25 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1DF2
- Key = "Scribble"
- Object.Tag = "Scribble"
- EndProperty
- BeginProperty ListImage26 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":1F04
- Key = "Ellipse"
- Object.Tag = "Ellipse"
- EndProperty
- BeginProperty ListImage27 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":2016
- Key = "Triangle"
- Object.Tag = "Triangle"
- EndProperty
- BeginProperty ListImage28 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":2128
- Key = "Diamond"
- Object.Tag = "Diamond"
- EndProperty
- BeginProperty ListImage29 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":223A
- Key = "Rotate"
- Object.Tag = "Rotate"
- EndProperty
- BeginProperty ListImage30 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":234C
- Key = "Select"
- Object.Tag = "Select"
- EndProperty
- BeginProperty ListImage31 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":245E
- Key = "CenterPage"
- Object.Tag = "CenterPage"
- EndProperty
- BeginProperty ListImage32 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":2570
- Key = "TextBox"
- EndProperty
- BeginProperty ListImage33 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":2682
- Key = "Link"
- Object.Tag = "Link"
- EndProperty
- BeginProperty ListImage34 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":2794
- Key = "Group"
- Object.Tag = "Group"
- EndProperty
- BeginProperty ListImage35 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "DrawVB.frx":28A6
- Key = "Ungroup"
- Object.Tag = "Ungroup"
- EndProperty
- EndProperty
- End
- Begin VB.Menu mnuFile
- Caption = "&File"
- Begin VB.Menu mnuOpen
- Caption = "Open..."
- Shortcut = ^O
- End
- Begin VB.Menu mnuSave
- Caption = "Save..."
- Shortcut = ^S
- End
- Begin VB.Menu mnuExport
- Caption = "Export..."
- End
- Begin VB.Menu mnuSeparator4
- Caption = "-"
- End
- Begin VB.Menu mnuPageSetup
- Caption = "Page Setup..."
- End
- Begin VB.Menu mnuPrint
- Caption = "Print..."
- Shortcut = ^P
- End
- Begin VB.Menu mnuSeparator0
- Caption = "-"
- End
- Begin VB.Menu mnuExit
- Caption = "Exit"
- End
- End
- Begin VB.Menu mnuEdit
- Caption = "&Edit"
- Begin VB.Menu mnuUndo
- Caption = "Undo"
- Shortcut = ^Z
- End
- Begin VB.Menu mnuRedo
- Caption = "Redo"
- Shortcut = ^Y
- End
- Begin VB.Menu mnuSeparator1
- Caption = "-"
- End
- Begin VB.Menu mnuCut
- Caption = "Cut"
- Shortcut = ^X
- End
- Begin VB.Menu mnuCopy
- Caption = "Copy"
- Shortcut = ^C
- End
- Begin VB.Menu mnuPaste
- Caption = "Paste"
- Shortcut = ^V
- End
- Begin VB.Menu mnuSeparator10
- Caption = "-"
- End
- Begin VB.Menu mnuSelectAll
- Caption = "Select All"
- Shortcut = ^A
- End
- End
- Begin VB.Menu mnuView
- Caption = "&View"
- Begin VB.Menu mnuRulers
- Caption = "Rulers"
- Checked = -1 'True
- End
- Begin VB.Menu mnuScroll
- Caption = "Scroll Bars"
- Checked = -1 'True
- End
- Begin VB.Menu mnuSeparator2
- Caption = "-"
- End
- Begin VB.Menu mnuGuideLines
- Caption = "Guide&lines..."
- End
- Begin VB.Menu mnuGrid
- Caption = "&Grid..."
- End
- Begin VB.Menu mnuPaper
- Caption = "&Paper..."
- End
- Begin VB.Menu mnuBackground
- Caption = "&Background..."
- End
- Begin VB.Menu mnuSeparator3
- Caption = "-"
- End
- Begin VB.Menu mnuZoom
- Caption = "&Zoom..."
- End
- Begin VB.Menu mnuFit
- Caption = "Fit to"
- Begin VB.Menu mnuFitToPage
- Caption = "Page"
- End
- Begin VB.Menu mnuFitToSelection
- Caption = "Selection"
- End
- Begin VB.Menu mnuFitToHeight
- Caption = "Height"
- End
- Begin VB.Menu mnuFitToWidth
- Caption = "Width"
- End
- End
- Begin VB.Menu mnuCenterPage
- Caption = "Center page"
- End
- End
- Begin VB.Menu mnuNew
- Caption = "&New"
- Begin VB.Menu mnuAutoShape
- Caption = "AutoShape"
- Begin VB.Menu mnuDiamond
- Caption = "Diamond"
- End
- Begin VB.Menu mnuEllipse
- Caption = "Ellipse"
- End
- Begin VB.Menu mnuHexagon
- Caption = "Hexagon"
- End
- Begin VB.Menu mnuIsoscelesTriangle
- Caption = "Isosceles triangle"
- End
- Begin VB.Menu mnuLArrow
- Caption = "Left arrow"
- End
- Begin VB.Menu mnuOctagon
- Caption = "Octagon"
- End
- Begin VB.Menu mnuParallelogram
- Caption = "Parallelogram"
- End
- Begin VB.Menu mnuPentagon
- Caption = "Pentagon"
- End
- Begin VB.Menu mnuPlusSign
- Caption = "Plus sign"
- End
- Begin VB.Menu mnuRectangle
- Caption = "Rectangle"
- End
- Begin VB.Menu mnuRightTriangle
- Caption = "Right triangle"
- End
- Begin VB.Menu mnuRounded
- Caption = "Rounded rectangle"
- End
- Begin VB.Menu mnuStar
- Caption = "Star"
- End
- Begin VB.Menu mnuTrapezoid
- Caption = "Trapezoid"
- End
- End
- Begin VB.Menu mnuPolygon
- Caption = "Line"
- Begin VB.Menu mnuArc
- Caption = "Arc"
- End
- Begin VB.Menu mnuCurve
- Caption = "Curve"
- End
- Begin VB.Menu mnuFreeform
- Caption = "Freeform"
- End
- Begin VB.Menu mnuLineLine
- Caption = "Line"
- End
- Begin VB.Menu mnuScribble
- Caption = "Scribble"
- End
- End
- Begin VB.Menu mnuSpecial
- Caption = "Special"
- Begin VB.Menu mnuPlaintext
- Caption = "Plain Text"
- End
- Begin VB.Menu mnuInsertPicture
- Caption = "Picture"
- End
- Begin VB.Menu mnuDimensionBar
- Caption = "Dimension Bar"
- End
- Begin VB.Menu mnuLink
- Caption = "Link"
- End
- End
- End
- Begin VB.Menu mnuFormat
- Caption = "F&ormat"
- Begin VB.Menu mnuLens
- Caption = "Len&s..."
- End
- Begin VB.Menu mnuLine
- Caption = "&Line"
- Begin VB.Menu mnuStyle
- Caption = "Style..."
- End
- Begin VB.Menu mnuArrows
- Caption = "Arrows..."
- End
- End
- Begin VB.Menu mnuFill
- Caption = "&Fill..."
- Begin VB.Menu mnuSolid
- Caption = "Solid..."
- End
- Begin VB.Menu mnuShade
- Caption = "Shade..."
- End
- Begin VB.Menu mnuPattern
- Caption = "Pattern..."
- End
- Begin VB.Menu mnuTexture
- Caption = "Texture..."
- End
- Begin VB.Menu mnuPicture
- Caption = "Picture..."
- End
- End
- Begin VB.Menu mnuShadow
- Caption = "&Shadow"
- Begin VB.Menu mnuShadowStyle
- Caption = "Style..."
- End
- Begin VB.Menu mnuShadowLens
- Caption = "Shadow lens effect..."
- End
- End
- Begin VB.Menu mnuText
- Caption = "&Text"
- Begin VB.Menu mnuEditFont
- Caption = "Font"
- End
- Begin VB.Menu mnuEditText
- Caption = "Content"
- End
- End
- End
- Begin VB.Menu mnuArrange
- Caption = "&Arrange"
- Begin VB.Menu mnuSendBackward
- Caption = "Send backward"
- End
- Begin VB.Menu mnuBringForward
- Caption = "Bring forward"
- End
- Begin VB.Menu mnuSendToBottom
- Caption = "Send to bottom"
- End
- Begin VB.Menu mnuBringToFront
- Caption = "Bring to front"
- End
- End
- Begin VB.Menu mnuTools
- Caption = "&Tools"
- Begin VB.Menu mnuAddText
- Caption = "Add Text to shape"
- End
- Begin VB.Menu mnuUngroup
- Caption = "Ungroup"
- End
- Begin VB.Menu mnuGroup
- Caption = "Group"
- End
- Begin VB.Menu mnuConvertToCurve
- Caption = "Convert to polygon/curve"
- End
- End
- Attribute VB_Name = "frmDrawVB"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim tbrSelect, tbrRotate, tbrAlignLeft, tbrAlignRight, tbrAlignTop, tbrAlignBottom As Button
- Private Sub Form_Unload(Cancel As Integer)
- FreeObjects
- End Sub
- Private Sub mnuAddText_Click()
- If SelectionExists Then pd_Selection.ShapeRange.Text.Edit
- End Sub
- Private Sub mnuArc_Click()
- SetEditMode polCreateNew, polArc, -1
- End Sub
- Private Sub mnuBringToFront_Click()
- If SelectionExists Then pd_Selection.ShapeRange.ZOrder polBringToFront
- End Sub
- Private Sub mnuArrows_Click()
- POLARDraw1.ArrowsDlg
- End Sub
- Private Sub mnuBackground_Click()
- pd_Page.BackgroudColor = SetColor(pd_Page.BackgroudColor)
- End Sub
- Private Sub mnuBringForward_Click()
- If SelectionExists Then pd_Selection.ShapeRange.ZOrder polBringForward
- End Sub
- Private Sub mnuCenterPage_Click()
- pd_Window.CenterPage
- End Sub
- Private Sub mnuConvertToCurve_Click()
- If SelectionExists Then pd_Selection.ShapeRange.ConvertToPolygon
- End Sub
- Private Sub mnuCopy_Click()
- POLARDraw1.Copy
- End Sub
- Private Sub mnuCut_Click()
- POLARDraw1.Cut
- End Sub
- Private Sub mnuDimensionBar_Click()
- SetEditMode polCreateNew, polDimensionBar, -1
- End Sub
- Private Sub mnuEditFont_Click()
- If SelectionExists Then
- If pd_Selection.ShapeRange.Text.Plain = "" Then
- MsgBox "You can change font only to text shapes, not text boxes!", vbInformation, "Invalid selection"
- Else
- POLARDraw1.FontDlg
- End If
- End If
- End Sub
- Private Sub mnuEditText_Click()
- If SelectionExists Then pd_Selection.ShapeRange.Text.Edit
- End Sub
- Private Sub mnuExit_Click()
- End
- End Sub
- Private Sub mnuExport_Click()
- Dim strFileName As String
- strFileName = SavePDRFile("Enhanced metafiles (*.emf)" + Chr(0) + "*.emf" + Chr(0) + "All Files (*.*)" + Chr(0) + "*.*")
- If strFileName <> "" Then POLARDraw1.Write strFileName, 2
- End Sub
- Private Sub mnuFitToHeight_Click()
- pd_Window.FitTo polFitToHeight
- End Sub
- Private Sub mnuFitToPage_Click()
- pd_Window.FitTo polFitToPage
- End Sub
- Private Sub mnuFitToSelection_Click()
- pd_Window.FitTo polFitToSelection
- End Sub
- Private Sub mnuFitToWidth_Click()
- pd_Window.FitTo polFitToWidth
- End Sub
- Private Sub mnuFreeform_Click()
- SetEditMode polCreateNew, polFreeform, polFreeformPoly
- End Sub
- Private Sub mnuGroup_Click()
- If SelectionExists Then pd_Selection.ShapeRange.Group
- End Sub
- Private Sub mnuHexagon_Click()
- SetEditMode polCreateNew, polHexagon, -1
- End Sub
- Private Sub mnuInsertPicture_Click()
- Dim strFileName As String
- strFileName = OpenPDRFile("Bitmap files (*.bmp)" + Chr(0) + "*.bmp" + Chr(0) + "JPEG files (*.jpg)" + Chr(0) + "*.jpg" + Chr(0) + "GIF files (*.gif)" + Chr(0) + "*.gif" + Chr(0) + "Metafiles (*.wmf;*.emf)" + Chr(0) + "*.wmf;*.emf" + Chr(0) + "All Files (*.*)" + Chr(0) + "*.*")
- If strFileName = "" Then Exit Sub
- POLARDraw1.EnableRendering = False 'desable redrawing until adding picture is finished
- If strFileName <> "" Then
- Dim pic As StdPicture
- Set pic = LoadPicture(strFileName)
- Dim tempUnits As Long
- Dim pd_shape As POLARDRAW20Lib.Shape
- tempUnits = POLARDraw1.MeasurementUnits
- POLARDraw1.MeasurementUnits = polUnitsTwips
-
- Dim x As Long, y As Long
- x = pic.Width
- y = pic.Height
- pd_Shapes.AddPictureFromObj pic, 0, 0, x, y
- End If
- POLARDraw1.MeasurementUnits = tempUnits
- POLARDraw1.EnableRendering = True
- POLARDraw1.Render
- End Sub
- Private Sub mnuIsoscelesTriangle_Click()
- SetEditMode polCreateNew, polIsoscelesTriangle, polFreeformPoly
- End Sub
- Private Sub mnuLens_Click()
- POLARDraw1.LensDlg
- End Sub
- Private Sub mnuLink_Click()
- SetEditMode polCreateNew, polLink, -1
- End Sub
- Private Sub mnuOctagon_Click()
- SetEditMode polCreateNew, polOctagon, -1
- End Sub
- Private Sub mnuOpen_Click()
- Dim strFileName As String
- strFileName = OpenPDRFile("Polar Draw Files (*.pdr)" + Chr(0) + "*.pdr" + Chr(0) + "All Files (*.*)" + Chr(0) + "*.*")
- If strFileName <> "" Then POLARDraw1.Read strFileName
- End Sub
- Private Sub mnuPageSetup_Click()
- POLARDraw1.PageSetupDlg
- End Sub
- Private Sub mnuPaper_Click()
- frmPaper.Show vbModal, Me
- End Sub
- Private Sub mnuParallelogram_Click()
- SetEditMode polCreateNew, polParallelogram, -1
- End Sub
- Private Sub mnuPaste_Click()
- POLARDraw1.Paste
- End Sub
- Private Sub mnuPattern_Click()
- POLARDraw1.PatternDlg
- End Sub
- Private Sub mnuPentagon_Click()
- SetEditMode polCreateNew, polPentagon, -1
- End Sub
- Private Sub mnuPicture_Click()
- Dim strFileName As String
- strFileName = OpenPDRFile("Bitmap files (*.bmp)" + Chr(0) + "*.bmp" + Chr(0) + "JPEG files (*.jpg)" + Chr(0) + "*.jpg" + Chr(0) + "GIF files (*.gif)" + Chr(0) + "*.gif" + Chr(0) + "Metafiles (*.wmf;*.emf)" + Chr(0) + "*.wmf;*.emf" + Chr(0) + "All Files (*.*)" + Chr(0) + "*.*")
-
- If strFileName <> "" Then
- If SelectionExists Then pd_Selection.ShapeRange.Fill.SetPictureFromObject LoadPicture(strFileName)
- End If
- End Sub
- Private Sub mnuPlaintext_Click()
- SetEditMode polCreateNew, polPlainText, -1
- End Sub
- Private Sub mnuPlusSign_Click()
- SetEditMode polCreateNew, polPlusSign, -1
- End Sub
- Private Sub mnuPolygon_Click()
- SetEditMode polCreateNew, polFreeform, polFreeformPoly
- End Sub
- Private Sub mnuPrint_Click()
- PrintPicture True
- End Sub
- Private Sub mnuRectangle_Click()
- SetEditMode polCreateNew, polRectangle, -1
- End Sub
- Private Sub mnuLineLine_Click()
- SetEditMode polCreateNew, polLine, -1
- End Sub
- Private Sub mnuRightTriangle_Click()
- SetEditMode polCreateNew, polRightTriangle, -1
- End Sub
- Private Sub mnuRounded_Click()
- SetEditMode polCreateNew, polRoundRectangle, -1
- End Sub
- Private Sub mnuScribble_Click()
- SetEditMode polCreateNew, polFreeform, polScribblePoly
- End Sub
- Private Sub mnuCurve_Click()
- SetEditMode polCreateNew, polFreeform, polCurvePoly
- End Sub
- Private Sub mnuLArrow_Click()
- SetEditMode polCreateNew, polLeftArrow, -1
- End Sub
- Private Sub mnuSelectAll_Click()
- pd_Shapes.SelectAll
- End Sub
- Private Sub mnuSendBackward_Click()
- If SelectionExists Then pd_Selection.ShapeRange.ZOrder polSendBackward
- End Sub
- Private Sub mnuSendToBottom_Click()
- If SelectionExists Then pd_Selection.ShapeRange.ZOrder polSendToBack
- End Sub
- Private Sub mnuShadowLens_Click()
- If SelectionExists Then frmShadowLens.Show vbModal, Me
- End Sub
- Private Sub mnuShadowStyle_Click()
- POLARDraw1.ShadowDlg
- End Sub
- Private Sub mnuStar_Click()
- SetEditMode polCreateNew, polStar, -1
- End Sub
- Private Sub mnuStyle_Click()
- POLARDraw1.LineDlg
- End Sub
- Private Sub mnuEllipse_Click()
- SetEditMode polCreateNew, polEllipse, -1
- End Sub
- Private Sub mnuDiamond_Click()
- SetEditMode polCreateNew, polDiamond, -1
- End Sub
- Private Sub mnuRedo_Click()
- POLARDraw1.Redo
- End Sub
- Private Sub mnuRulers_Click()
- With pd_Environment
- .ShowHorizontalRuler = Not .ShowHorizontalRuler
- .ShowVerticalRuler = Not .ShowVerticalRuler
- End With
- mnuRulers.Checked = Not mnuRulers.Checked
-
- End Sub
- Private Sub mnuSave_Click()
- Dim strFileName As String
- strFileName = SavePDRFile("Polar Draw Files (*.pdr)" + Chr(0) + "*.pdr" + Chr(0) + "All Files (*.*)" + Chr(0) + "*.*")
- If strFileName <> "" Then POLARDraw1.Write strFileName, 1
- End Sub
- Private Sub mnuScroll_Click()
- With pd_Environment
- .ShowHorizontalScrollBar = Not .ShowHorizontalScrollBar
- .ShowVerticalScrollBar = Not .ShowVerticalScrollBar
- End With
- mnuScroll.Checked = Not (mnuScroll.Checked)
- End Sub
- Private Sub mnuShade_Click()
- POLARDraw1.GradientDlg
- End Sub
- Private Sub mnuSolid_Click()
- If SelectionExists Then
- With pd_Selection.ShapeRange
- .Fill.Type = polSolidColor
- .Fill.Color = SetColor(.Fill.Color)
- .IsFilled = True
- End With
- End If
- End Sub
- Private Sub mnuTexture_Click()
- POLARDraw1.TextureDlg
- End Sub
- Private Sub mnuTrapezoid_Click()
- SetEditMode polCreateNew, polTrapezoid, -1
- End Sub
- Private Sub mnuUndo_Click()
- POLARDraw1.Undo
- End Sub
- Private Sub mnuUngroup_Click()
- If SelectionExists Then pd_Selection.ShapeRange.Ungroup False
- End Sub
- Private Sub mnuZoom_Click()
- frmZoom.Show vbModal, Me
- End Sub
- Private Sub Form_Resize()
- Dim x, y As Long
- x = frmDrawVB.ScaleWidth
- y = frmDrawVB.ScaleHeight - Toolbar1.Height
- If (x > 0 And y > 0) Then
- POLARDraw1.Height = y
- POLARDraw1.Width = x
- POLARDraw1.Top = Toolbar1.Height
- POLARDraw1.Left = 0
- pd_Window.FitTo polFitToPage
- End If
- End Sub
- Private Sub Form_Load()
- SetShapeTypes
- CreateObjects
- SetEnvironment
- mnuRulers.Checked = True
- mnuScroll.Checked = True
- Dim i As Integer
- Toolbar1.ImageList = ImageList1
- For i = 1 To Toolbar1.Buttons.Count
- If Toolbar1.Buttons(i).Style <> tbrSeparator Then
- Toolbar1.Buttons(i).Image = Toolbar1.Buttons(i).Key
- End If
- Next i
- End Sub
- Private Sub mnuGrid_Click()
- frmGrid.Show vbModal, Me
- End Sub
- Private Sub mnuGuideLines_Click()
- frmGuidelines.Show vbModal, Me
- End Sub
- Private Sub POLARDraw1_ErrorReadingFile(ByVal szErrorMsg As String, ByVal lErrorCode As Long, pbIgnore As Boolean)
- MsgBox szErrorMsg, vbCritical, "Polar Draw ActiveX Control"
- pbIgnore = True
- End Sub
- Private Sub POLARDraw1_ErrorWritingFile(ByVal szErrorMsg As String, ByVal lErrorCode As Long, pbIgnore As Boolean)
- MsgBox szErrorMsg, vbCritical, "Polar Draw ActiveX Control"
- pbIgnore = True
- End Sub
- Private Sub POLARDraw1_ShapeClicked(ByVal lShapeID As Long, ByVal nButton As Integer, ByVal nMask As Integer)
- If nButton = vbRightButton And nMask = vbShiftMask Then
- GetShapeType lShapeID
- End If
- End Sub
- Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
- Dim strFileName As String
- Select Case Button.Key
- Case "Open"
-
- strFileName = OpenPDRFile("Polar Draw Files (*.pdr)" + Chr(0) + "*.pdr" + Chr(0) + "All Files (*.*)" + Chr(0) + "*.*")
- If strFileName <> "" Then POLARDraw1.Read strFileName
-
- Case "Save"
-
- strFileName = SavePDRFile("Polar Draw Files (*.pdr)" + Chr(0) + "*.pdr" + Chr(0) + "All Files (*.*)" + Chr(0) + "*.*")
- If strFileName <> "" Then POLARDraw1.Write strFileName, 1
- Case "Print"
- PrintPicture False
-
- Case "Cut"
- POLARDraw1.Cut
- Case "Copy"
- POLARDraw1.Copy
- Case "Paste"
- POLARDraw1.Paste
- Case "Undo"
- POLARDraw1.Undo
- Case "Redo"
- POLARDraw1.Redo
- Case "Line"
- SetEditMode polCreateNew, polLine, -1
- Case "Curve"
- SetEditMode polCreateNew, polFreeform, polCurvePoly
- Case "Freeform"
- SetEditMode polCreateNew, polFreeform, polFreeformPoly
- Case "Scribble"
- SetEditMode polCreateNew, polFreeform, polScribblePoly
- Case "Rectangle"
- SetEditMode polCreateNew, polRectangle, -1
- Case "Ellipse"
- SetEditMode polCreateNew, polEllipse, -1
- Case "Triangle"
- SetEditMode polCreateNew, polIsoscelesTriangle, -1
- Case "Diamond"
- SetEditMode polCreateNew, polDiamond, -1
- Case "Text"
- SetEditMode polCreateNew, polPlainText, -1
- Case "TextBox"
- If SelectionExists Then pd_Selection.ShapeRange.Text.Edit
- Case "Select"
- SetEditMode polResize, -1, -1
- Case "EditPoints"
- SetEditMode polEditPoints, -1, -1
- Case "Rotate"
- SetEditMode polRotate, -1, -1
- Case "SendToBack"
- If SelectionExists Then pd_Selection.ShapeRange.ZOrder polSendToBack
- Case "SendBackward"
- If SelectionExists Then pd_Selection.ShapeRange.ZOrder polSendBackward
- Case "BringToFront"
- If SelectionExists Then pd_Selection.ShapeRange.ZOrder polBringToFront
- Case "BringForward"
- If SelectionExists Then pd_Selection.ShapeRange.ZOrder polBringForward
-
- Case "Group"
- If SelectionExists Then pd_Selection.ShapeRange.Group
- Case "Ungroup"
- If SelectionExists Then pd_Selection.ShapeRange.Ungroup False
- Case "Link"
- SetEditMode polCreateNew, polLink, -1
- Case "ConvertToCurve"
- If SelectionExists Then pd_Selection.ShapeRange.ConvertToPolygon
-
- Case "CenterPage"
- pd_Window.CenterPage
- Case "FitToWidth"
- pd_Window.FitTo polFitToWidth
- Case "FitToHeight"
- pd_Window.FitTo polFitToHeight
- Case "FitToSelection"
- pd_Window.FitTo polFitToSelection
- Case "FitToPage"
- pd_Window.FitTo polFitToPage
-
- Case "ZoomIn"
- If (pd_Environment.Zoom + 5) <= 1000 Then
- pd_Environment.Zoom = pd_Environment.Zoom + 5
- End If
- Case "ZoomOut"
- If (pd_Environment.Zoom - 5) >= 10 Then
- pd_Environment.Zoom = pd_Environment.Zoom - 5
- End If
- End Select
-
- End Sub
- Private Sub PrintPicture(fDialogShow As Boolean)
- If pd_Shapes.Count = 0 Then
- MsgBox "Nothing to print!", vbCritical, "Polar Draw ActiveX Control"
- Else
- POLARDraw1.PrintDocument fDialogShow
- End If
- End Sub
-