home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * PROGRAM: Configs.wfm
- *
- * WRITTEN BY: Borland Samples Group
- *
- * DATE: 1/94
- *
- * UPDATED: 6/94
- *
- * REVISION: $Revision: 1.24 $
- *
- * VERSION: dBASE FOR WINDOWS 5.0
- *
- * DESCRIPTION: This is a form showing all the available media on which items
- * sold in the Musical Methods record store are recorded. You
- * may view only a list of the available media, or you may choose
- * to view all the available items on that media.
- *
- * PARAMETERS: None
- *
- * CALLS: Configs.qbe (view of tables)
- * Music.cc (for custom pushbuttons)
- * View.mnu (menu file)
- * Music.prg (procedure file)
- *
- * USAGE: DO Configs.wfm
- *
- *******************************************************************************
- #include "Music.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 CONFIGSFORM()
- f.Open()
-
- CLASS CONFIGSFORM 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 = "Media Types"
- this.Text = "Media Types"
- this.OnOpen = CLASS::ONOPEN
- this.Width = 44.37
- this.View = "CONFIGS.QBE"
- this.Top = 3.69
- this.MenuFile = "VIEW.MNU"
- this.Left = 30.77
- this.Height = 14.26
- 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 TEXT MEDIATYPESTEXT OF THIS;
- PROPERTY;
- Border .F.,;
- Text "Media Types:",;
- ColorNormal "W/R",;
- Width 16.83,;
- Top 0.72,;
- Left 1.87,;
- Height 1.01
-
- 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 12.18,;
- Left 13.60,;
- Height 1.50
-
- DEFINE CLOSEBUTTON CLOSEFORMBUTTON OF THIS;
- PROPERTY;
- ColorNormal "N/W",;
- Width 14.11,;
- Top 12.18,;
- Left 28.90,;
- Height 1.50
-
- DEFINE IMAGE LOGOIMAGE OF THIS;
- PROPERTY;
- DataSource "FILENAME SMLMUSIC.BMP",;
- Width 10.71,;
- Top 9.92,;
- Left 1.19,;
- Height 4.04,;
- Alignment 2
-
- DEFINE LISTBOX DESCRIPTLIST OF THIS;
- PROPERTY;
- Visible .F.,;
- ColorHighLight "W+/R",;
- ColorNormal "N/W+",;
- Width 40.29,;
- Top 1.67,;
- Left 2.04,;
- ID 800,;
- Height 7.54
-
- ****************************************************************************
- PROCEDURE OnOpen
- ****************************************************************************
- set procedure to Music.prg additive
- do SetEnvironment && Set settings that CREATE SESSION overrides
- 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.
- 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 CONFIGS->DESCRIPT"
- this.descriptList.visible = .t. && Make it visible here so don't
- && See flickering in form
- this.filter = "" && No filter is set yet
- this.musicIsOpen = .f.
-
-
- this.itemsButton.OnClick = CorrespondingItems
-
-
- ****************************************************************************
- PROCEDURE OnClose
-
- * Delete this window from the Windows pulldown.
- ****************************************************************************
- if _app.framewin.text = "Musical Methods" && If form is running standalone
- DeleteWindow(this)
- endif
-
-
-
-
- ENDCLASS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-