home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 April B
/
Pcwk4b98.iso
/
Borland
/
Dbase50w
/
MUSIC1.PAK
/
CATEGORS.WFM
< prev
next >
Wrap
Text File
|
1994-08-02
|
5KB
|
173 lines
*******************************************************************************
* PROGRAM: Categors.wfm
*
* WRITTEN BY: Borland Samples Group
*
* DATE: 1/94
*
* UPDATED: 6/94
*
* REVISION: $Revision: 1.24 $
*
* VERSION: dBASE FOR WINDOWS 5.0
*
* DESCRIPTION: This form is a view of all the available music and other
* categories of items sold in the Musical Methods store. You
* can view just a list of the available categories, or select
* to see a view of all the available items that belong to the
* selected category.
*
* PARAMETERS: None
*
* CALLS: Categors.qbe (view of tables)
* Music.cc (for custom pushbuttons)
* View.mnu (menu file)
* Music.prg (procedure file)
*
* USAGE: DO Categors.wfm
*
*******************************************************************************
#include "Music.h"
#include <Messdlg.h>
create session
set talk off
set ldcheck off
** END HEADER -- do not remove this line*
* Generated on 06/19/94
*
LOCAL f
f = NEW CATEGORSFORM()
f.Open()
CLASS CATEGORSFORM OF FORM
Set Procedure to Music.cc additive
this.ReleaseOnClose = .f.
this.Minimize = .F.
this.MousePointer = 1
this.Maximize = .F.
this.HelpFile = "Music.hlp"
this.HelpId = "Categories"
this.Text = "Categories"
this.Width = 44.54
this.View = "CATEGORS.QBE"
this.Top = 1.73
this.MenuFile = "VIEW.MNU"
this.Left = 14.79
this.Height = 14.02
this.OnOpen = CLASS::ONOPEN
this.OnClose = CLASS::ONCLOSE
DEFINE RECTANGLE LISTRECT OF THIS;
PROPERTY;
Border .T.,;
BorderStyle 1,;
Text "",;
ColorNormal "W*/R",;
Width 41.82,;
Top 0.50,;
Left 1.19,;
Height 9.15
DEFINE MUSICBUTTON ITEMSBUTTON OF THIS;
PROPERTY;
UpBitmap "RESOURCE #108",;
HelpFile "Music.hlp",;
HelpID "Items",;
Text "&Items...",;
ColorNormal "N/W",;
StatusMessage "Show available items matching the current selection. Press F1 for Help.",;
Width 14.11,;
Default .T.,;
Top 11.94,;
Left 13.94,;
Height 1.50
DEFINE CLOSEBUTTON CLOSEFORMBUTTON OF THIS;
PROPERTY;
ColorNormal "N/W",;
Width 14.11,;
Top 11.94,;
Left 28.73,;
Height 1.50
DEFINE IMAGE LOGOIMAGE OF THIS;
PROPERTY;
DataSource "FILENAME SMLMUSIC.BMP",;
Width 10.71,;
Top 9.95,;
Left 1.19,;
Height 3.83,;
Alignment 2
DEFINE LISTBOX DESCRIPTLIST OF THIS;
PROPERTY;
Visible .F.,;
DataSource "FIELD CATEGORS->DESCRIPT",;
FontSize 9.00,;
ColorHighLight "W+/R",;
ColorNormal "N/W*",;
Width 39.61,;
Top 1.78,;
Left 2.21,;
ID 800,;
Height 7.54
DEFINE TEXT CATEGORYTEXT OF THIS;
PROPERTY;
Border .F.,;
Text " Music Categories :",;
ColorNormal "W/R",;
Width 19.55,;
Top 0.72,;
Left 1.87,;
Height 1.01,;
Alignment 3
****************************************************************************
PROCEDURE OnOpen
****************************************************************************
set procedure to Music.prg additive
if _app.framewin.text <> "Musical Methods" && If form is running standalone
public windowCnt,focusForm,speedOnTop
windowCnt = 0
focusForm = .f.
speedOnTop = 0.00
DisableWindowing(this)
else
AddWindow(this)
this.OnGotFocus = ViewOnGotFocus && These events must be assigned
this.OnLostFocus = ViewOnLostFocus && after AddWindow() executes
endif
this.root.viewMenu.organizeView.enabled = .f.
this.root.viewMenu.browse.enabled = .f.
do SetEnvironment && set settings that CREATE SESSION overrides
set skip to && Parent records shown only once
this.OnSize = SizeForm && Procedure in music.prg
* Link listbox to the unSKIPped list of parent records
this.descriptList.dataSource = "FIELD CATEGORS->DESCRIPT"
this.descriptList.visible = .t. && Make it visible here so don't
&& see flickering in form
this.filter = .f. && no filter is set yet
this.musicIsOpen = .f.
this.itemsButton.OnClick = CorrespondingItems && procedure in Music.prg
****************************************************************************
PROCEDURE OnClose
* Delete this window from the Windows pulldown.
****************************************************************************
if _app.framewin.text = "Musical Methods" && If form not running standalone
DeleteWindow(this)
endif
ENDCLASS