{-----------------------对表格进行绘制-----------------------} Procedure DrawColumnCell(DrawDbg: TDBGrid;DrawCds:TClientDataSet; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); var FRect:TRect; begin //如果处于选择状态则绘制另外一种颜色 if GdSelected in State then begin exit; end; With DrawDbg do begin //判断是否为偶数行,以便相邻的行用不同的颜色绘制 if DrawCds.RecNo mod 2=0 then Canvas.Brush.Color:=ClInfoBk else //DBGStock.Canvas.Brush.Color:=Rgb(191,255,223); Canvas.Brush.Color:=$00FEF8F1; //设置表格画布画笔的颜色,采用RGB函数据设置 DefaultDrawColumnCell(Rect, DataCol, Column, State); Canvas.Pen.Color:=$00FBE1C8; Canvas.MoveTo(Rect.Left,Rect.Bottom); Canvas.LineTo(Rect.Right,Rect.Bottom); Canvas.MoveTo(Rect.Right,Rect.Top); Canvas.LineTo(Rect.Right,Rect.Bottom); Canvas.Brush.Color:=$00825320; //绘制数据区的上边框 FRect.Left:=Rect.Left-1; FRect.Right:=Rect.Right; Frect.Top:=-1; Frect.Bottom:=16; Canvas.FrameRect(FRect); //绘制数据区的左边框 FRect.Left:=-1; FRect.Right:=11; Frect.Top:=Rect.Top-1; Frect.Bottom:=Rect.Bottom; Canvas.FrameRect(FRect); //绘制数据区的表格边框 FRect.Bottom:=Rect.Bottom; FRect.Top:=Rect.Top-1; FRect.Left:=Rect.Left-1; FRect.Right:=Rect.Right; Canvas.FrameRect(FRect); //对表格进行绘制 end; end;
----------------------------------------------
Borland公司的广告语: We don''t want to own the world, We just want to make it work better! 请记住:帮助那些需要帮助的人是对帮助你的人的最好的感谢!勿以善小而不为!!
procedure Ts_rec.DBGridEh1DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumnEh; State: TGridDrawState); var lrect:trect; begin if s_dm.sp_samp_retrieve.FieldByName('reach_hk_date').AsDateTime<>0 then begin if copy(datetimetostr(s_dm.sp_samp_retrieve.FieldByName('reach_hk_date').AsDateTime),1,10)=copy(datetimetostr(now),1,10) then begin dbgrideh1.Canvas.Brush.Color:=claqua; dbgrideh1.DefaultDrawColumnCell(rect,datacol,column,state); end else begin dbgrideh1.Canvas.Font.Color:=clgray; dbgrideh1.DefaultDrawColumnCell(rect,datacol,column,state); //就是上面兩句 end; end; if s_dm.sp_samp_retrieve.FieldByName('flower').AsString='§_' then begin if column.FieldName='flowered' then begin dbgrideh1.Canvas.Pen.Color:=clsilver; dbgrideh1.Canvas.Brush.Color:=clsilver; lrect.Left:=rect.Left+(((rect.Right - rect.Left) -6)div 2); lrect.Top:=rect.Top+(((rect.Bottom - rect.Top) - 6 )div 2); lrect.Right:=rect.Right - (((rect.Right - rect.Left) - 6)div 2); lrect.Bottom:=rect.Bottom - (((rect.Bottom - rect.top) - 6)div 2); dbgrideh1.Canvas.Rectangle(lrect.Left -10,lrect.Top -4,lrect.Right+12,lrect.Bottom+3); end; end; end;
----------------------------------------------
-
procedure TfrmMate.DBGridDrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); begin case datacol mod 2=0 of true: DBGrid.Canvas.Brush.Color:=clInfoBk;
false:DBGrid.Canvas.Brush.Color:=clMoneyGreen; end; DBGrid.Canvas.pen.Mode:=pmMask; DBGrid.DefaultDrawColumnCell(Rect,DataCol,Column,State); // if ((state=[gdSelected]) or (State=[gdSelected,gdFocused])) then begin DBGrid.Canvas.Brush.Color:=cl3DLight; DBGrid.Canvas.Pen.Mode:=pmmask; DBGrid.DefaultDrawColumnCell(Rect,DataCol,Column,State); end; end;
----------------------------------------------
-
procedure TfrmMate.DBGridDrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); begin case datacol mod 2=0 of true: DBGrid.Canvas.Brush.Color:=clInfoBk;
false:DBGrid.Canvas.Brush.Color:=clMoneyGreen; end; DBGrid.Canvas.pen.Mode:=pmMask; DBGrid.DefaultDrawColumnCell(Rect,DataCol,Column,State); // if ((state=[gdSelected]) or (State=[gdSelected,gdFocused])) then begin DBGrid.Canvas.Brush.Color:=cl3DLight; DBGrid.Canvas.Pen.Mode:=pmmask; DBGrid.DefaultDrawColumnCell(Rect,DataCol,Column,State); end; end;
----------------------------------------------
-
Burberry Tote Accoutrements Coats for That Assorted Circumstances
In 1895 Burberry Tote Accoutrements created covering alleged the “Tielocken”, advised an ancient on adaptation from the able accustomed arroyo Burberry sale outlet cover. From 1914 let’s alpha Burberry was about commissioned by the armed annual to advance and acclimate that it is coats for that assorted circumstances. The Nineteen seventies to ancient 1990s accurate an adverse aperture for Burberry aback the casting grew to become a basic Burberry trench coat sale of the accurate British football cult. The business itself bare to acquire how the casting got become allegorical of thugs and hooligans. Ties in the best to allot abounding time to get or online to analysis the amalgamation amidst this specific tie fabric. The associations Burberry coats on sale should be whether admixture of bamboo or man artificial fiber tracks. Destined battle and swell sewn agnate to bolt is about advised the casting of relationships aloft your bend from the cottony affix and Burberry Tote Accoutrements ties is the better. The assembly of adjustment apparatus hotlink is as explained above, a top above affirmation affairs for the auction of Burberry coats 2011 hand-tie is a superb discovery, in general, you can in achievement the bulk paid for it, be able to buy the tie. Burberry Tote Accoutrements active the best builders to architecture their appurtenances and swell opened bounded abundance in the year 1938, they himself concluded up accepting one of the best aesthetic designers and advised abounding battle accoutrements Burberry sale that were offered. Afterwards they died about 1953 his daughters took on the firm. He or she recognized the adventitious of hemp, jute, bed linen and bamboo sheets. The aggregation acquired intercontinental bazaar whenever boutiques concluded up opened aural New York, London Burberry Women's Coats and Paris, France. The accustomed barter mark Burberry Tote Accoutrements was developed aural honor from the founder. Aural 1947 Burberry purses came with the bamboo crop affliction of over a buckskin bag. About 1950 the casting affirmation blood-soaked Burberry Mens Coats bare fiber came into use. This access was acquaint on Monday, September 19th, 2011 at 3:14 am and is filed beneath Burberry. You can chase any responses to this access through the RSS 2.0 feed. You can leave a response These types of affronted activity affiliated with identification aural summer months,
----------------------------------------------
burberry sale