home *** CD-ROM | disk | FTP | other *** search
- ** END HEADER -- do not remove this line
- //
- // Generated on 10/03/97
- //
- parameter formObj, popupName
- new FishPOPUP(formObj, popupName)
-
- class FishPOPUP(formObj, popupName) of POPUP(formObj, popupName)
- with (this)
- onInitMenu = class::ROOT_ONINITMENU
- left = 0
- top = 0
- trackRight = true
- endwith
-
-
- this.POPADD = new MENU(this)
- with (this.POPADD)
- onClick = class::POPADD_ONCLICK
- text = "Add a Fish"
- shortCut = "Ctrl+A"
- endwith
-
-
- this.POPDELETE = new MENU(this)
- with (this.POPDELETE)
- onClick = class::POPDELETE_ONCLICK
- text = "Delete the Current Fish..."
- endwith
-
-
- this.POPSAVE = new MENU(this)
- with (this.POPSAVE)
- onClick = class::POPSAVE_ONCLICK
- text = "Save Changes"
- shortCut = "Ctrl+S"
- endwith
-
-
- this.POPABANDON = new MENU(this)
- with (this.POPABANDON)
- onClick = class::POPABANDON_ONCLICK
- text = "Abandon Changes"
- endwith
-
-
- this.POPSEP1 = new MENU(this)
- with (this.POPSEP1)
- text = ""
- separator = true
- endwith
-
-
- this.POPPREV = new MENU(this)
- with (this.POPPREV)
- onClick = class::POPPREV_ONCLICK
- text = "Previous Fish"
- enabled = false
- shortCut = "PgUp"
- endwith
-
-
- this.POPNEXT = new MENU(this)
- with (this.POPNEXT)
- onClick = class::POPNEXT_ONCLICK
- text = "Next Fish"
- shortCut = "PgDn"
- endwith
-
-
- this.POPFIRST = new MENU(this)
- with (this.POPFIRST)
- onClick = class::POPFIRST_ONCLICK
- text = "First Fish"
- enabled = false
- shortCut = "Ctrl+F"
- endwith
-
-
- this.POPLAST = new MENU(this)
- with (this.POPLAST)
- onClick = class::POPLAST_ONCLICK
- text = "Last Fish"
- shortCut = "Ctrl+L"
- endwith
-
-
- this.POPSEP2 = new MENU(this)
- with (this.POPSEP2)
- text = ""
- separator = true
- endwith
-
-
- this.POPCUT = new MENU(this)
- with (this.POPCUT)
- onClick = class::POPCUT_ONCLICK
- text = "Cut"
- shortCut = "Ctrl+X"
- endwith
-
-
- this.POPCOPY = new MENU(this)
- with (this.POPCOPY)
- onClick = class::POPCOPY_ONCLICK
- text = "Copy"
- shortCut = "Ctrl+C"
- endwith
-
-
- this.POPPASTE = new MENU(this)
- with (this.POPPASTE)
- onClick = class::POPPASTE_ONCLICK
- text = "Paste"
- shortCut = "Ctrl+V"
- endwith
-
-
- function POPADD_OnClick
- local thisForm
- thisform = this.parent.parent
- return ( thisForm.rowAdd( thisForm ) )
-
- function POPDELETE_OnClick
- local thisForm
- thisform = this.parent.parent
- return ( thisForm.rowDelete( thisForm ) )
-
- function POPSAVE_OnClick
- local thisForm
- thisform = this.parent.parent
- return ( thisForm.rowSave( thisForm ) )
-
- // {Linked Method} form.root.onInitMenu
- function ROOT_onInitMenu
- local bClip
- bClip = ( TYPE("this.parent.activeControl") == "O" )
- if ( bClip )
- with ( this )
- popCut.enabled := TYPE("this.parent.activeControl.cut") == "FP"
- popCopy.enabled := TYPE("this.parent.activeControl.copy") == "FP"
- popPaste.enabled := TYPE("this.parent.activeControl.paste") == "FP"
- endwith
- else
- with ( this )
- popCut.enabled := false
- popCopy.enabled := false
- popPaste.enabled := false
- endwith
- endif
- return ( bClip )
-
- function POPABANDON_OnClick
- local thisForm
- thisform = this.parent.parent
- return ( thisForm.rowAbandon( thisForm ) )
-
- function POPFIRST_OnClick
- local thisForm
- thisform = this.parent.parent
- return ( thisForm.goFirst( thisForm ) )
-
- function POPLAST_OnClick
- local thisForm
- thisForm = this.parent.parent
- return ( thisForm.goLast( thisForm ) )
-
- function POPNEXT_onClick
- local thisForm
- thisform = this.parent.parent
- return ( thisForm.goNext( thisForm ) )
-
- function POPPREV_onClick
- local thisForm
- thisform = this.parent.parent
- return ( thisForm.goPrev( thisForm ) )
-
- function POPCUT_onClick
- local thisForm
- thisForm = this.parent.parent
- return ( thisForm.activeControl.cut() )
-
- function POPCOPY_onClick
- local thisForm
- thisForm = this.parent.parent
- return ( thisForm.activeControl.copy() )
-
- function POPPASTE_onClick
- local thisForm
- thisForm = this.parent.parent
- return ( thisForm.activeControl.paste() )
- endclass
-