$PBExportHeader$w_inputbox_string.srw forward global type w_inputbox_string from w_publ_base end type type cb_que from uo_imflatbutton within w_inputbox_string end type type sle_nr from u_sleedit within w_inputbox_string end type end forward global type w_inputbox_string from w_publ_base integer x = 23 integer y = 24 integer width = 2825 integer height = 332 string title = "请填入内容" boolean controlmenu = false boolean minbox = false windowtype windowtype = response! cb_que cb_que sle_nr sle_nr end type global w_inputbox_string w_inputbox_string type variables S_INPUTBOX S_OBJSTRU string rt_str end variables on w_inputbox_string.create int iCurrent call super::create this.cb_que=create cb_que this.sle_nr=create sle_nr iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.cb_que this.Control[iCurrent+2]=this.sle_nr end on on w_inputbox_string.destroy call super::destroy destroy(this.cb_que) destroy(this.sle_nr) end on event open;call super::open;S_OBJSTRU = Message.PowerObjectParm THIS.Title = S_OBJSTRU.Title sle_nr.Text = S_OBJSTRU.OLD_TEXT sle_nr.SetFocus() sle_nr.SelectText(1,Len(sle_nr.Text)) end event event close;CloseWithReturn(this,rt_str) end event type cb_func from w_publ_base`cb_func within w_inputbox_string boolean visible = false integer x = 859 integer y = 124 boolean enabled = false end type type cb_exit from w_publ_base`cb_exit within w_inputbox_string integer x = 526 integer y = 124 integer width = 325 string text = "取消" end type type cb_que from uo_imflatbutton within w_inputbox_string integer x = 18 integer y = 124 integer width = 325 integer height = 96 integer taborder = 30 boolean enabled = false boolean default = true end type event clicked;call super::clicked; rt_str=sle_nr.text Close(parent) end event type sle_nr from u_sleedit within w_inputbox_string integer x = 9 integer y = 12 integer width = 2784 boolean bringtotop = true end type event inputchanged;if trim(this.text)<>'' then cb_que.enabled=true else cb_que.enabled=false end if end event