FOR i = 1 TO upperbound(THIS.control)
temp = THIS.control[i]//调整大小,位置
temp.width = temp.width * Radio
temp.x = temp.x * Radio
temp.y = temp.y * Radio
temp.Height = temp.Height * Radio
CHOOSE CASE typeof(temp)
CASE tab!
tab mtab
mtab = temp
//设置字体
mtab.textsize = mtab.textsize * Radio
CASE commandbutton!
commandbutton cb
cb = temp
cb.textsize = cb.textsize * Radio
CASE singlelineedit!
singlelineedit sle
sle = temp
sle.textsize = sle.textsize * Radio
CASE editmask!
editmask em
em = temp
em.textsize = em.textsize * Radio
CASE statictext!
statictext st
st = temp
st.textsize = st.textsize * Radio
CASE datawindow!
// datawindows get zoomed
datawindow dw
dw = temp
//注意DATAWINDOW与其它控件的不同
dw.Object.DataWindow.zoom = string(int(Radio * 100))
CASE picturebutton!
picturebutton pb
pb = temp
pb.textsize = pb.textsize * Radio
CASE checkbox!
checkbox cbx
cbx = temp
cbx.textsize = cbx.textsize * Radio
CASE dropdownlistbox!
dropdownlistbox ddlb
ddlb = temp
ddlb.textsize = ddlb.textsize * Radio
CASE groupbox!
groupbox gb
gb = temp
gb.textsize = gb.textsize * Radio
CASE listbox!
listbox lb
lb = temp
lb.textsize = lb.textsize * Radio
CASE multilineedit!
multilineedit mle
mle = temp
mle.textsize = mle.textsize * Radio
CASE radiobutton!
radiobutton rb
rb = temp
rb.textsize = rb.textsize * Radio
END CHOOSE
NEXT