$PBExportHeader$w_inputbox.srw
forward
global type w_inputbox from w_publ_base
end type
type cb_que from uo_imflatbutton within w_inputbox
end type
type sle_nr from u_sleedit within w_inputbox
end type
end forward

global type w_inputbox 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!
boolean center = true
cb_que cb_que
sle_nr sle_nr
end type
global w_inputbox w_inputbox

type variables
S_INPUTBOX S_OBJSTRU
string rt_str
end variables

on w_inputbox.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.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
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
integer x = 526
integer y = 124
integer width = 325
string text = "取消"
end type

type cb_que from uo_imflatbutton within w_inputbox
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
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

