1000copy@gmail.com

»¶Ó­À´µ½1000copy@gmail.com>>¡¡¡¡ | Ê×Ò³ ×ÊÔ´ÖÐÐÄ | ÔĶÁ | Python | רÀ¸Ñ§Ï°technet ϵÁÐ¿Î³Ì | ¸öÈËÄ¿±ê | ¼ÒÈË | ÍæÀÖ | ¼¼Êõ | ITPUBÂÛ̳

grid·ÖÎö

·¢±íÈË:1000copy | ·¢±íʱ¼ä: 2006Äê°ËÔÂ22ÈÕ, 18:21


TGridAxisDrawInfo = record
EffectiveLineWidth: Integer;
FixedBoundary: Integer;
GridBoundary: Integer;
GridExtent: Integer;
LastFullVisibleCell: Longint;
FullVisBoundary: Integer;
FixedCellCount: Integer; // ¶ÔÓÚhorz£¬fixcols £¬¶ÔÓÚvert£¬fixrows
FirstGridCell: Integer; // topleft.x
GridCellCount: Integer; // ¶ÔÓÚhorz£¬cols £¬¶ÔÓÚvert£¬rows
GetExtent: TGetExtentsFunc;
// ¶ÔÓÚhorz£¬ÁÐ¿í £¬¶ÔÓÚvert£¬Ðиß.ҪôÊÇdefault£¬ÒªÃ´ÓÐÒ»¸ö²»ÊÇdefault£¬¾ÍÊÂÒµ
// FColwidths,FRowHeightsÖ¸ÕëÊý×é´æ´¢È«²¿width/height,
ÓÐһϵÁеķ½·¨MoveExtent£¬UpdateExtents£¬ModifyExtents£¬CompareExtents£¬Ò²ÓÐÖ¸ÕëÊý¾Ý£¬¶ÔÏ󻯺ÃһЩ¡£
end;


¸Ð¾õÈßÓàµÄ±È½Ï¶à¡£¸ÅÄî±È½Ï»ìÂÒ
±ÈÈçGridExtent£¬ºÃºÃµÄ²»Ö±½ÓʹÓÃself.width/self.height,ƫҪÕâÑùµÄ¼×ÒÒ±û¶¡µÄµ÷À´µ÷È¥µÄ
¼×£º
Vert.GridExtent := ClientHeight;
Horz.GridExtent := ClientWidth;
ÒÒ£º property get
function TControl.GetClientHeight: Integer;
begin
Result := ClientRect.Bottom;
end;
񖜧property get
function TControl.GetClientRect: TRect;
begin
Result.Left := 0;
Result.Top := 0;
Result.Right := Width;
Result.Bottom := Height;
end;

·¢±íÆÀÂÛ

±êÌâ

ÔÚ´ËÌí¼ÓÆÀÂÛ

³Æºô

ÓÊÏ䵨ַ£¨¿ÉÑ¡£©

¸öÈËÖ÷Ò³£¨¿ÉÑ¡£©




Valid XHTML 1.0 Strict and CSS. Powered by pLog
Design by Blog.lvwo.com