string ColHilites[50] integer MaxColHiliteX //... proc ClearAllColHilites() ColHilites=Format("":50:Chr(0)) UpdateDisplay(_WINDOW_REFRESH_) end proc SetMaxColHiliteX() integer i,xx MaxColHiliteX=0 for i=0 to 24 xx=Asc(ColHilites[i*2+1])+256*Asc(ColHilites[i*2+2]) if MaxColHiliteXFormat("":50:Chr(0)) for i=0 to 24 x=Asc(ColHilites[i*2+1])+256*Asc(ColHilites[i*2+2]) if x>0 xx=x-CurrXoffset() if 1<=xx and xx<=Query(WindowCols) ye=Query(WindowRows) yy=1 while yy<=ye VGotoXY(xx+ln,yy) GetStrAttr(s,a,1) att=iif(Asc(a)==0x47,0x47,(Asc(a)&0x0F|iif((Asc(a)&0xF0)==0x20 or (Asc(a)&0xF0)==0x60,0x60,0x30))) PutAttr(att,1) yy = yy + 1 endwhile endif endif endfor endif end proc WhenLoaded() //... ColHilites=Format("":50:Chr(0)) Hook(_AFTER_UPDATEDISPLAY_ , OnAfterUpdateDisplay) //... end //... ToggleHiLiteCurrCol() ClearAllColHilites()