首页  编辑  

dbgrid当前光棒“深蓝色”改为“红色”

Tags: /超级猛料/Database.数据库相关/数据库控件/   Date Created:

]、。·ˉˇ¨〃々—~‖…’”〕〉》」』〗】∶!"'),.:;?]` 搞定!设置Dbgrid的DBGrid1DrawDataCell事件中添加如下代码:

dbgrid1.Canvas.Font.Color:=clgreen;

 if gdSelected in state then

   SetBkColor(dbgrid1.canvas.handle,clred)

 else

   setbkcolor(dbgrid1.canvas.handle,clwhite);

dbgrid1.Canvas.TextRect(rect,0,0,field.AsString);

dbgrid1.Canvas.Textout(rect.Left,rect.Top,field.AsString);

//Over。大功告成,发个飞吻!!!!!!:-)

//可惜这儿的速度太慢,不经常来。要不........