home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 July & August
/
Pcwk7897.iso
/
mgxsuite
/
abc.z
/
EVENTS.FRM
< prev
next >
Wrap
Text File
|
1996-12-16
|
4KB
|
142 lines
VERSION 4.00
Begin VB.Form Form1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Double-Click & Delete Events DEMO"
ClientHeight = 3030
ClientLeft = 1305
ClientTop = 1485
ClientWidth = 4815
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 700
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 3435
Icon = "EVENTS.frx":0000
Left = 1245
LinkTopic = "Form1"
ScaleHeight = 3030
ScaleWidth = 4815
Top = 1140
Width = 4935
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 495
Left = 420
Picture = "EVENTS.frx":030A
ScaleHeight = 495
ScaleWidth = 495
TabIndex = 3
Top = 1530
Width = 495
End
Begin AbcflowLib.ABC ABC1
Height = 615
Left = 240
TabIndex = 4
Top = 2280
Width = 615
_version = 65536
_extentx = 1085
_extenty = 1085
_stockprops = 1
End
Begin VB.Label Label3
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "(c) Micrografx Inc., 1996. All Rights Reserved."
ForeColor = &H80000008&
Height = 375
Left = 1050
TabIndex = 0
Top = 1605
Width = 3210
End
Begin VB.Label Label6
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = $"EVENTS.frx":0614
ForeColor = &H80000008&
Height = 1395
Left = 435
TabIndex = 2
Top = 75
Width = 3795
End
Begin VB.Label Label2
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "<---- Double-click on this custom OCX in VB 4.0 edit mode to see the event handling code."
ForeColor = &H80000008&
Height = 855
Left = 915
TabIndex = 1
Top = 2265
Visible = 0 'False
Width = 3015
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub ABC1_AppQuitNOTIFY()
End
End Sub
Private Sub ABC1_DeleteSUBCLASS(ByVal Chart As Object, Override As Boolean)
Dim ABCObj As Object
Dim SelectedObjs As Object
Set SelectedObjs = Chart.Objects
Do
Set ABCObj = SelectedObjs.ItemFromSelection
ABCObj.Color = ABC1.App.GRAY
ABCObj.Shape.Fillpattern = 1
Loop While ABCObj.Valid
Rem If you do not want the override the
Rem regular ABC ProcessAnalyser delete behavior,
Rem set the line below to False
ABC1.Override = True
End Sub
Private Sub ABC1_DoubleClickSUBCLASS(ByVal Object As Object, ByVal Chart As Object, Override As Boolean)
Dim ABCObj As Object
Set ABCObj = Object
ABCObj.Shape.FillColor = ABC1.App.RED
ABCObj.Shape.BorderWidth = 3
ABCObj.Text = "You double-clicked on me!"
ABCObj.Shape.FitShapeToText
Rem If you do not want the override the
Rem regular ABC ProcessAnalyser linking behavior,
Rem set the line below to False
ABC1.Override = True
End Sub
Private Sub Form_Load()
Dim ABCApp As Object
Set ABCApp = CreateObject("ABCFlow.application")
ABCApp.Visible = True
ABCApp.RegisterEvent ABC1, Form1.Caption, "DoubleClickSUBCLASS"
ABCApp.RegisterEvent ABC1, Form1.Caption, "DeleteSUBCLASS"
' Get the ABC Quit event so the Menu
' sample can unload when ABC Quits
ABCApp.RegisterEvent ABC1, Form1.Caption, "AppQuitNOTIFY"
End Sub