home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 April B
/
Pcwk4b98.iso
/
Borland
/
Dbase50w
/
SAMPLES1.PAK
/
SWITCH.WFM
< prev
next >
Wrap
Text File
|
1994-08-02
|
2KB
|
72 lines
*******************************************************************************
* PROGRAM: Switch.wfm
*
* WRITTEN BY: Borland Samples Group
*
* DATE: 5/93
*
* UPDATED: 6/94
*
* REVISION: $Revision: 1.26 $
*
* VERSION: dBASE FOR WINDOWS 5.0
*
* DESCRIPTION: This is a very simple program illustrating the use of VBX
* controls with dBASE for Windows. The Forms Designer helps
* you work with VBX controls by allowing you to visually
* manipulate and change the VBX control properties just like
* you can with the regular dBASE for Windows built in controls
*
* PARAMETERS: None
*
* CALLS: Switch.vbx (VBX control)
*
* USAGE: DO Switch.wfm
*
*******************************************************************************
create session
set talk off
set ldCheck off
** END HEADER -- do not remove this line*
* Generated on 07/13/94
*
LOCAL f
f = NEW SWITCHFORM()
f.Open()
CLASS SWITCHFORM OF FORM
this.HelpId = ""
this.HelpFile = ""
this.Text = "Switch"
this.Height = 6.78
this.Left = 24.90
this.Top = 5.23
this.Width = 25.73
load dll switch.vbx
DEFINE BISWITCH BISWITCH1 OF THIS;
PROPERTY;
OnOpen CLASS::BISWITCH1_ONOFF,;
Height 3.03,;
Left 8.30,;
Top 2.02,;
VBStream "SWITCH.BFM 56",;
Width 9.96,;
OnOn CLASS::BISWITCH1_ONON,;
OnOff CLASS::BISWITCH1_ONOFF
Procedure BISWITCH1_OnOn
this.caption = "ON"
form.colorNormal = "N/R+"
Procedure BISWITCH1_OnOff
this.caption = "OFF"
form.colorNormal = "N/W"
ENDCLASS