w_flash source code:
desc:
this window has 3 win function:
public function integer wf_setmaxnumber (integer as_maxnum)
public function integer wf_setcurnumber (integer as_curnum)
public function integer wf_setmsg (string as_msg)
wf_setmaxnumber ,wf_setcurnumber :control the progressbar,
$PBExportHeader$w_flash.srw
forward
global type w_flash from Window
end type
type st_msg from statictext within w_flash
end type
type st_1 from statictext within w_flash
end type
type dw_1 from datawindow within w_flash
end type
end forward
global type w_flash from Window
int X=823
int Y=360
int Width=1408
int Height=624
boolean TitleBar=true
string Title="信息处理进度提示信息"
long BackColor=79741120
WindowType WindowType=popup!
st_msg st_msg
st_1 st_1
dw_1 dw_1
end type
global w_flash w_flash
forward prototypes
public function integer wf_setmaxnumber (integer as_maxnum)
public function integer wf_setcurnumber (integer as_curnum)
public function integer wf_setmsg (string as_msg)
end prototypes
public function integer wf_setmaxnumber (integer as_maxnum);long ll_row
integer li_ret = -1
if dw_1.rowcount() > 0 then
ll_row = dw_1.getrow()
li_ret = dw_1.setitem(ll_row,'maxnumber',as_maxnum)
end if
return li_ret
end function
public function integer wf_setcurnumber (integer as_curnum);long ll_row
integer li_ret = -1
if dw_1.rowcount() > 0 then
ll_row = dw_1.getrow()
li_ret = dw_1.setitem(ll_row,'curnumber',as_curnum)
end if
return li_ret
end function
public function integer wf_setmsg (string as_msg);st_msg.text = as_msg
return 0
end function
on w_flash.create
this.st_msg=create st_msg
this.st_1=create st_1
this.dw_1=create dw_1
this.Control[]={this.st_msg,&
this.st_1,&
this.dw_1}
end on
on w_flash.destroy
destroy(this.st_msg)
destroy(this.st_1)
destroy(this.dw_1)
end on
type st_msg from statictext within w_flash
int X=50
int Y=172
int Width=1239
int Height=168
boolean Enabled=false
string Text="正在进行数据处理,清稍候..."
boolean FocusRectangle=false
long TextColor=33554432
long BackColor=79741120
int TextSize=-9
int Weight=700
string FaceName="宋体"
FontCharSet FontCharSet=GB2312CharSet!
FontPitch FontPitch=Variable!
end type
type st_1 from statictext within w_flash
int X=46
int Y=56
int Width=869
int Height=76
boolean Enabled=false
string Text="正在进行数据处理,清稍候..."
boolean FocusRectangle=false
long TextColor=33554432
long BackColor=67108864
int TextSize=-9
int Weight=700
string FaceName="宋体"
FontCharSet FontCharSet=GB2312CharSet!
FontPitch FontPitch=Variable!
end type
type dw_1 from datawindow within w_flash
int X=50
int Y=372
int Width=1262
int Height=96
int TabOrder=10
string DataObject="d_progressbar"
BorderStyle BorderStyle=StyleLowered!
end type