** END HEADER -- do not remove this line // // Generated on 2023-01-26 // parameter bModal local f f = new key_testForm() if (bModal) f.mdi = false // ensure not MDI f.readModal() else f.open() endif class key_testForm of FORM with (this) onOpen = class::FORM_ONOPEN onClose = class::FORM_ONCLOSE height = 16.0 left = 19.0 top = 2.9091 width = 40.0 text = "" endwith this.ENTRYFIELD1 = new ENTRYFIELD(this) with (this.ENTRYFIELD1) key = class::ENTRYFIELD1_KEY onKey = class::ENTRYFIELD1_ONKEY height = 1.0 left = 8.2857 top = 1.6818 width = 8.0 value = "" endwith this.RADIOBUTTON1 = new RADIOBUTTON(this) with (this.RADIOBUTTON1) onChange = class::RADIOBUTTON1_ONCHANGE height = 1.0909 left = 8.2857 top = 9.2727 width = 15.7143 text = "cuaenter ON" group = true value = true endwith this.RADIOBUTTON2 = new RADIOBUTTON(this) with (this.RADIOBUTTON2) height = 1.0909 left = 8.2857 top = 11.0909 width = 15.7143 text = "cuaenter OFF" endwith function ENTRYFIELD1_key(nChar, nPosition,bShift,bControl) ?'Key',this.name,nchar if set('cuaenter') = 'ON' and nChar = 13 // this.keyboard('{tab}') endif return function ENTRYFIELD1_onKey(nChar, nPosition,bShift,bControl) ? 'onKey',this.name,nchar return function RADIOBUTTON1_onChange() if form.radiobutton1.value = true set cuaenter on else set cuaenter off endif return function form_onClose() cCuaenter = form.cuaenter set cuaenter &cCuaenter return function form_onOpen() clear form.cuaenter = set('cuaenter') return endclass