Class tcustomgrid
Unit
Declaration
type tcustomgrid = class(tpublishedwidget, iautoscrollframe, iobjectpicker, iscrollbar, idragcontroller, istatfile, iifigridlink, iassistiveclientgrid)
Description
No description available, ancestor tpublishedwidget description follows
No description available, ancestor tpublishedwidgetnwr description follows
No description available, ancestor tactionpublishedwidgetnwr description follows
No description available, ancestor tactionwidget description follows
No description available, ancestor twidget description follows
No description available, ancestor tactcomponent description follows
No description available, ancestor tmsecomponent description follows
Hierarchy
- TObject
- TPersistent
- tcomponent
- tmsecomponent
- tactcomponent
- twidget
- tactionwidget
- tactionpublishedwidgetnwr
- tpublishedwidgetnwr
- tpublishedwidget
- tcustomgrid
Overview
Fields
Methods
class function classskininfo: skininfoty; override; |
|
function checkrowindex(var aindex: integer): boolean; |
|
procedure setselected(const cell: gridcoordty; const avalue: boolean); virtual; |
|
procedure internalselectionchanged; |
|
procedure setoptionsgrid(const avalue: optionsgridty); virtual; |
|
function updatesortcol(const avalue: integer): integer; virtual; |
|
function getsortdescend(const acol: integer): boolean; |
|
procedure checkrowreadonlystate; virtual; |
|
procedure checkneedsrowheight; |
|
procedure updaterowheight(const arow: integer; var arowheight: integer); |
|
function setuserinput(const avalue: boolean): boolean; |
|
procedure resetuserinput(const avalue: boolean); |
|
procedure doinsertrow(const sender: tobject); virtual; |
|
procedure doappendrow(const sender: tobject); virtual; |
|
function deleterowconfirmation(): boolean; |
|
procedure dodeleterow(const sender: tobject); virtual; |
|
procedure dodeleteselectedrows(const sender: tobject); virtual; |
|
procedure dodeleterows(const sender: tobject); |
|
procedure docopycells(const sender: tobject); |
|
procedure dopastecells(const sender: tobject); |
|
procedure initeventinfo(const cell: gridcoordty; eventkind: celleventkindty; out info: celleventinfoty); |
|
procedure invalidate; |
|
procedure invalidatesinglecell(const cell: gridcoordty); |
|
function caninvalidate: boolean; |
|
function docheckcellvalue: boolean; |
|
procedure dolayoutchanged; virtual; |
|
procedure internalupdatelayout(const force: boolean = false); |
|
procedure updatelayout; virtual; |
|
function intersectdatarect(var arect: rectty): boolean; |
|
procedure setdatarowheight(const value: integer); |
|
function getcaretcliprect: rectty; override; |
|
procedure checkdatacell(const coord: gridcoordty); |
|
procedure datacellerror(const coord: gridcoordty); |
|
procedure error(aerror: griderrorty; text: string = ''); |
|
procedure indexerror(row: boolean; index: integer; text: string = ''); |
|
procedure defineproperties(filer: tfiler); override; |
|
function getdisprect: rectty; override; |
|
procedure dofontheightdelta(var delta: integer); override; |
|
procedure fontchanged; override; |
|
procedure clientrectchanged; override; |
|
procedure internalcreateframe; override; |
|
function getscrollrect: rectty; |
|
procedure setscrollrect(const rect: rectty); |
|
function scrollcaret(const vertical: boolean): boolean; virtual; |
|
procedure firstcellclick(const cell: gridcoordty; var info: mouseeventinfoty); virtual; |
|
function getzebrastart: integer; virtual; |
|
function getnumoffset: integer; virtual; |
|
function createdatacols: tdatacols; virtual; |
|
procedure createdatacol(const index: integer; out item: tdatacol); virtual; |
|
function createfixcols: tfixcols; virtual; |
|
function createfixrows: tfixrows; virtual; |
|
procedure initcellinfo(var info: cellinfoty); virtual; |
|
function cellhasfocus: boolean; virtual; |
|
procedure colchanged(const sender: tcol); |
|
procedure cellchanged(const sender: tcol; const row: integer); |
|
procedure focusedcellchanged; virtual; |
|
procedure rowchanged(const arow: integer); virtual; |
|
procedure rowstatechanged(const arow: integer); virtual; |
|
procedure scrolled(const dist: pointty); virtual; |
|
function hascolumnsort: boolean; |
|
procedure sortchanged(const all: boolean); |
|
procedure checkinvalidate; |
|
function startanchor: gridcoordty; |
|
function endanchor: gridcoordty; |
|
procedure doselectionchanged; virtual; |
|
procedure docolmoved(const fromindex,toindex: integer); virtual; |
|
procedure dorowsmoved(const fromindex,toindex,count: integer); virtual; |
|
procedure dorowsinserting(var index,count: integer); virtual; |
|
procedure dorowsinserted(const index,count: integer); virtual; |
|
procedure dorowsdeleting(var index,count: integer); virtual; |
|
procedure dorowsdeleted(index,count: integer); virtual; |
|
procedure dorowsmodified; |
|
procedure doedited(); |
|
procedure dorowsdatachanged(const acell: gridcoordty; const acount: integer); virtual; |
|
procedure dorowcountchanged(const countbefore,newcount: integer); virtual; |
|
procedure docellevent(var info: celleventinfoty); virtual; |
|
procedure cellmouseevent(const acell: gridcoordty; var info: mouseeventinfoty; const acellinfopo: pcelleventinfoty = nil; const aeventkind: celleventkindty = cek_none); |
|
procedure dofocusedcellposchanged; virtual; |
|
function isfirstrow: boolean; virtual; |
|
function islastrow: boolean; virtual; |
|
procedure internalinsertrow(var aindex: integer; var acount: integer; const auserinput: boolean); virtual; |
|
procedure internaldeleterow(var aindex: integer; var acount: integer; const auserinput: boolean); virtual; |
|
function internalsort(const sortfunc: indexsortcomparemethodty; var refindex: integer): boolean; |
|
procedure updaterowdata; virtual; |
|
procedure objectevent(const sender: tobject; const event: objecteventty); override; |
|
procedure doasyncevent(var atag: integer) override; |
|
procedure loaded; override; |
|
procedure doexit; override; |
|
procedure doenter; override; |
|
procedure doactivate; override; |
|
procedure dodeactivate; override; |
|
procedure activechanged; override; |
|
procedure getautopaintsize(var asize: sizety) override; |
|
procedure mouseevent(var info: mouseeventinfoty); override; |
|
procedure clientmouseevent(var info: mouseeventinfoty); override; |
|
procedure domousewheelevent(var info: mousewheeleventinfoty); override; |
|
procedure dokeydown(var info: keyeventinfoty); override; |
|
procedure dokeyup(var info: keyeventinfoty); override; |
|
procedure dopaintforeground(const acanvas: tcanvas); override; |
|
procedure dobeforepaint(const canvas: tcanvas); override; |
|
procedure doafterpaint(const canvas: tcanvas); override; |
|
function getnoscroll(): boolean override; |
|
procedure drawfocusedcell(const acanvas: tcanvas); virtual; |
|
procedure drawcellbackground(const acanvas: tcanvas); |
|
procedure drawcelloverlay(const acanvas: tcanvas); |
|
function caninsertrow: boolean; virtual; |
|
function canappendrow: boolean; virtual; |
|
function candeleterow: boolean; virtual; |
|
function canmoverow: boolean; virtual; |
|
procedure updatepopupmenu(var amenu: tpopupmenu; var mouseinfo: mouseeventinfoty); override; |
|
function rowatpos(y: integer): integer; |
|
function rowpos(arow: integer): integer; |
|
function ystep: integer; |
|
function mergestart(const acol: integer; const arow: integer): integer; |
|
function mergeend(const acol: integer; const arow: integer): integer; |
|
function getmerged(const arow: integer): longword; |
|
function nextfocusablecol(const acol: integer; const aleft: boolean; const arow: integer; const noreadonly: boolean): integer; |
|
procedure checkcellvalue(var accept: boolean); virtual; |
|
procedure checkmorerows(const acount: integer); |
|
procedure beforefocuscell(const cell: gridcoordty; const selectaction: focuscellactionty); virtual; |
|
procedure afterfocuscell(const cellbefore: gridcoordty; const selectaction: focuscellactionty); virtual; |
|
function wheelheight: integer; |
|
function calcshowshift(const rect: rectty; const position: cellpositionty): pointty; |
|
procedure focusrow(const arow: integer; const action: focuscellactionty; const noreadonly: boolean; const selectmode: selectcellmodety = scm_cell); |
|
function doremoveappinsrow(const oldrow,newrow: integer): boolean; |
|
function hassort: boolean; |
|
function canautoappend: boolean; virtual; |
|
function getdragrect(const apos: pointty): rectty; override; |
|
procedure scrollevent(sender: tcustomscrollbar; event: scrolleventty); virtual; |
|
function getcursorshape(const sender: tobjectpicker; var shape: cursorshapety): boolean; |
|
procedure getpickobjects(const sender: tobjectpicker; var objects: integerarty); |
|
procedure beginpickmove(const sender: tobjectpicker); |
|
procedure pickthumbtrack(const sender: tobjectpicker); |
|
procedure endpickmove(const sender: tobjectpicker); |
|
procedure cancelpickmove(const sender: tobjectpicker); |
|
procedure paintxorpic(const sender: tobjectpicker; const canvas: tcanvas); |
|
procedure dostatread(const reader: tstatreader); virtual; |
|
procedure dostatwrite(const writer: tstatwriter); virtual; |
|
procedure statreading; |
|
procedure statread; |
|
function getstatvarname: msestring; |
|
function getstatpriority: integer; |
|
procedure beginnullchecking; |
|
procedure endnullchecking; |
|
procedure beginnonullcheck; |
|
procedure endnonullcheck; |
|
procedure beginnocheckvalue; |
|
procedure endnocheckvalue; |
|
function nocheckvalue: boolean; |
|
procedure reorderrow; |
|
function getiassistiveclient(): iassistiveclient; override; |
|
function getassistiveflags(): assistiveflagsty; override; |
|
function getassistivecellcaption(const acell: gridcoordty): msestring virtual; |
|
function getassistivecelltext(const acell: gridcoordty; out aflags: assistiveflagsty): msestring virtual; |
|
function getassistivefocusedcell(): gridcoordty; |
|
function getassistivegridinfo(): assistivegridinfoty virtual; |
|
constructor create(aowner: tcomponent); override; |
|
destructor destroy; override; |
|
procedure initnewcomponent(const ascale: real); override; |
|
procedure synctofontheight; override; |
|
procedure dragevent(var info: draginfoty); override; |
|
function internaldragevent(var info: draginfoty): boolean; virtual; |
|
function actualcursor(const apos: pointty): cursorshapety; override; |
|
procedure beginupdate; |
|
procedure endupdate(const nosort: boolean = false; const invalidrowstart: int32 = 0); |
|
function updating: boolean; reintroduce; |
|
function calcminscrollsize: sizety; override; |
|
procedure layoutchanged; |
|
function cellclicked: boolean; |
|
procedure rowdatachanged; overload; |
|
procedure rowdatachanged(const acell: gridcoordty; const count: integer = 1); overload; |
|
procedure rowup(const action: focuscellactionty = fca_focusin; const nowrap: boolean = false) virtual; |
|
procedure rowdown(const action: focuscellactionty = fca_focusin; const nowrap: boolean = false) virtual; |
|
procedure pageup(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure pagedown(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure wheelup(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure wheeldown(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure lastrow(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure firstrow(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure colstep(const action: focuscellactionty; const step: integer; const rowchange: boolean; const nocolwrap: boolean; const noreadonly: boolean); virtual; |
|
function hasdata: boolean; |
|
function canexitrow(const force: boolean = false): boolean; |
|
function cellexiting: boolean; |
|
function gridprop(const coord: gridcoordty): tgridprop; |
|
function isdatacell(const coord: gridcoordty): boolean; |
|
function isvalidcell(const coord: gridcoordty): boolean; |
|
function isfixrow(const coord: gridcoordty): boolean; |
|
function isfixcol(const coord: gridcoordty): boolean; |
|
function rowvisible(const arow: integer): integer; |
|
function rowsperpage: integer; |
|
function cellatpos(const apos: pointty; out coord: gridcoordty): cellkindty; overload; |
|
function cellatpos(const apos: pointty): gridcoordty; overload; |
|
function cellrect(const cell: gridcoordty; const innerlevel: cellinnerlevelty = cil_all; const nomerged: boolean = false; const acellorigin: boolean = false): rectty; |
|
function clippedcellrect(const cell: gridcoordty; const innerlevel: cellinnerlevelty = cil_all): rectty; |
|
function cellvisible(const acell: gridcoordty): boolean; |
|
procedure invalidatecell(const cell: gridcoordty); |
|
procedure invalidatefocusedcell; |
|
procedure invalidaterow(const arow: integer); |
|
function selectcell(const cell: gridcoordty; const amode: cellselectmodety; const checkmultiselect: boolean = false): boolean; |
|
function getselectedrange: gridrectty; |
|
function focuscell(cell: gridcoordty; selectaction: focuscellactionty = fca_focusin; const selectmode: selectcellmodety = scm_cell; const ashowcell: cellpositionty = cep_nearest): boolean; virtual; |
|
procedure focuscolbyname(const aname: string); |
|
function focusedcellvalid: boolean; |
|
function rowremoving: boolean; |
|
function scrollingcol: boolean; |
|
function noscrollingcol: boolean; |
|
function defocuscell: boolean; |
|
function defocusrow: boolean; |
|
function showrect(const rect: rectty; const position: cellpositionty = cep_nearest; const noxshift: boolean = false): pointty; |
|
function showcaretrect(const arect: rectty; const aframe: tcustomframe): pointty; overload; |
|
function showcaretrect(const arect: rectty; const aframe: framety): pointty; overload; |
|
function showcellrect(const rect: rectty; const origin: cellinnerlevelty = cil_paint): pointty; |
|
procedure showcell(const cell: gridcoordty; const position: cellpositionty = cep_nearest; const force: boolean = false); |
|
procedure showrow(const arow: integer; const position: cellpositionty = cep_nearest; const force: boolean = false); |
|
procedure showlastrow; |
|
procedure scrollrows(step: integer); |
|
procedure scrollleft; |
|
procedure scrollright; |
|
procedure scrollpageleft; |
|
procedure scrollpageright; |
|
function userinput: boolean; |
|
procedure movecol(curindex,newindex: integer; const auserinput: boolean = false); virtual; |
|
procedure moverow(curindex,newindex: integer; count: integer = 1; const auserinput: boolean = false); virtual; |
|
function insertrow(aindex: integer; acount: integer = 1; const auserinput: boolean = false): int32; |
|
procedure deleterow(aindex: integer; acount: integer = 1; const auserinput: boolean = false); |
|
function appinsrow(aindex: integer;const auserinput: boolean = false): int32; |
|
function isinsertempty: boolean; |
|
function isautoappend: boolean; |
|
function autoappending: boolean; |
|
function checkreautoappend: boolean; |
|
procedure removeappendedrow; |
|
function autoremoving: boolean; |
|
procedure clear; |
|
function appendrow(const checkautoappend: boolean = false): integer; |
|
function appenddatarow: integer; |
|
procedure sortinvalid(const acol: integer = invalidaxis; const arow: integer = invalidaxis); |
|
function checksort: boolean; |
|
procedure sort; |
|
function copyselection: boolean; virtual; |
|
function pasteselection: boolean; virtual; |
|
function rowhigh: integer; |
|
function datarowhigh: integer; |
|
function visiblerow(const arow: integer): integer; |
|
function rowfoldinfo: prowfoldinfoty; |
Properties
property cellwindowpos: pointty read getcellwindowpos
write setcellwindowpos; |
|
property rowwindowpos: int32 read getrowwindowpos write setrowwindowpos; |
|
property colwindowpos: int32 read getcolwindowpos write setcolwindowpos; |
|
property optionsgrid: optionsgridty read foptionsgrid write setoptionsgrid
default defaultoptionsgrid; |
|
property optionsgrid1: optionsgrid1ty read foptionsgrid1 write foptionsgrid1
default []; |
|
property optionsfold: optionsfoldty read foptionsfold
write foptionsfold default []; |
|
property norowedit: boolean read fnorowedit write fnorowedit; |
|
property sorted: boolean read getsorted write setsorted; |
|
property folded: boolean read getfolded write setfolded; |
|
property datarowlinewidth: integer read fdatarowlinewidth
write setdatarowlinewidth default defaultgridlinewidth; |
|
property datarowlinecolorfix: colorty read fdatarowlinecolorfix
write setdatarowlinecolorfix default defaultfixlinecolor; |
|
property datarowlinecolor: colorty read fdatarowlinecolor
write setdatarowlinecolor default defaultdatalinecolor; |
|
property datarowheight: integer read fdatarowheight
write setdatarowheight default griddefaultrowheight; |
|
property datarowheightmin: integer read fdatarowheightmin
write fdatarowheightmin default 1; |
|
property datarowheightmax: integer read fdatarowheightmax
write fdatarowheightmax default maxint; |
|
property datacols: tdatacols read fdatacols write setdatacols; |
|
property fixcols: tfixcols read ffixcols write setfixcols; |
|
property fixrows: tfixrows read ffixrows write setfixrows; |
|
property rowcount: integer read frowcount write setrowcount default 0; |
|
property rowcountmax: integer read frowcountmax
write setrowcountmax default bigint; |
|
property firstvisiblerow: integer read ffirstvisiblerow; |
|
property lastvisiblerow: integer read flastvisiblerow; |
|
property visiblerows: integerarty read fvisiblerows; |
|
property focusedcell: gridcoordty read ffocusedcell; |
|
property col: integer read ffocusedcell.col write setcol; |
|
property row: integer read ffocusedcell.row write setrow; |
|
property mousecell: gridcoordty read fmousecell; |
|
property gridframecolor: colorty read fgridframecolor
write setgridframecolor default cl_gridframe; |
|
property rowcolors: tcolorarrayprop read frowcolors write setrowcolors; |
|
property rowcolorstate[index:integer]: rowstatenumty read getrowcolorstate
write setrowcolorstate; |
|
property rowlinecolorstate[index:integer]: rowstatenumty read getrowlinecolorstate
write setrowlinecolorstate; |
|
property rowlinecolorfixstate[index:integer]: rowstatenumty
read getrowlinecolorfixstate
write setrowlinecolorfixstate; |
|
property rowlinewidth[index:integer]: rowlinewidthty read getrowlinewidth
write setrowlinewidth; |
|
property rowfonts: trowfontarrayprop read frowfonts write setrowfonts; |
|
property rowfontstate[index:integer]: rowstatenumty read getrowfontstate
write setrowfontstate; |
|
property rowreadonlystate[index:integer]: boolean read getrowreadonlystate
write setrowreadonlystate; |
|
property rowhidden[index:integer]: boolean read getrowhidden
write setrowhidden; |
|
property rowfoldlevel[index:integer]: byte read getrowfoldlevel
write setrowfoldlevel; |
|
property rowfoldissum[index:integer]: boolean read getrowfoldissum
write setrowfoldissum; |
|
property rowheight[index:integer]: integer read getrowheight
write setrowheight; |
|
property rowstatelist: trowstatelist read getrowstatelist
write setrowstatelist; |
|
property ifilink: tifigridlinkcomp read fifilink write setifilink; |
|
property zebra_color: colorty read fzebra_color write setzebra_color
default cl_zebra; |
|
property zebra_start: integer read fzebra_start write setzebra_start default 0; |
|
property zebra_height: integer read fzebra_height write setzebra_height default 0; |
|
property zebra_step: integer read fzebra_step write setzebra_step default 2; |
|
property statfile: tstatfile read fstatfile write setstatfile; |
|
property statvarname: msestring read getstatvarname write fstatvarname; |
|
property statpriority: integer read fstatpriority
write fstatpriority default 0; |
|
property onbeforeupdatelayout: gridnotifyeventty
read fonbeforeupdatelayout write fonbeforeupdatelayout; |
|
property onlayoutchanged: gridnotifyeventty read fonlayoutchanged
write fonlayoutchanged; |
|
property oncolmoving: gridblockmovingeventty read foncolmoving
write foncolmoving; |
|
property oncolmoved: gridblockmovedeventty read foncolmoved
write foncolmoved; |
|
property onrowcountchanged: gridnotifyeventty read fonrowcountchanged
write fonrowcountchanged; |
|
property onrowsdatachanged: griddatablockeventty read fonrowsdatachanged
write fonrowsdatachanged; |
|
property onrowdatachanged: griddataeventty read fonrowdatachanged
write fonrowdatachanged; |
|
property onrowsmoving: gridblockmovingeventty read fonrowsmoving
write fonrowsmoving; |
|
property onrowsmoved: gridblockmovedeventty read fonrowsmoved
write fonrowsmoved; |
|
property onscrollrows: gridscrolleventty read fonscrollrows
write fonscrollrows; |
|
property ongetmorerows: gridmorerowseventty read fongetmorerows
write fongetmorerows; |
|
property onrowsinserting: gridbeforeblockeventty read fonrowsinserting
write fonrowsinserting; |
|
property onrowsinserted: gridblockeventty read fonrowsinserted
write fonrowsinserted; |
|
property onrowsdeleting: gridbeforeblockeventty read fonrowsdeleting
write fonrowsdeleting; |
|
property onrowsdeleted: gridblockeventty read fonrowsdeleted
write fonrowsdeleted; |
|
property onrowsmodified: notifyeventty read fonrowsmodified
write fonrowsmodified; |
|
property onedited: notifyeventty read fonedited write fonedited; |
|
property onsort: gridsorteventty read fonsort write fonsort; |
|
property onsortchanged: gridnotifyeventty read fonsortchanged
write fonsortchanged; |
|
property oncellevent: celleventty read foncellevent write foncellevent; |
|
property onselectionchanged: notifyeventty read fonselectionchanged
write fonselectionchanged; |
|
property oncopyselection: copyselectioneventty read foncopyselection
write foncopyselection; |
|
property onpasteselection: pasteselectioneventty read fonpasteselection
write fonpasteselection; |
|
property drag: tdragcontroller read fdragcontroller write setdragcontroller; |
|
property frame: tgridframe read getframe write setframe; |
|
property font: twidgetfont read getfont write setfont stored isfontstored; |
|
property fontempty: twidgetfontempty read getfontempty
write setfontempty stored isfontemptystored; |
|
property onkeydown: keyeventty read fonkeydown write fonkeydown; |
|
property wheelscrollheight: integer read fwheelscrollheight write
fwheelscrollheight default defaultwheelscrollheight; |
|
property optionswidget default defaultgridwidgetoptions; |
|
property optionswidget1 default defaultgridwidgetoptions1; |
|
property onshortcut; |
Description
Fields
fupdating: integer; |
|
ffocuscount: integer; |
|
fcellvaluechecking: integer; |
|
flastcol: integer; |
|
fpropcolwidthref: integer; |
|
fzebra_start: integer; |
|
fzebra_color: colorty; |
|
fzebra_height: integer; |
|
fzebra_step: integer; |
|
ffocusedcell: gridcoordty; |
|
fmousecell: gridcoordty; |
|
fmouseeventcol: integer; |
|
factiverow: integer; |
|
fstartanchor: gridcoordty; |
|
fendanchor: gridcoordty; |
|
foptionsgrid: optionsgridty; |
|
foptionsgrid1: optionsgrid1ty; |
|
fstate: gridstatesty; |
|
fstate1: gridstates1ty; |
|
fshowcell: gridcoordty; |
|
fshowcellmode: cellpositionty; |
|
ffixcols: tfixcols; |
|
ffixrows: tfixrows; |
|
fdatacols: tdatacols; |
|
fdatarowheight: integer; |
|
frowcount: integer; |
|
frowcountmax: integer; |
|
fscrollrect: rectty; |
|
fdatarect: rectty; |
|
fdatarectx: rectty; |
|
fdatarecty: rectty; |
|
frootbrushorigin: pointty; |
|
fbrushorigin: pointty; |
|
fdragcontroller: tdragcontroller; |
|
fobjectpicker: tobjectpicker; |
|
fpickkind: pickobjectkindty; |
|
fnumoffset: integer; |
|
fnonullcheck: integer; |
|
fnocheckvalue: integer; |
|
fappendcount: integer; |
|
flastcellpos: pointty; |
|
flastcellzone: cellzonety; |
|
Methods
class function classskininfo: skininfoty; override; |
|
function checkrowindex(var aindex: integer): boolean; |
|
procedure setselected(const cell: gridcoordty; const avalue: boolean); virtual; |
|
procedure internalselectionchanged; |
|
procedure setoptionsgrid(const avalue: optionsgridty); virtual; |
|
function updatesortcol(const avalue: integer): integer; virtual; |
|
function getsortdescend(const acol: integer): boolean; |
|
procedure checkrowreadonlystate; virtual; |
|
procedure checkneedsrowheight; |
|
procedure updaterowheight(const arow: integer; var arowheight: integer); |
|
function setuserinput(const avalue: boolean): boolean; |
|
procedure resetuserinput(const avalue: boolean); |
|
procedure doinsertrow(const sender: tobject); virtual; |
|
procedure doappendrow(const sender: tobject); virtual; |
|
function deleterowconfirmation(): boolean; |
|
procedure dodeleterow(const sender: tobject); virtual; |
|
procedure dodeleteselectedrows(const sender: tobject); virtual; |
|
procedure dodeleterows(const sender: tobject); |
|
procedure docopycells(const sender: tobject); |
|
procedure dopastecells(const sender: tobject); |
|
procedure initeventinfo(const cell: gridcoordty; eventkind: celleventkindty; out info: celleventinfoty); |
|
procedure invalidate; |
|
procedure invalidatesinglecell(const cell: gridcoordty); |
|
function caninvalidate: boolean; |
|
function docheckcellvalue: boolean; |
|
procedure dolayoutchanged; virtual; |
|
procedure internalupdatelayout(const force: boolean = false); |
|
procedure updatelayout; virtual; |
|
function intersectdatarect(var arect: rectty): boolean; |
|
procedure setdatarowheight(const value: integer); |
|
function getcaretcliprect: rectty; override; |
|
procedure checkdatacell(const coord: gridcoordty); |
|
procedure datacellerror(const coord: gridcoordty); |
|
procedure error(aerror: griderrorty; text: string = ''); |
|
procedure indexerror(row: boolean; index: integer; text: string = ''); |
|
procedure defineproperties(filer: tfiler); override; |
|
function getdisprect: rectty; override; |
|
procedure dofontheightdelta(var delta: integer); override; |
|
procedure fontchanged; override; |
|
procedure clientrectchanged; override; |
|
procedure internalcreateframe; override; |
|
function getscrollrect: rectty; |
|
procedure setscrollrect(const rect: rectty); |
|
function scrollcaret(const vertical: boolean): boolean; virtual; |
|
procedure firstcellclick(const cell: gridcoordty; var info: mouseeventinfoty); virtual; |
|
function getzebrastart: integer; virtual; |
|
function getnumoffset: integer; virtual; |
|
function createdatacols: tdatacols; virtual; |
|
procedure createdatacol(const index: integer; out item: tdatacol); virtual; |
|
function createfixcols: tfixcols; virtual; |
|
function createfixrows: tfixrows; virtual; |
|
procedure initcellinfo(var info: cellinfoty); virtual; |
|
function cellhasfocus: boolean; virtual; |
|
procedure colchanged(const sender: tcol); |
|
procedure cellchanged(const sender: tcol; const row: integer); |
|
procedure focusedcellchanged; virtual; |
|
procedure rowchanged(const arow: integer); virtual; |
|
procedure rowstatechanged(const arow: integer); virtual; |
|
procedure scrolled(const dist: pointty); virtual; |
|
function hascolumnsort: boolean; |
|
procedure sortchanged(const all: boolean); |
|
procedure checkinvalidate; |
|
function startanchor: gridcoordty; |
|
function endanchor: gridcoordty; |
|
procedure doselectionchanged; virtual; |
|
procedure docolmoved(const fromindex,toindex: integer); virtual; |
|
procedure dorowsmoved(const fromindex,toindex,count: integer); virtual; |
|
procedure dorowsinserting(var index,count: integer); virtual; |
|
procedure dorowsinserted(const index,count: integer); virtual; |
|
procedure dorowsdeleting(var index,count: integer); virtual; |
|
procedure dorowsdeleted(index,count: integer); virtual; |
|
procedure dorowsmodified; |
|
procedure doedited(); |
|
procedure dorowsdatachanged(const acell: gridcoordty; const acount: integer); virtual; |
|
procedure dorowcountchanged(const countbefore,newcount: integer); virtual; |
|
procedure docellevent(var info: celleventinfoty); virtual; |
|
procedure cellmouseevent(const acell: gridcoordty; var info: mouseeventinfoty; const acellinfopo: pcelleventinfoty = nil; const aeventkind: celleventkindty = cek_none); |
|
procedure dofocusedcellposchanged; virtual; |
|
function isfirstrow: boolean; virtual; |
|
function islastrow: boolean; virtual; |
|
procedure internalinsertrow(var aindex: integer; var acount: integer; const auserinput: boolean); virtual; |
|
procedure internaldeleterow(var aindex: integer; var acount: integer; const auserinput: boolean); virtual; |
|
function internalsort(const sortfunc: indexsortcomparemethodty; var refindex: integer): boolean; |
|
procedure updaterowdata; virtual; |
|
procedure objectevent(const sender: tobject; const event: objecteventty); override; |
|
procedure doasyncevent(var atag: integer) override; |
|
procedure loaded; override; |
|
procedure doexit; override; |
|
procedure doenter; override; |
|
procedure doactivate; override; |
|
procedure dodeactivate; override; |
|
procedure activechanged; override; |
|
procedure getautopaintsize(var asize: sizety) override; |
|
procedure mouseevent(var info: mouseeventinfoty); override; |
|
procedure clientmouseevent(var info: mouseeventinfoty); override; |
|
procedure domousewheelevent(var info: mousewheeleventinfoty); override; |
|
procedure dokeydown(var info: keyeventinfoty); override; |
|
procedure dokeyup(var info: keyeventinfoty); override; |
|
procedure dopaintforeground(const acanvas: tcanvas); override; |
|
procedure dobeforepaint(const canvas: tcanvas); override; |
|
procedure doafterpaint(const canvas: tcanvas); override; |
|
function getnoscroll(): boolean override; |
|
procedure drawfocusedcell(const acanvas: tcanvas); virtual; |
|
procedure drawcellbackground(const acanvas: tcanvas); |
|
procedure drawcelloverlay(const acanvas: tcanvas); |
|
function caninsertrow: boolean; virtual; |
|
function canappendrow: boolean; virtual; |
|
function candeleterow: boolean; virtual; |
|
function canmoverow: boolean; virtual; |
|
procedure updatepopupmenu(var amenu: tpopupmenu; var mouseinfo: mouseeventinfoty); override; |
|
function rowatpos(y: integer): integer; |
|
function rowpos(arow: integer): integer; |
|
function ystep: integer; |
|
function mergestart(const acol: integer; const arow: integer): integer; |
|
function mergeend(const acol: integer; const arow: integer): integer; |
|
function getmerged(const arow: integer): longword; |
|
function nextfocusablecol(const acol: integer; const aleft: boolean; const arow: integer; const noreadonly: boolean): integer; |
|
procedure checkcellvalue(var accept: boolean); virtual; |
|
procedure checkmorerows(const acount: integer); |
|
procedure beforefocuscell(const cell: gridcoordty; const selectaction: focuscellactionty); virtual; |
|
procedure afterfocuscell(const cellbefore: gridcoordty; const selectaction: focuscellactionty); virtual; |
|
function wheelheight: integer; |
|
function calcshowshift(const rect: rectty; const position: cellpositionty): pointty; |
|
procedure focusrow(const arow: integer; const action: focuscellactionty; const noreadonly: boolean; const selectmode: selectcellmodety = scm_cell); |
|
function doremoveappinsrow(const oldrow,newrow: integer): boolean; |
|
function hassort: boolean; |
|
function canautoappend: boolean; virtual; |
|
function getdragrect(const apos: pointty): rectty; override; |
|
procedure scrollevent(sender: tcustomscrollbar; event: scrolleventty); virtual; |
|
function getcursorshape(const sender: tobjectpicker; var shape: cursorshapety): boolean; |
|
procedure getpickobjects(const sender: tobjectpicker; var objects: integerarty); |
|
procedure beginpickmove(const sender: tobjectpicker); |
|
procedure pickthumbtrack(const sender: tobjectpicker); |
|
procedure endpickmove(const sender: tobjectpicker); |
|
procedure cancelpickmove(const sender: tobjectpicker); |
|
procedure paintxorpic(const sender: tobjectpicker; const canvas: tcanvas); |
|
procedure dostatread(const reader: tstatreader); virtual; |
|
procedure dostatwrite(const writer: tstatwriter); virtual; |
|
procedure statreading; |
|
procedure statread; |
|
function getstatvarname: msestring; |
|
function getstatpriority: integer; |
|
procedure beginnullchecking; |
|
procedure endnullchecking; |
|
procedure beginnonullcheck; |
|
procedure endnonullcheck; |
|
procedure beginnocheckvalue; |
|
procedure endnocheckvalue; |
|
function nocheckvalue: boolean; |
|
procedure reorderrow; |
|
function getiassistiveclient(): iassistiveclient; override; |
|
function getassistiveflags(): assistiveflagsty; override; |
|
function getassistivecellcaption(const acell: gridcoordty): msestring virtual; |
|
function getassistivecelltext(const acell: gridcoordty; out aflags: assistiveflagsty): msestring virtual; |
|
function getassistivefocusedcell(): gridcoordty; |
|
function getassistivegridinfo(): assistivegridinfoty virtual; |
|
constructor create(aowner: tcomponent); override; |
|
destructor destroy; override; |
|
procedure initnewcomponent(const ascale: real); override; |
|
procedure synctofontheight; override; |
|
procedure dragevent(var info: draginfoty); override; |
|
function internaldragevent(var info: draginfoty): boolean; virtual; |
|
function actualcursor(const apos: pointty): cursorshapety; override; |
|
procedure beginupdate; |
|
procedure endupdate(const nosort: boolean = false; const invalidrowstart: int32 = 0); |
|
function updating: boolean; reintroduce; |
|
function calcminscrollsize: sizety; override; |
|
procedure layoutchanged; |
|
function cellclicked: boolean; |
|
procedure rowdatachanged; overload; |
|
procedure rowdatachanged(const acell: gridcoordty; const count: integer = 1); overload; |
|
procedure rowup(const action: focuscellactionty = fca_focusin; const nowrap: boolean = false) virtual; |
|
procedure rowdown(const action: focuscellactionty = fca_focusin; const nowrap: boolean = false) virtual; |
|
procedure pageup(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure pagedown(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure wheelup(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure wheeldown(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure lastrow(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure firstrow(const action: focuscellactionty = fca_focusin); virtual; |
|
procedure colstep(const action: focuscellactionty; const step: integer; const rowchange: boolean; const nocolwrap: boolean; const noreadonly: boolean); virtual; |
|
function hasdata: boolean; |
|
function canexitrow(const force: boolean = false): boolean; |
|
function cellexiting: boolean; |
|
function gridprop(const coord: gridcoordty): tgridprop; |
|
function isdatacell(const coord: gridcoordty): boolean; |
|
function isvalidcell(const coord: gridcoordty): boolean; |
|
function isfixrow(const coord: gridcoordty): boolean; |
|
function isfixcol(const coord: gridcoordty): boolean; |
|
function rowvisible(const arow: integer): integer; |
|
function rowsperpage: integer; |
|
function cellatpos(const apos: pointty; out coord: gridcoordty): cellkindty; overload; |
|
function cellatpos(const apos: pointty): gridcoordty; overload; |
|
function cellrect(const cell: gridcoordty; const innerlevel: cellinnerlevelty = cil_all; const nomerged: boolean = false; const acellorigin: boolean = false): rectty; |
|
function clippedcellrect(const cell: gridcoordty; const innerlevel: cellinnerlevelty = cil_all): rectty; |
|
function cellvisible(const acell: gridcoordty): boolean; |
|
procedure invalidatecell(const cell: gridcoordty); |
|
procedure invalidatefocusedcell; |
|
procedure invalidaterow(const arow: integer); |
|
function selectcell(const cell: gridcoordty; const amode: cellselectmodety; const checkmultiselect: boolean = false): boolean; |
|
function getselectedrange: gridrectty; |
|
function focuscell(cell: gridcoordty; selectaction: focuscellactionty = fca_focusin; const selectmode: selectcellmodety = scm_cell; const ashowcell: cellpositionty = cep_nearest): boolean; virtual; |
|
procedure focuscolbyname(const aname: string); |
|
function focusedcellvalid: boolean; |
|
function rowremoving: boolean; |
|
function scrollingcol: boolean; |
|
function noscrollingcol: boolean; |
|
function defocuscell: boolean; |
|
function defocusrow: boolean; |
|
function showrect(const rect: rectty; const position: cellpositionty = cep_nearest; const noxshift: boolean = false): pointty; |
|
function showcaretrect(const arect: rectty; const aframe: tcustomframe): pointty; overload; |
|
function showcaretrect(const arect: rectty; const aframe: framety): pointty; overload; |
|
function showcellrect(const rect: rectty; const origin: cellinnerlevelty = cil_paint): pointty; |
|
procedure showcell(const cell: gridcoordty; const position: cellpositionty = cep_nearest; const force: boolean = false); |
|
procedure showrow(const arow: integer; const position: cellpositionty = cep_nearest; const force: boolean = false); |
|
procedure showlastrow; |
|
procedure scrollrows(step: integer); |
|
procedure scrollleft; |
|
procedure scrollright; |
|
procedure scrollpageleft; |
|
procedure scrollpageright; |
|
function userinput: boolean; |
|
procedure movecol(curindex,newindex: integer; const auserinput: boolean = false); virtual; |
|
procedure moverow(curindex,newindex: integer; count: integer = 1; const auserinput: boolean = false); virtual; |
|
function insertrow(aindex: integer; acount: integer = 1; const auserinput: boolean = false): int32; |
|
procedure deleterow(aindex: integer; acount: integer = 1; const auserinput: boolean = false); |
|
function appinsrow(aindex: integer;const auserinput: boolean = false): int32; |
|
function isinsertempty: boolean; |
|
function isautoappend: boolean; |
|
function autoappending: boolean; |
|
function checkreautoappend: boolean; |
|
procedure removeappendedrow; |
|
function autoremoving: boolean; |
|
procedure clear; |
|
function appendrow(const checkautoappend: boolean = false): integer; |
|
function appenddatarow: integer; |
|
procedure sortinvalid(const acol: integer = invalidaxis; const arow: integer = invalidaxis); |
|
function checksort: boolean; |
|
procedure sort; |
|
function copyselection: boolean; virtual; |
|
function pasteselection: boolean; virtual; |
|
function rowhigh: integer; |
|
function datarowhigh: integer; |
|
function visiblerow(const arow: integer): integer; |
|
function rowfoldinfo: prowfoldinfoty; |
|
Properties
property cellwindowpos: pointty read getcellwindowpos
write setcellwindowpos; |
|
property rowwindowpos: int32 read getrowwindowpos write setrowwindowpos; |
|
property colwindowpos: int32 read getcolwindowpos write setcolwindowpos; |
|
property optionsgrid: optionsgridty read foptionsgrid write setoptionsgrid
default defaultoptionsgrid; |
|
property optionsgrid1: optionsgrid1ty read foptionsgrid1 write foptionsgrid1
default []; |
|
property optionsfold: optionsfoldty read foptionsfold
write foptionsfold default []; |
|
property norowedit: boolean read fnorowedit write fnorowedit; |
|
property sorted: boolean read getsorted write setsorted; |
|
property folded: boolean read getfolded write setfolded; |
|
property datarowlinewidth: integer read fdatarowlinewidth
write setdatarowlinewidth default defaultgridlinewidth; |
|
property datarowlinecolorfix: colorty read fdatarowlinecolorfix
write setdatarowlinecolorfix default defaultfixlinecolor; |
|
property datarowlinecolor: colorty read fdatarowlinecolor
write setdatarowlinecolor default defaultdatalinecolor; |
|
property datarowheight: integer read fdatarowheight
write setdatarowheight default griddefaultrowheight; |
|
property datarowheightmin: integer read fdatarowheightmin
write fdatarowheightmin default 1; |
|
property datarowheightmax: integer read fdatarowheightmax
write fdatarowheightmax default maxint; |
|
property datacols: tdatacols read fdatacols write setdatacols; |
|
property fixcols: tfixcols read ffixcols write setfixcols; |
|
property fixrows: tfixrows read ffixrows write setfixrows; |
|
property rowcount: integer read frowcount write setrowcount default 0; |
|
property rowcountmax: integer read frowcountmax
write setrowcountmax default bigint; |
|
property firstvisiblerow: integer read ffirstvisiblerow; |
|
property lastvisiblerow: integer read flastvisiblerow; |
|
property visiblerows: integerarty read fvisiblerows; |
|
property focusedcell: gridcoordty read ffocusedcell; |
|
property col: integer read ffocusedcell.col write setcol; |
|
property row: integer read ffocusedcell.row write setrow; |
|
property mousecell: gridcoordty read fmousecell; |
|
property gridframecolor: colorty read fgridframecolor
write setgridframecolor default cl_gridframe; |
|
property rowcolors: tcolorarrayprop read frowcolors write setrowcolors; |
|
property rowcolorstate[index:integer]: rowstatenumty read getrowcolorstate
write setrowcolorstate; |
|
property rowlinecolorstate[index:integer]: rowstatenumty read getrowlinecolorstate
write setrowlinecolorstate; |
|
property rowlinecolorfixstate[index:integer]: rowstatenumty
read getrowlinecolorfixstate
write setrowlinecolorfixstate; |
|
property rowlinewidth[index:integer]: rowlinewidthty read getrowlinewidth
write setrowlinewidth; |
|
property rowfonts: trowfontarrayprop read frowfonts write setrowfonts; |
|
property rowfontstate[index:integer]: rowstatenumty read getrowfontstate
write setrowfontstate; |
|
property rowreadonlystate[index:integer]: boolean read getrowreadonlystate
write setrowreadonlystate; |
|
property rowhidden[index:integer]: boolean read getrowhidden
write setrowhidden; |
|
property rowfoldlevel[index:integer]: byte read getrowfoldlevel
write setrowfoldlevel; |
|
property rowfoldissum[index:integer]: boolean read getrowfoldissum
write setrowfoldissum; |
|
property rowheight[index:integer]: integer read getrowheight
write setrowheight; |
|
property rowstatelist: trowstatelist read getrowstatelist
write setrowstatelist; |
|
property ifilink: tifigridlinkcomp read fifilink write setifilink; |
|
property zebra_color: colorty read fzebra_color write setzebra_color
default cl_zebra; |
|
property zebra_start: integer read fzebra_start write setzebra_start default 0; |
|
property zebra_height: integer read fzebra_height write setzebra_height default 0; |
|
property zebra_step: integer read fzebra_step write setzebra_step default 2; |
|
property statfile: tstatfile read fstatfile write setstatfile; |
|
property statvarname: msestring read getstatvarname write fstatvarname; |
|
property statpriority: integer read fstatpriority
write fstatpriority default 0; |
|
property onbeforeupdatelayout: gridnotifyeventty
read fonbeforeupdatelayout write fonbeforeupdatelayout; |
|
property onlayoutchanged: gridnotifyeventty read fonlayoutchanged
write fonlayoutchanged; |
|
property oncolmoving: gridblockmovingeventty read foncolmoving
write foncolmoving; |
|
property oncolmoved: gridblockmovedeventty read foncolmoved
write foncolmoved; |
|
property onrowcountchanged: gridnotifyeventty read fonrowcountchanged
write fonrowcountchanged; |
|
property onrowsdatachanged: griddatablockeventty read fonrowsdatachanged
write fonrowsdatachanged; |
|
property onrowdatachanged: griddataeventty read fonrowdatachanged
write fonrowdatachanged; |
|
property onrowsmoving: gridblockmovingeventty read fonrowsmoving
write fonrowsmoving; |
|
property onrowsmoved: gridblockmovedeventty read fonrowsmoved
write fonrowsmoved; |
|
property onscrollrows: gridscrolleventty read fonscrollrows
write fonscrollrows; |
|
property ongetmorerows: gridmorerowseventty read fongetmorerows
write fongetmorerows; |
|
property onrowsinserting: gridbeforeblockeventty read fonrowsinserting
write fonrowsinserting; |
|
property onrowsinserted: gridblockeventty read fonrowsinserted
write fonrowsinserted; |
|
property onrowsdeleting: gridbeforeblockeventty read fonrowsdeleting
write fonrowsdeleting; |
|
property onrowsdeleted: gridblockeventty read fonrowsdeleted
write fonrowsdeleted; |
|
property onrowsmodified: notifyeventty read fonrowsmodified
write fonrowsmodified; |
|
property onedited: notifyeventty read fonedited write fonedited; |
|
property onsort: gridsorteventty read fonsort write fonsort; |
|
property onsortchanged: gridnotifyeventty read fonsortchanged
write fonsortchanged; |
|
property oncellevent: celleventty read foncellevent write foncellevent; |
|
property onselectionchanged: notifyeventty read fonselectionchanged
write fonselectionchanged; |
|
property oncopyselection: copyselectioneventty read foncopyselection
write foncopyselection; |
|
property onpasteselection: pasteselectioneventty read fonpasteselection
write fonpasteselection; |
|
property drag: tdragcontroller read fdragcontroller write setdragcontroller; |
|
property frame: tgridframe read getframe write setframe; |
|
property font: twidgetfont read getfont write setfont stored isfontstored; |
|
property fontempty: twidgetfontempty read getfontempty
write setfontempty stored isfontemptystored; |
|
property onkeydown: keyeventty read fonkeydown write fonkeydown; |
|
property wheelscrollheight: integer read fwheelscrollheight write
fwheelscrollheight default defaultwheelscrollheight; |
|
property optionswidget default defaultgridwidgetoptions; |
|
property optionswidget1 default defaultgridwidgetoptions1; |
|
property onshortcut; |
|
Generated by PasDoc 0.16.0.