ll_height = integer(this.Describe("DataWindow.Header.Height")) -8
ll_colcount = Integer(this.Describe("DataWindow.column.count"))
for ll_col = 1 to ll_colcount
ll_visible = this.Describe("#"+string(ll_col)+".Visible")
ll_x = integer(this.Describe("#"+string(ll_col)+".x"))
ll_width = integer(this.Describe("#"+string(ll_col)+".width"))
ll_colname = this.Describe("#"+string(ll_col)+".name")
if ll_visible <> '0' then
ll_newx = ll_x+ ll_width -50
//messagebox("info",ll_colname + " " + string(ll_newx)+" "+string(ll_x)+" "+string(ll_width))
ls_return = this.modify( &
"create text(band=header alignment='0' text='6' border='6' color='16776960'" + &
" x='"+string(ll_newx)+"' y='0' height='" +string(ll_height)+ "' width='50'" + &
" name= " + ll_colname +"_filter_" + string(ll_col , '00') + &
" font.face='Webdings' font.height='-10'" + &
" font.weight='400' font.family='1' font.pitch='2'" + &
" font.charset='2' background.mode='1' background.color='12639424')")
end if
next
这是完整的代码!