home *** CD-ROM | disk | FTP | other *** search
- ******************************************************************************
- * PROGRAM: Changeq.wfm
- *
- * WRITTEN BY: Borland Samples Group
- *
- * DATE: 5/93
- *
- * UPDATED: 3/95
- *
- * REVISION: $Revision: 1.58 $
- *
- * VERSION: Visual dBASE
- *
- * DESCRIPTION: This is a form called from Equipmnt.wfm that brings up a
- * dialog which allows selecting an aircraft to replace the
- * one currently used for a flight. This form contains
- * a listbox of plane names, and a bitmap displaying the
- * currently selected plane type. It also has Ok and Cancel
- * buttons that respectively allow the selections to be saved or
- * ignored.
- *
- *
- * PARAMETERS: None
- *
- * CALLS: Buttons.cc (Custom Controls file)
- * Changeq.qbe (View of tables)
- *
- * USAGE: Do Changeq.wfm
- * or
- * (this is how this file is used in the Equipment program)
- *
- * set procedure to Changeq.wfm additive
- * local f
- * f = new ChangEq()
- * f.mdi = .F. && because modal forms cannot be mdi
- * f.ReadModal()
- *
- *******************************************************************************
- create session
- set talk off
- set ldCheck off
-
- ** END HEADER -- do not remove this line*
- * Generated on 07/06/95
- *
- parameter bModal
- local f
- f = new CHANGEQFORM()
- if (bModal)
- f.mdi = .F. && ensure not MDI
- f.ReadModal()
- else
- f.Open()
- endif
- CLASS CHANGEQFORM OF FORM
- Set Procedure To &_dbwinhome.samples\BUTTONS.CC additive
- this.OnOpen = CLASS::ONOPEN
- this.Maximize = .F.
- this.MousePointer = 1
- this.Minimize = .F.
- this.ColorNormal = "N/GB+"
- this.Width = 77.333
- this.OnClose = CLASS::ONCLOSE
- this.Top = 1.0586
- this.Left = 0.666
- this.Text = "Equipment Selection"
- this.OnSelection = CLASS::ONSELECTION
- this.View = "CHANGEQ.QBE"
- this.Height = 15.5879
-
- DEFINE IMAGE LOGOIMAGE OF THIS;
- PROPERTY;
- Width 77.666,;
- DataSource "FILENAME AIRBRLND.BMP",;
- Alignment 2,;
- Height 8
-
- DEFINE ENTRYFIELD AIRCRAFT OF THIS;
- PROPERTY;
- ColorNormal "N/GB+",;
- DataLink "AIRCRDB->AIRCRAFT",;
- Width 15.5,;
- Top 7.5,;
- Left 0.5,;
- Enabled .F.,;
- FontSize 10,;
- Border .F.,;
- Height 0.8525
-
- DEFINE TEXT TYPETEXT OF THIS;
- PROPERTY;
- ColorNormal "N/GB+",;
- Width 14.5,;
- Top 7.5,;
- Left 47.5,;
- Text "Plane",;
- FontSize 10,;
- Height 0.8525
-
- DEFINE LISTBOX PLANETYPE OF THIS;
- PROPERTY;
- ColorNormal "N/GB+",;
- Width 29.333,;
- Top 8.5,;
- Left 47.5,;
- DataSource "FIELD AIRCRDB->AIRCRAFT",;
- FontSize 11.25,;
- FontName "Arial",;
- ColorHighLight "W+/B",;
- FontItalic .T.,;
- ID 800,;
- Height 4.5
-
- DEFINE OKBUTTON OKCHANGEQ OF THIS;
- PROPERTY;
- Width 14.333,;
- Top 13.8994,;
- Left 47.5,;
- Text "OK",;
- Group .T.,;
- Default .T.,;
- Height 1.5117
-
- DEFINE CANCELBUTTON CANCELCHANGEQ OF THIS;
- PROPERTY;
- Width 14.167,;
- Top 13.8994,;
- Left 62.666,;
- Text "Cancel",;
- Group .F.,;
- ID 0,;
- Height 1.5117
-
- DEFINE IMAGE PLANEIMAGE OF THIS;
- PROPERTY;
- Width 47,;
- Top 8.5,;
- Left 0.5,;
- DataSource "BINARY AIRCRDB->IMAGE",;
- Alignment 1,;
- Height 7.0293
-
- procedure OnOpen
- *******************************************************************************
-
- if type("this.childRec") <> "U"
- this.planeType.curSel = this.childRec
- go this.childRec
- endif
-
-
- *******************************************************************************
-
- procedure OnClose
- *******************************************************************************
-
- close procedure &_dbwinhome.samples\Buttons.cc
-
-
- *******************************************************************************
-
- procedure OnSelection (controlId)
- *******************************************************************************
-
- if controlId <> 0 && Cancel wasn't selected
- this.value = this.planetype.value && Return value to calling form
- endif
-
- this.Close()
-
- ENDCLASS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-