一個關於CxGrid繼承的問題 |
尚未結案
|
8171459
一般會員 發表:1 回覆:0 積分:0 註冊:2005-10-21 發送簡訊給我 |
要繼承CxGrid中的 procedure TForm1.cxGrid1DBTableView1CustomDrawIndicatorCell( end; 過程,我想重寫他得到在最前面一列顯示列號的效果,找好久都找不到這個過程的原型。請高手幫幫忙提示提示! |
ahmasprb
一般會員 發表:0 回覆:1 積分:0 註冊:2006-08-29 發送簡訊給我 |
procedure TMainForm.tvJiBenCustomDrawIndicatorCell(Sender: TcxGridTableView;
ACanvas: TcxCanvas; AViewInfo: TcxCustomGridIndicatorItemViewInfo; var ADone: Boolean); var FValue: string; FBounds: TRect; begin FBounds := AViewInfo.Bounds; if (AViewInfo is TcxGridIndicatorRowItemViewInfo) then begin ACanvas.FillRect(FBounds); ACanvas.DrawComplexFrame(FBounds, clWhite, clBtnShadow, cxBordersAll, 1); FValue:=IntToStr(TcxGridIndicatorRowItemViewInfo(AViewInfo).GridRecord.Index 1); InflateRect(FBounds, -3, -2); //Platform specific. May not work on Linux. ACanvas.Font.Color := clBlack; ACanvas.Brush.Style := bsClear; ACanvas.DrawText(FValue, FBounds, cxAlignRight or cxAlignVCenter); ADone := True; end; end; |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |