Class twidget

Unit

Declaration

type twidget = class(tactcomponent, iscrollframe, iface, iassistiveclient)

Description

No description available, ancestor tactcomponent description follows
No description available, ancestor tmsecomponent description follows

Hierarchy

Overview

Fields

Protected fwidgets: widgetarty;
Protected fnoinvalidate: integer;
Protected fwidgetupdating: integer;
Protected foptionswidget: optionswidgetty;
Protected foptionswidget1: optionswidget1ty;
Protected fparentwidget: twidget;
Protected fanchors: anchorsty;
Protected fwidgetstate: widgetstatesty;
Protected fwidgetstate1: widgetstates1ty;
Protected fcolor: colorty;
Protected fwindow: twindow;
Protected fwidgetrect: rectty;
Protected fparentclientsize: sizety;
Protected fframe: tcustomframe;
Protected fface: tcustomface;
Protected ffont: twidgetfont;
Protected ffontempty: twidgetfontempty;
Protected fhint: msestring;
Protected fdefaultfocuschild: twidget;

Methods

Protected procedure checksizes();
Protected function widgetminsize1: sizety;
Protected function widgetmaxsize1: sizety;
Protected function minclientsize: sizety;
Protected function isdesignwidget(): boolean; virtual;
Protected procedure setdesignwidget();
Protected procedure designmouseevent(var info: moeventinfoty; capture: twidget); virtual;
Protected procedure designkeyevent(const eventkind: eventkindty; var info: keyeventinfoty); virtual;
Protected procedure defineproperties(filer: tfiler); override;
Protected function gethelpcontext: msestring; override;
Protected class function classskininfo: skininfoty; override;
Protected function skininfo: skininfoty; override;
Protected function hasskin: boolean; override;
Protected function navigstartrect: rectty; virtual;
Protected function navigrect: rectty; virtual;
Protected procedure navigrequest(var info: naviginfoty; const nowrap: boolean = false); virtual;
Protected function navigdistance(var info: naviginfoty; const nowrap: boolean = false): integer; virtual;
Protected function nexttaborderoverride(const sender: twidget; const down: boolean = false): twidget virtual;
Protected function getwidgetrects(const awidgets: array of twidget): rectarty;
Protected procedure setwidgetrects(const awidgets: array of twidget; const arects: rectarty);
Protected procedure updateroot;
Protected procedure setcolor(const avalue: colorty); virtual;
Protected function gethint: msestring; virtual;
Protected procedure sethint(const Value: msestring); virtual;
Protected function ishintstored: boolean; virtual;
Protected function getshowhint: boolean;
Protected procedure showhint(const aid: int32; var info: hintinfoty); virtual;
Protected function isgroupleader: boolean; virtual;
Protected function needsfocuspaint: boolean; virtual;
Protected function needsfocuspaintstate(): boolean;
Protected function getnoscroll(): boolean; virtual;
Protected function getenabled: boolean;
Protected procedure setenabled(const Value: boolean); virtual;
Protected function getvisible: boolean;
Protected procedure setvisible(const avalue: boolean); virtual;
Protected function isvisible: boolean;
Protected function parentisvisible: boolean;
Protected function parentvisible: boolean;
Protected function updateopaque(const children: boolean; const widgetregioncall: boolean): boolean;
Protected procedure dragstarted; virtual;
Protected function getzoomrefframe: framety; virtual;
Protected function getdragrect(const apos: pointty): rectty; virtual;
Protected procedure widgetregioninvalid;
Protected procedure setframeinstance(instance: tcustomframe); virtual;
Protected procedure setstaticframe(value: boolean);
Protected function getstaticframe: boolean;
Protected function getwidgetrect: rectty;
Protected function getcomponentstate: tcomponentstate;
Protected function getframestateflags: framestateflagsty; virtual;
Protected function getwidget: twidget;
Protected function getframe: tcustomframe;
Protected procedure setframe(const avalue: tcustomframe);
Protected function getface: tcustomface;
Protected procedure setface(const avalue: tcustomface);
Protected function getgdi: pgdifunctionaty; virtual;
Protected procedure createwindow; virtual;
Protected procedure objectchanged(const sender: tobject); virtual;
Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;
Protected procedure receiveevent(const event: tobjectevent); override;
Protected procedure setchildorder(child: tcomponent; order: integer); overload; override;
Protected procedure setparentcomponent(value: tcomponent); override;
Protected function clearparentwidget: twidget;
Protected procedure setparentwidget(const Value: twidget); virtual;
Protected procedure setlockedparentwidget(const avalue: twidget);
Protected procedure updatewindowinfo(var info: windowinfoty); virtual;
Protected procedure windowcreated; virtual;
Protected procedure setoptionswidget(const avalue: optionswidgetty); virtual;
Protected procedure setoptionswidget1(const avalue: optionswidget1ty); virtual;
Protected procedure getchildren(proc: tgetchildproc; root: tcomponent); override;
Protected procedure initparentclientsize;
Protected function getcaretcliprect: rectty; virtual;
Protected procedure dobeginread; override;
Protected procedure doendread; override;
Protected procedure loaded; override;
Protected procedure setdesigning(value: boolean; setchildren : boolean = true); override;
Protected procedure updatemousestate(const info: mouseeventinfoty); virtual;
Protected procedure setclientclick;
Protected procedure releasebuttonpressgrab();
Protected procedure registerchildwidget(const child: twidget); virtual;
Protected procedure unregisterchildwidget(const child: twidget); virtual;
Protected function isfontstored: Boolean;
Protected procedure setfont(const avalue: twidgetfont);
Protected function getfont: twidgetfont;
Protected function getfont1: twidgetfont;
Protected function isfontemptystored: Boolean;
Protected procedure setfontempty(const avalue: twidgetfontempty);
Protected function getfontempty: twidgetfontempty;
Protected function getfontempty1: twidgetfontempty;
Protected function getframefont: tfont;
Protected procedure fontchanged; virtual;
Protected procedure fontcanvaschanged; virtual;
Protected procedure updatecursorshape(apos: pointty);
Protected procedure parentclientrectchanged; virtual;
Protected procedure parentwidgetregionchanged(const sender: twidget); virtual;
Protected procedure widgetregionchanged(const sender: twidget); virtual;
Protected procedure scalebasechanged(const sender: twidget); virtual;
Protected procedure ifiwidgetstatechanged;
Protected function getifiwidgetstate: ifiwidgetstatesty; virtual;
Protected procedure cursorchanged;
Protected procedure statechanged; virtual;
Protected procedure enabledchanged; virtual;
Protected procedure activechanged; virtual;
Protected procedure visiblepropchanged; virtual;
Protected procedure visiblechanged; virtual;
Protected procedure colorchanged; virtual;
Protected procedure sizechanged; virtual;
Protected procedure getautopaintsize(var asize: sizety); virtual;
Protected procedure getautocellsize(const acanvas: tcanvas; var asize: sizety); virtual;
Protected procedure childclientrectchanged(const sender: twidget); virtual;
Protected procedure childautosizechanged(const sender: twidget); virtual;
Protected procedure poschanged; virtual;
Protected procedure clientrectchanged; virtual;
Protected procedure parentchanged; virtual;
Protected procedure rootchanged(const aflags: rootchangeflagsty); virtual;
Protected function getdefaultfocuschild: twidget; virtual;
Protected procedure setdefaultfocuschild(const value: twidget); virtual;
Protected function trycancelmodal(const newactive: twindow): boolean; virtual;
Protected procedure sortzorder;
Protected function needsdesignframe: boolean; virtual;
Protected function getactface: tcustomface; virtual;
Protected procedure dobeforepaint(const canvas: tcanvas); virtual;
Protected procedure dopaint(const canvas: tcanvas); virtual;
Protected procedure paintbackground(const canvas: tcanvas; const arect: rectty); virtual;
Protected procedure dopaintbackground(const canvas: tcanvas); virtual;
Protected procedure doonpaintbackground(const canvas: tcanvas); virtual;
Protected procedure dobeforepaintforeground(const canvas: tcanvas); virtual;
Protected procedure dopaintforeground(const canvas: tcanvas); virtual;
Protected procedure doonpaint(const canvas: tcanvas); virtual;
Protected procedure paintoverlay(const canvas: tcanvas; const arect: rectty); virtual;
Protected procedure dopaintoverlay(const canvas: tcanvas); virtual;
Protected procedure doafterpaint(const canvas: tcanvas); virtual;
Protected procedure doscroll(const dist: pointty); virtual;
Protected procedure doscrolled(const dist: pointty); virtual;
Protected procedure doloaded() virtual;
Protected procedure dohide() virtual;
Protected procedure doshow() virtual;
Protected procedure doactivate() virtual;
Protected procedure doafteractivate() virtual;
Protected procedure dodeactivate() virtual;
Protected procedure doenter() virtual;
Protected procedure doexit() virtual;
Protected procedure dofocus() virtual;
Protected procedure dodefocus() virtual;
Protected procedure dochildfocused(const sender: twidget); virtual;
Protected procedure dofocuschanged(const oldwidget,newwidget: twidget); virtual;
Protected procedure domousewheelevent(var info: mousewheeleventinfoty); virtual;
Protected function wantmousefocus(const info: mouseeventinfoty): boolean;
Protected procedure reflectmouseevent(var info: mouseeventinfoty);
Protected procedure mouseevent(var info: mouseeventinfoty); virtual;
Protected procedure mousepreview(const sender: twidget; var info: mouseeventinfoty); virtual;
Protected procedure childmouseevent(const sender: twidget; var info: mouseeventinfoty); virtual;
Protected procedure clientmouseevent(var info: mouseeventinfoty); virtual;
Protected procedure mousewheelevent(var info: mousewheeleventinfoty); virtual;
Protected procedure dokeydown1(var info: keyeventinfoty);
Protected procedure dokeydown(var info: keyeventinfoty); virtual;
Protected procedure doshortcut(var info: keyeventinfoty; const sender: twidget); virtual;
Protected function checkfocusshortcut(var info: keyeventinfoty): boolean; virtual;
Protected procedure handlenavigkeys(var info: keyeventinfoty; const nowrap: boolean = false); virtual;
Protected procedure dokeydownaftershortcut(var info: keyeventinfoty); virtual;
Protected procedure dokeyup(var info: keyeventinfoty); virtual;
Protected procedure dofontchanged(const sender: tobject);
Protected procedure setfontheight;
Protected procedure postchildscaled;
Protected function verticalfontheightdelta: boolean; virtual;
Protected procedure dofontheightdelta(var delta: integer); virtual;
Protected procedure syncsinglelinefontheight(const lineheight: boolean = false; const space: integer = 2);
Protected procedure setwidgetrect(const Value: rectty);
Protected procedure internalsetwidgetrect(Value: rectty; const windowevent: boolean); virtual;
Protected function getclientpos: pointty;
Protected function getclientsize: sizety;
Protected procedure setclientsize(const asize: sizety); virtual;
Protected function getclientwidth: integer;
Protected procedure setclientwidth(const avalue: integer);
Protected function getclientheight: integer;
Protected procedure setclientheight(const avalue: integer);
Protected function internalshow(const modallevel: modallevelty; const transientfor: pwindow; const windowevent,nomodalforreset: boolean): modalresultty; virtual;
Protected procedure internalhide(const windowevent: boolean);
Protected function checksubfocus(const aactivate: boolean): boolean; virtual;
Protected function getnextfocus: twidget;
Protected function cantabfocus: boolean;
Protected function getdisprect: rectty; virtual;
Protected function getshrinkpriority: integer; virtual;
Protected procedure tryshrink(const aclientsize: sizety); virtual;
Protected function calcminscrollsize: sizety; virtual;
Protected function getminshrinkpos: pointty; virtual;
Protected function calcminshrinksize: sizety; virtual;
Protected function getcontainer: twidget; virtual;
Protected function getchildwidgets(const index: integer): twidget; virtual;
Protected function getright: integer;
Protected procedure setright(const avalue: integer);
Protected function getbottom: integer;
Protected procedure setbottom(const avalue: integer);
Protected function ownswindow1: boolean;
Protected procedure internalcreateframe; virtual;
Protected procedure internalcreateface; virtual;
Protected function getfontclass: widgetfontclassty; virtual;
Protected function getfontemptyclass: widgetfontemptyclassty; virtual;
Protected procedure internalcreatefont; virtual;
Protected procedure internalcreatefontempty; virtual;
Protected function getclientrect: rectty;
Protected function windowpo: pwindowty;
Protected function canclose1: boolean;
Protected function getiassistiveclient(): iassistiveclient virtual;
Protected function getassistiveparent(): iassistiveclient virtual;
Protected function getassistivewidget(): tobject virtual;
Protected function getassistivename(): msestring virtual;
Protected function getassistivecaption(): msestring virtual;
Protected function getassistivetext(): msestring virtual;
Protected function getassistivecaretindex(): int32 virtual;
Protected function getassistivehint(): msestring virtual;
Protected function getassistiveflags(): assistiveflagsty virtual;
Protected function getifidatalinkintf(): iifidatalink virtual;
Public constructor create(aowner: tcomponent); overload; override;
Public constructor create(const aowner: tcomponent; const aparentwidget: twidget); overload;
Public constructor create(const aowner: tcomponent; const aparentwidget: twidget; const aiswidget: boolean); overload;
Public constructor createandinit(const aowner: tcomponent; const aparentwidget: twidget; const aiswidget: boolean); overload;
Public destructor destroy; override;
Public procedure afterconstruction; override;
Public procedure initnewcomponent(const ascale: real); override;
Public procedure initnewwidget(const ascale: real); virtual;
Public procedure createframe;
Public procedure createface;
Public procedure createfont;
Public procedure createfontempty;
Public procedure checkautosize();
Public procedure updatehotkeys() virtual;
Public function isloading: boolean;
Public procedure beginupdate;
Public procedure endupdate;
Public function canmouseinteract: boolean;
Public function canassistive(): boolean virtual;
Public function widgetstate: widgetstatesty;
Public function hasparent: boolean; override;
Public function getparentcomponent: tcomponent; override;
Public function hascaret: boolean;
Public function canwindow: boolean;
Public function windowallocated: boolean;
Public function ownswindow: boolean;
Public function updaterect: rectty;
Public procedure beforeclosequery(var amodalresult: modalresultty); virtual;
Public function canclose(const newfocus: twidget = nil): boolean; virtual;
Public function canparentclose(const newfocus: twidget): boolean; overload;
Public function forceclose: boolean;
Public function canparentclose: boolean; overload;
Public function canfocus: boolean; virtual;
Public function setfocus(aactivate: boolean = true): boolean; virtual;
Public procedure parentfocus;
Public procedure nextfocus;
Public function findtabfocus(const ataborder: integer): twidget;
Public function firsttabfocus: twidget;
Public function lasttabfocus: twidget;
Public function nexttaborder(const down: boolean = false; nowrap: boolean = false): twidget;
Public function focusback(const aactivate: boolean = true): boolean; virtual;
Public function parentcolor: colorty;
Public function actualcolor: colorty; virtual;
Public function actualopaquecolor: colorty; virtual;
Public function backgroundcolor: colorty;
Public function translatecolor(const acolor: colorty): colorty;
Public procedure widgetevent(const event: twidgetevent); virtual;
Public procedure sendwidgetevent(const event: twidgetevent);
Public procedure release(const nomodaldefer: boolean=false); override;
Public function show(const modallevel: modallevelty; const transientfor: twindow = nil): modalresultty; overload; virtual;
Public function show(const modallevel: modallevelty; const transientfor: twidget): modalresultty; overload;
Public function show(const modal: boolean = false; const transientfor: twindow = nil): modalresultty; overload;
Public procedure endmodal;
Public procedure hide;
Public procedure activate(const abringtofront: boolean = true; const aforce: boolean = false); virtual;
Public procedure bringtofront;
Public procedure sendtoback;
Public procedure stackunder(const predecessor: twidget);
Public procedure setchildorder(const achildren: widgetarty); overload;
Public procedure paint(const canvas: tcanvas); virtual;
Public procedure update; virtual;
Public procedure scrollwidgets(const dist: pointty);
Public procedure scrollrect(const dist: pointty; const rect: rectty; scrollcaret: boolean);
Public procedure scroll(const dist: pointty);
Public procedure clampinview(const arect: rectty; const bottomright: boolean = false); virtual;
Public procedure getcaret;
Public procedure scrollcaret(const dist: pointty);
Public function mousecaptured: boolean;
Public function capturemouse(grab: boolean = true): boolean;
Public procedure releasemouse(const grab: boolean = false);
Public function capturekeyboard: boolean;
Public procedure releasekeyboard;
Public procedure synctofontheight; virtual;
Public procedure dragevent(var info: draginfoty); virtual;
Public procedure dolayout(const sender: twidget); virtual;
Public procedure invalidatewidget;
Public procedure invalidate;
Public procedure invalidaterect(const rect: rectty; const org: originty = org_client; const noclip: boolean = false);
Public procedure invalidateframestate;
Public procedure invalidateframestaterect(const rect: rectty; const aframe: tcustomframe; const org: originty = org_client);
Public function hasoverlappingsiblings(arect: rectty): boolean;
Public function window: twindow;
Public function rootwidget: twidget;
Public function parentofcontainer: twidget;
Public function getrootwidgetpath: widgetarty;
Public function widgetcount: integer;
Public function parentwidgetindex: integer;
Public function indexofwidget(const awidget: twidget): integer;
Public function checkdescendent(awidget: twidget): boolean;
Public function checkancestor(awidget: twidget): boolean;
Public function containswidget(awidget: twidget): boolean;
Public function widgetatpos(var info: widgetatposinfoty): twidget; overload;
Public function widgetatpos(const pos: pointty): twidget; overload;
Public function widgetatpos(const pos: pointty; const state: widgetstatesty): twidget; overload;
Public function containeroffset: pointty;
Public function childrencount: integer; virtual;
Public function visiblechildrencount: integer;
Public function findtagchild(const atag: integer; const aclass: widgetclassty): twidget;
Public function findchild(const aname: ansistring): twidget;
Public function childatpos(const pos: pointty; const clientorigin: boolean = true): twidget; virtual;
Public function gettaborderedwidgets: widgetarty;
Public function getvisiblewidgets: widgetarty;
Public function getcornerwidget(const side: graphicdirectionty; const visibleonly: boolean): twidget;
Public function getsortxchildren(const banded: boolean = false): widgetarty;
Public function getsortychildren(const banded: boolean = false): widgetarty;
Public function getlogicalchildren: widgetarty; virtual;
Public procedure addlogicalchildren(var achildren: widgetarty);
Public function findlogicalchild(const aname: ansistring): twidget;
Public function enteredchild(): twidget;
Public function mouseeventwidget(const info: mouseeventinfoty): twidget;
Public procedure insertwidget(const awidget: twidget); overload;
Public procedure insertwidget(const awidget: twidget; const apos: pointty); overload; virtual;
Public function iswidgetclick(const info: mouseeventinfoty; const caption: boolean = false): boolean;
Public function iswidgetdblclick(const info: mouseeventinfoty; const caption: boolean = false): boolean;
Public function iswidgetdblclicked(const info: mouseeventinfoty; const caption: boolean = false): boolean;
Public function isclick(const info: mouseeventinfoty): boolean;
Public function isdblclick(const info: mouseeventinfoty): boolean;
Public function isdblclicked(const info: mouseeventinfoty): boolean;
Public function isleftbuttondown(const info: mouseeventinfoty): boolean; overload;
Public function isleftbuttondown(const info: mouseeventinfoty; const akeyshiftstate: shiftstatesty): boolean; overload;
Public function widgetmousepos(const ainfo: mouseeventinfoty): pointty;
Public function rootpos: pointty;
Public function rootwidgetrect: rectty;
Public function clientpostowidgetpos(const apos: pointty): pointty;
Public function widgetpostoclientpos(const apos: pointty): pointty;
Public function widgetpostopaintpos(const apos: pointty): pointty;
Public function paintpostowidgetpos(const apos: pointty): pointty;
Public procedure scale(const ascale: real); virtual;
Public function widgetscreenrect: rectty;
Public function widgetclientrect: rectty;
Public function widgetminsize: sizety;
Public function widgetmaxsize: sizety;
Public function maxclientsize: sizety; virtual;
Public function minscrollsize: sizety;
Public function minshrinksize: sizety;
Public procedure setclippedwidgetrect(arect: rectty);
Public function framedim: sizety;
Public function framedimnoscrollbar: sizety;
Public function clientframewidth: sizety;
Public function innerclientframewidth: sizety;
Public function innerframewidth: sizety;
Public function framerect: rectty;
Public function framepos: pointty;
Public function frameinnerrect: rectty;
Public function paintrect: rectty;
Public function paintclientrect: rectty;
Public function paintpos: pointty;
Public function clippedpaintrect: rectty;
Public function innerpaintrect: rectty;
Public procedure setanchordwidgetsize(const asize: sizety);
Public function widgetsizerect: rectty;
Public function paintsizerect: rectty;
Public function clientsizerect: rectty;
Public function containerclientsizerect: rectty;
Public procedure changeclientsize(const delta: sizety);
Public function clientwidgetrect: rectty;
Public function clientwidgetpos: pointty;
Public function clientparentpos: pointty;
Public function paintparentrect: rectty;
Public function paintparentpos: pointty;
Public function parentpaintpos: pointty;
Public function refpos(const aorigin: originty): pointty;
Public function paintrectparent: rectty;
Public function clientrectparent: rectty;
Public function innerparentrect: rectty;
Public function innerwidgetrect: rectty;
Public function innerclientrect: rectty;
Public function innerclientsize: sizety;
Public function innerclientpos: pointty;
Public function innerclientframe: framety;
Public function innerclientpaintpos: pointty;
Public function innerclientwidgetpos: pointty;
Public procedure innertopaintsize(var asize: sizety);
Public procedure outertopaintsize(var asize: sizety);
Public procedure painttowidgetsize(var asize: sizety);
Public procedure widgettopaintsize(var asize: sizety);
Public function getcanvas(aorigin: originty = org_client): tcanvas;
Public function showing: boolean;
Public function isenabled: boolean;
Public function active: boolean;
Public function entered: boolean;
Public function activeentered: boolean;
Public function activefocused(): boolean;
Public function focused: boolean;
Public function clicked: boolean;
Public procedure changedirection(const avalue: graphicdirectionty; var dest: graphicdirectionty); virtual;
Public procedure placexorder(const startx: integer; const dist: array of integer; const awidgets: array of twidget; const endmargin: integer = minint);
Public procedure placeyorder(const starty: integer; const dist: array of integer; const awidgets: array of twidget; const endmargin: integer = minint);
Public function alignx(const mode: widgetalignmodety; const awidgets: array of twidget; const glue: widgetalignmodety = wam_none; const margin: integer = 0): integer;
Public function aligny(const mode: widgetalignmodety; const awidgets: array of twidget; const glue: widgetalignmodety = wam_none; const margin: integer = 0): integer;
Public function actualcursor(const apos: pointty): cursorshapety; virtual;

Properties

Public property widgetstate1: widgetstates1ty read fwidgetstate1;
Public property parentwidget: twidget read fparentwidget write setparentwidget;
Public property widgets[constindex:integer]: twidget read getwidgets;
Public property container: twidget read getcontainer;
Public property children[constindex:integer]: twidget read getchildwidgets;
Public property focusedchild: twidget read ffocusedchild;
Public property focusedchildbefore: twidget read ffocusedchildbefore;
Public property screenpos: pointty read getscreenpos write setscreenpos;
Public property widgetrect: rectty read fwidgetrect write setwidgetrect;
Public property pos: pointty read fwidgetrect.pos write setpos;
Public property size: sizety read fwidgetrect.size write setsize;
Public property minsize: sizety read fminsize write setminsize;
Public property maxsize: sizety read fmaxsize write setmaxsize;
Public property bounds_x: integer read fwidgetrect.x write setbounds_x;
Public property bounds_y: integer read fwidgetrect.y write setbounds_y;
Public property bounds_cx: integer read fwidgetrect.cx write setbounds_cx stored true;
Public property bounds_cy: integer read fwidgetrect.cy write setbounds_cy stored true;
Public property bounds_cxmin: integer read fminsize.cx write setbounds_cxmin default 0;
Public property bounds_cymin: integer read fminsize.cy write setbounds_cymin default 0;
Public property bounds_cxmax: integer read fmaxsize.cx write setbounds_cxmax default 0;
Public property bounds_cymax: integer read fmaxsize.cy write setbounds_cymax default 0;
Public property left: integer read fwidgetrect.x write setbounds_x;
Public property right: integer read getright write setright;
Public property top: integer read fwidgetrect.y write setbounds_y;
Public property bottom: integer read getbottom write setbottom;
Public property width: integer read fwidgetrect.cx write setbounds_cx;
Public property height: integer read fwidgetrect.cy write setbounds_cy;
Public property anchors: anchorsty read fanchors write setanchors default defaultanchors;
Public property defaultfocuschild: twidget read getdefaultfocuschild write setdefaultfocuschild;
Public property framesize: sizety read getframesize write setframesize;
Public property framewidth: integer read geframewidth write setframewidth;
Public property frameheight: integer read getframeheight write setframeheight;
Public property paintsize: sizety read getpaintsize write setpaintsize;
Public property paintwidth: integer read getpaintwidth write setpaintwidth;
Public property paintheight: integer read getpaintheight write setpaintheight;
Public property clientrect: rectty read getclientrect;
Public property clientsize: sizety read getclientsize write setclientsize;
Public property clientwidth: integer read getclientwidth write setclientwidth;
Public property clientheight: integer read getclientheight write setclientheight;
Public property clientpos: pointty read getclientpos;
Public property parentclientpos: pointty read getparentclientpos write setparentclientpos;
Public property frame: tcustomframe read getframe write setframe;
Public property face: tcustomface read getface write setface;
Public property optionswidget: optionswidgetty read foptionswidget write setoptionswidget default defaultoptionswidget;
Public property optionswidget1: optionswidget1ty read foptionswidget1 write setoptionswidget1 default defaultoptionswidget1;
Public property optionsskin: optionsskinty read foptionsskin write setoptionsskin default [];
Public property cursor: cursorshapety read fcursor write setcursor default cr_default;
Public property color: colorty read fcolor write setcolor default defaultwidgetcolor;
Public property visible: boolean read getvisible write setvisible default true;
Public property enabled: boolean read getenabled write setenabled default true;
Public property taborder: integer read ftaborder write settaborder default 0;
Public property hint: msestring read gethint write sethint stored ishintstored;
Public property zorder: integer read getzorder write setzorder;
Published property onnavigrequest: navigrequesteventty read fonnavigrequest write fonnavigrequest;
Published property skingroup: integer read fskingroup write fskingroup default 0;
Published property onbeforeupdateskin;
Published property onafterupdateskin;

Description

Fields

Protected fwidgets: widgetarty;
 
Protected fnoinvalidate: integer;
 
Protected fwidgetupdating: integer;
 
Protected foptionswidget: optionswidgetty;
 
Protected foptionswidget1: optionswidget1ty;
 
Protected fparentwidget: twidget;
 
Protected fanchors: anchorsty;
 
Protected fwidgetstate: widgetstatesty;
 
Protected fwidgetstate1: widgetstates1ty;
 
Protected fcolor: colorty;
 
Protected fwindow: twindow;
 
Protected fwidgetrect: rectty;
 
Protected fparentclientsize: sizety;
 
Protected fframe: tcustomframe;
 
Protected fface: tcustomface;
 
Protected ffont: twidgetfont;
 
Protected ffontempty: twidgetfontempty;
 
Protected fhint: msestring;
 
Protected fdefaultfocuschild: twidget;
 

Methods

Protected procedure checksizes();
 
Protected function widgetminsize1: sizety;
 
Protected function widgetmaxsize1: sizety;
 
Protected function minclientsize: sizety;
 
Protected function isdesignwidget(): boolean; virtual;
 
Protected procedure setdesignwidget();
 
Protected procedure designmouseevent(var info: moeventinfoty; capture: twidget); virtual;
 
Protected procedure designkeyevent(const eventkind: eventkindty; var info: keyeventinfoty); virtual;
 
Protected procedure defineproperties(filer: tfiler); override;
 
Protected function gethelpcontext: msestring; override;
 
Protected class function classskininfo: skininfoty; override;
 
Protected function skininfo: skininfoty; override;
 
Protected function hasskin: boolean; override;
 
Protected function navigstartrect: rectty; virtual;
 
Protected function navigrect: rectty; virtual;
 
Protected procedure navigrequest(var info: naviginfoty; const nowrap: boolean = false); virtual;
 
Protected function navigdistance(var info: naviginfoty; const nowrap: boolean = false): integer; virtual;
 
Protected function nexttaborderoverride(const sender: twidget; const down: boolean = false): twidget virtual;
 
Protected function getwidgetrects(const awidgets: array of twidget): rectarty;
 
Protected procedure setwidgetrects(const awidgets: array of twidget; const arects: rectarty);
 
Protected procedure updateroot;
 
Protected procedure setcolor(const avalue: colorty); virtual;
 
Protected function gethint: msestring; virtual;
 
Protected procedure sethint(const Value: msestring); virtual;
 
Protected function ishintstored: boolean; virtual;
 
Protected function getshowhint: boolean;
 
Protected procedure showhint(const aid: int32; var info: hintinfoty); virtual;
 
Protected function isgroupleader: boolean; virtual;
 
Protected function needsfocuspaint: boolean; virtual;
 
Protected function needsfocuspaintstate(): boolean;
 
Protected function getnoscroll(): boolean; virtual;
 
Protected function getenabled: boolean;
 
Protected procedure setenabled(const Value: boolean); virtual;
 
Protected function getvisible: boolean;
 
Protected procedure setvisible(const avalue: boolean); virtual;
 
Protected function isvisible: boolean;
 
Protected function parentisvisible: boolean;
 
Protected function parentvisible: boolean;
 
Protected function updateopaque(const children: boolean; const widgetregioncall: boolean): boolean;
 
Protected procedure dragstarted; virtual;
 
Protected function getzoomrefframe: framety; virtual;
 
Protected function getdragrect(const apos: pointty): rectty; virtual;
 
Protected procedure widgetregioninvalid;
 
Protected procedure setframeinstance(instance: tcustomframe); virtual;
 
Protected procedure setstaticframe(value: boolean);
 
Protected function getstaticframe: boolean;
 
Protected function getwidgetrect: rectty;
 
Protected function getcomponentstate: tcomponentstate;
 
Protected function getframestateflags: framestateflagsty; virtual;
 
Protected function getwidget: twidget;
 
Protected function getframe: tcustomframe;
 
Protected procedure setframe(const avalue: tcustomframe);
 
Protected function getface: tcustomface;
 
Protected procedure setface(const avalue: tcustomface);
 
Protected function getgdi: pgdifunctionaty; virtual;
 
Protected procedure createwindow; virtual;
 
Protected procedure objectchanged(const sender: tobject); virtual;
 
Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;
 
Protected procedure receiveevent(const event: tobjectevent); override;
 
Protected procedure setchildorder(child: tcomponent; order: integer); overload; override;
 
Protected procedure setparentcomponent(value: tcomponent); override;
 
Protected function clearparentwidget: twidget;
 
Protected procedure setparentwidget(const Value: twidget); virtual;
 
Protected procedure setlockedparentwidget(const avalue: twidget);
 
Protected procedure updatewindowinfo(var info: windowinfoty); virtual;
 
Protected procedure windowcreated; virtual;
 
Protected procedure setoptionswidget(const avalue: optionswidgetty); virtual;
 
Protected procedure setoptionswidget1(const avalue: optionswidget1ty); virtual;
 
Protected procedure getchildren(proc: tgetchildproc; root: tcomponent); override;
 
Protected procedure initparentclientsize;
 
Protected function getcaretcliprect: rectty; virtual;
 
Protected procedure dobeginread; override;
 
Protected procedure doendread; override;
 
Protected procedure loaded; override;
 
Protected procedure setdesigning(value: boolean; setchildren : boolean = true); override;
 
Protected procedure updatemousestate(const info: mouseeventinfoty); virtual;
 
Protected procedure setclientclick;
 
Protected procedure releasebuttonpressgrab();
 
Protected procedure registerchildwidget(const child: twidget); virtual;
 
Protected procedure unregisterchildwidget(const child: twidget); virtual;
 
Protected function isfontstored: Boolean;
 
Protected procedure setfont(const avalue: twidgetfont);
 
Protected function getfont: twidgetfont;
 
Protected function getfont1: twidgetfont;
 
Protected function isfontemptystored: Boolean;
 
Protected procedure setfontempty(const avalue: twidgetfontempty);
 
Protected function getfontempty: twidgetfontempty;
 
Protected function getfontempty1: twidgetfontempty;
 
Protected function getframefont: tfont;
 
Protected procedure fontchanged; virtual;
 
Protected procedure fontcanvaschanged; virtual;
 
Protected procedure updatecursorshape(apos: pointty);
 
Protected procedure parentclientrectchanged; virtual;
 
Protected procedure parentwidgetregionchanged(const sender: twidget); virtual;
 
Protected procedure widgetregionchanged(const sender: twidget); virtual;
 
Protected procedure scalebasechanged(const sender: twidget); virtual;
 
Protected procedure ifiwidgetstatechanged;
 
Protected function getifiwidgetstate: ifiwidgetstatesty; virtual;
 
Protected procedure cursorchanged;
 
Protected procedure statechanged; virtual;
 
Protected procedure enabledchanged; virtual;
 
Protected procedure activechanged; virtual;
 
Protected procedure visiblepropchanged; virtual;
 
Protected procedure visiblechanged; virtual;
 
Protected procedure colorchanged; virtual;
 
Protected procedure sizechanged; virtual;
 
Protected procedure getautopaintsize(var asize: sizety); virtual;
 
Protected procedure getautocellsize(const acanvas: tcanvas; var asize: sizety); virtual;
 
Protected procedure childclientrectchanged(const sender: twidget); virtual;
 
Protected procedure childautosizechanged(const sender: twidget); virtual;
 
Protected procedure poschanged; virtual;
 
Protected procedure clientrectchanged; virtual;
 
Protected procedure parentchanged; virtual;
 
Protected procedure rootchanged(const aflags: rootchangeflagsty); virtual;
 
Protected function getdefaultfocuschild: twidget; virtual;
 
Protected procedure setdefaultfocuschild(const value: twidget); virtual;
 
Protected function trycancelmodal(const newactive: twindow): boolean; virtual;
 
Protected procedure sortzorder;
 
Protected function needsdesignframe: boolean; virtual;
 
Protected function getactface: tcustomface; virtual;
 
Protected procedure dobeforepaint(const canvas: tcanvas); virtual;
 
Protected procedure dopaint(const canvas: tcanvas); virtual;
 
Protected procedure paintbackground(const canvas: tcanvas; const arect: rectty); virtual;
 
Protected procedure dopaintbackground(const canvas: tcanvas); virtual;
 
Protected procedure doonpaintbackground(const canvas: tcanvas); virtual;
 
Protected procedure dobeforepaintforeground(const canvas: tcanvas); virtual;
 
Protected procedure dopaintforeground(const canvas: tcanvas); virtual;
 
Protected procedure doonpaint(const canvas: tcanvas); virtual;
 
Protected procedure paintoverlay(const canvas: tcanvas; const arect: rectty); virtual;
 
Protected procedure dopaintoverlay(const canvas: tcanvas); virtual;
 
Protected procedure doafterpaint(const canvas: tcanvas); virtual;
 
Protected procedure doscroll(const dist: pointty); virtual;
 
Protected procedure doscrolled(const dist: pointty); virtual;
 
Protected procedure doloaded() virtual;
 
Protected procedure dohide() virtual;
 
Protected procedure doshow() virtual;
 
Protected procedure doactivate() virtual;
 
Protected procedure doafteractivate() virtual;
 
Protected procedure dodeactivate() virtual;
 
Protected procedure doenter() virtual;
 
Protected procedure doexit() virtual;
 
Protected procedure dofocus() virtual;
 
Protected procedure dodefocus() virtual;
 
Protected procedure dochildfocused(const sender: twidget); virtual;
 
Protected procedure dofocuschanged(const oldwidget,newwidget: twidget); virtual;
 
Protected procedure domousewheelevent(var info: mousewheeleventinfoty); virtual;
 
Protected function wantmousefocus(const info: mouseeventinfoty): boolean;
 
Protected procedure reflectmouseevent(var info: mouseeventinfoty);
 
Protected procedure mouseevent(var info: mouseeventinfoty); virtual;
 
Protected procedure mousepreview(const sender: twidget; var info: mouseeventinfoty); virtual;
 
Protected procedure childmouseevent(const sender: twidget; var info: mouseeventinfoty); virtual;
 
Protected procedure clientmouseevent(var info: mouseeventinfoty); virtual;
 
Protected procedure mousewheelevent(var info: mousewheeleventinfoty); virtual;
 
Protected procedure dokeydown1(var info: keyeventinfoty);
 
Protected procedure dokeydown(var info: keyeventinfoty); virtual;
 
Protected procedure doshortcut(var info: keyeventinfoty; const sender: twidget); virtual;
 
Protected function checkfocusshortcut(var info: keyeventinfoty): boolean; virtual;
 
Protected procedure handlenavigkeys(var info: keyeventinfoty; const nowrap: boolean = false); virtual;
 
Protected procedure dokeydownaftershortcut(var info: keyeventinfoty); virtual;
 
Protected procedure dokeyup(var info: keyeventinfoty); virtual;
 
Protected procedure dofontchanged(const sender: tobject);
 
Protected procedure setfontheight;
 
Protected procedure postchildscaled;
 
Protected function verticalfontheightdelta: boolean; virtual;
 
Protected procedure dofontheightdelta(var delta: integer); virtual;
 
Protected procedure syncsinglelinefontheight(const lineheight: boolean = false; const space: integer = 2);
 
Protected procedure setwidgetrect(const Value: rectty);
 
Protected procedure internalsetwidgetrect(Value: rectty; const windowevent: boolean); virtual;
 
Protected function getclientpos: pointty;
 
Protected function getclientsize: sizety;
 
Protected procedure setclientsize(const asize: sizety); virtual;
 
Protected function getclientwidth: integer;
 
Protected procedure setclientwidth(const avalue: integer);
 
Protected function getclientheight: integer;
 
Protected procedure setclientheight(const avalue: integer);
 
Protected function internalshow(const modallevel: modallevelty; const transientfor: pwindow; const windowevent,nomodalforreset: boolean): modalresultty; virtual;
 
Protected procedure internalhide(const windowevent: boolean);
 
Protected function checksubfocus(const aactivate: boolean): boolean; virtual;
 
Protected function getnextfocus: twidget;
 
Protected function cantabfocus: boolean;
 
Protected function getdisprect: rectty; virtual;
 
Protected function getshrinkpriority: integer; virtual;
 
Protected procedure tryshrink(const aclientsize: sizety); virtual;
 
Protected function calcminscrollsize: sizety; virtual;
 
Protected function getminshrinkpos: pointty; virtual;
 
Protected function calcminshrinksize: sizety; virtual;
 
Protected function getcontainer: twidget; virtual;
 
Protected function getchildwidgets(const index: integer): twidget; virtual;
 
Protected function getright: integer;
 
Protected procedure setright(const avalue: integer);
 
Protected function getbottom: integer;
 
Protected procedure setbottom(const avalue: integer);
 
Protected function ownswindow1: boolean;
 
Protected procedure internalcreateframe; virtual;
 
Protected procedure internalcreateface; virtual;
 
Protected function getfontclass: widgetfontclassty; virtual;
 
Protected function getfontemptyclass: widgetfontemptyclassty; virtual;
 
Protected procedure internalcreatefont; virtual;
 
Protected procedure internalcreatefontempty; virtual;
 
Protected function getclientrect: rectty;
 
Protected function windowpo: pwindowty;
 
Protected function canclose1: boolean;
 
Protected function getiassistiveclient(): iassistiveclient virtual;
 
Protected function getassistiveparent(): iassistiveclient virtual;
 
Protected function getassistivewidget(): tobject virtual;
 
Protected function getassistivename(): msestring virtual;
 
Protected function getassistivecaption(): msestring virtual;
 
Protected function getassistivetext(): msestring virtual;
 
Protected function getassistivecaretindex(): int32 virtual;
 
Protected function getassistivehint(): msestring virtual;
 
Protected function getassistiveflags(): assistiveflagsty virtual;
 
Protected function getifidatalinkintf(): iifidatalink virtual;
 
Public constructor create(aowner: tcomponent); overload; override;
 
Public constructor create(const aowner: tcomponent; const aparentwidget: twidget); overload;
 
Public constructor create(const aowner: tcomponent; const aparentwidget: twidget; const aiswidget: boolean); overload;
 
Public constructor createandinit(const aowner: tcomponent; const aparentwidget: twidget; const aiswidget: boolean); overload;
 
Public destructor destroy; override;
 
Public procedure afterconstruction; override;
 
Public procedure initnewcomponent(const ascale: real); override;
 
Public procedure initnewwidget(const ascale: real); virtual;
 
Public procedure createframe;
 
Public procedure createface;
 
Public procedure createfont;
 
Public procedure createfontempty;
 
Public procedure checkautosize();
 
Public procedure updatehotkeys() virtual;
 
Public function isloading: boolean;
 
Public procedure beginupdate;
 
Public procedure endupdate;
 
Public function canmouseinteract: boolean;
 
Public function canassistive(): boolean virtual;
 
Public function widgetstate: widgetstatesty;
 
Public function hasparent: boolean; override;
 
Public function getparentcomponent: tcomponent; override;
 
Public function hascaret: boolean;
 
Public function canwindow: boolean;
 
Public function windowallocated: boolean;
 
Public function ownswindow: boolean;
 
Public function updaterect: rectty;
 
Public procedure beforeclosequery(var amodalresult: modalresultty); virtual;
 
Public function canclose(const newfocus: twidget = nil): boolean; virtual;
 
Public function canparentclose(const newfocus: twidget): boolean; overload;
 
Public function forceclose: boolean;
 
Public function canparentclose: boolean; overload;
 
Public function canfocus: boolean; virtual;
 
Public function setfocus(aactivate: boolean = true): boolean; virtual;
 
Public procedure parentfocus;
 
Public procedure nextfocus;
 
Public function findtabfocus(const ataborder: integer): twidget;
 
Public function firsttabfocus: twidget;
 
Public function lasttabfocus: twidget;
 
Public function nexttaborder(const down: boolean = false; nowrap: boolean = false): twidget;
 
Public function focusback(const aactivate: boolean = true): boolean; virtual;
 
Public function parentcolor: colorty;
 
Public function actualcolor: colorty; virtual;
 
Public function actualopaquecolor: colorty; virtual;
 
Public function backgroundcolor: colorty;
 
Public function translatecolor(const acolor: colorty): colorty;
 
Public procedure widgetevent(const event: twidgetevent); virtual;
 
Public procedure sendwidgetevent(const event: twidgetevent);
 
Public procedure release(const nomodaldefer: boolean=false); override;
 
Public function show(const modallevel: modallevelty; const transientfor: twindow = nil): modalresultty; overload; virtual;
 
Public function show(const modallevel: modallevelty; const transientfor: twidget): modalresultty; overload;
 
Public function show(const modal: boolean = false; const transientfor: twindow = nil): modalresultty; overload;
 
Public procedure endmodal;
 
Public procedure hide;
 
Public procedure activate(const abringtofront: boolean = true; const aforce: boolean = false); virtual;
 
Public procedure bringtofront;
 
Public procedure sendtoback;
 
Public procedure stackunder(const predecessor: twidget);
 
Public procedure setchildorder(const achildren: widgetarty); overload;
 
Public procedure paint(const canvas: tcanvas); virtual;
 
Public procedure update; virtual;
 
Public procedure scrollwidgets(const dist: pointty);
 
Public procedure scrollrect(const dist: pointty; const rect: rectty; scrollcaret: boolean);
 
Public procedure scroll(const dist: pointty);
 
Public procedure clampinview(const arect: rectty; const bottomright: boolean = false); virtual;
 
Public procedure getcaret;
 
Public procedure scrollcaret(const dist: pointty);
 
Public function mousecaptured: boolean;
 
Public function capturemouse(grab: boolean = true): boolean;
 
Public procedure releasemouse(const grab: boolean = false);
 
Public function capturekeyboard: boolean;
 
Public procedure releasekeyboard;
 
Public procedure synctofontheight; virtual;
 
Public procedure dragevent(var info: draginfoty); virtual;
 
Public procedure dolayout(const sender: twidget); virtual;
 
Public procedure invalidatewidget;
 
Public procedure invalidate;
 
Public procedure invalidaterect(const rect: rectty; const org: originty = org_client; const noclip: boolean = false);
 
Public procedure invalidateframestate;
 
Public procedure invalidateframestaterect(const rect: rectty; const aframe: tcustomframe; const org: originty = org_client);
 
Public function hasoverlappingsiblings(arect: rectty): boolean;
 
Public function window: twindow;
 
Public function rootwidget: twidget;
 
Public function parentofcontainer: twidget;
 
Public function getrootwidgetpath: widgetarty;
 
Public function widgetcount: integer;
 
Public function parentwidgetindex: integer;
 
Public function indexofwidget(const awidget: twidget): integer;
 
Public function checkdescendent(awidget: twidget): boolean;
 
Public function checkancestor(awidget: twidget): boolean;
 
Public function containswidget(awidget: twidget): boolean;
 
Public function widgetatpos(var info: widgetatposinfoty): twidget; overload;
 
Public function widgetatpos(const pos: pointty): twidget; overload;
 
Public function widgetatpos(const pos: pointty; const state: widgetstatesty): twidget; overload;
 
Public function containeroffset: pointty;
 
Public function childrencount: integer; virtual;
 
Public function visiblechildrencount: integer;
 
Public function findtagchild(const atag: integer; const aclass: widgetclassty): twidget;
 
Public function findchild(const aname: ansistring): twidget;
 
Public function childatpos(const pos: pointty; const clientorigin: boolean = true): twidget; virtual;
 
Public function gettaborderedwidgets: widgetarty;
 
Public function getvisiblewidgets: widgetarty;
 
Public function getcornerwidget(const side: graphicdirectionty; const visibleonly: boolean): twidget;
 
Public function getsortxchildren(const banded: boolean = false): widgetarty;
 
Public function getsortychildren(const banded: boolean = false): widgetarty;
 
Public function getlogicalchildren: widgetarty; virtual;
 
Public procedure addlogicalchildren(var achildren: widgetarty);
 
Public function findlogicalchild(const aname: ansistring): twidget;
 
Public function enteredchild(): twidget;
 
Public function mouseeventwidget(const info: mouseeventinfoty): twidget;
 
Public procedure insertwidget(const awidget: twidget); overload;
 
Public procedure insertwidget(const awidget: twidget; const apos: pointty); overload; virtual;
 
Public function iswidgetclick(const info: mouseeventinfoty; const caption: boolean = false): boolean;
 
Public function iswidgetdblclick(const info: mouseeventinfoty; const caption: boolean = false): boolean;
 
Public function iswidgetdblclicked(const info: mouseeventinfoty; const caption: boolean = false): boolean;
 
Public function isclick(const info: mouseeventinfoty): boolean;
 
Public function isdblclick(const info: mouseeventinfoty): boolean;
 
Public function isdblclicked(const info: mouseeventinfoty): boolean;
 
Public function isleftbuttondown(const info: mouseeventinfoty): boolean; overload;
 
Public function isleftbuttondown(const info: mouseeventinfoty; const akeyshiftstate: shiftstatesty): boolean; overload;
 
Public function widgetmousepos(const ainfo: mouseeventinfoty): pointty;
 
Public function rootpos: pointty;
 
Public function rootwidgetrect: rectty;
 
Public function clientpostowidgetpos(const apos: pointty): pointty;
 
Public function widgetpostoclientpos(const apos: pointty): pointty;
 
Public function widgetpostopaintpos(const apos: pointty): pointty;
 
Public function paintpostowidgetpos(const apos: pointty): pointty;
 
Public procedure scale(const ascale: real); virtual;
 
Public function widgetscreenrect: rectty;
 
Public function widgetclientrect: rectty;
 
Public function widgetminsize: sizety;
 
Public function widgetmaxsize: sizety;
 
Public function maxclientsize: sizety; virtual;
 
Public function minscrollsize: sizety;
 
Public function minshrinksize: sizety;
 
Public procedure setclippedwidgetrect(arect: rectty);
 
Public function framedim: sizety;
 
Public function framedimnoscrollbar: sizety;
 
Public function clientframewidth: sizety;
 
Public function innerclientframewidth: sizety;
 
Public function innerframewidth: sizety;
 
Public function framerect: rectty;
 
Public function framepos: pointty;
 
Public function frameinnerrect: rectty;
 
Public function paintrect: rectty;
 
Public function paintclientrect: rectty;
 
Public function paintpos: pointty;
 
Public function clippedpaintrect: rectty;
 
Public function innerpaintrect: rectty;
 
Public procedure setanchordwidgetsize(const asize: sizety);
 
Public function widgetsizerect: rectty;
 
Public function paintsizerect: rectty;
 
Public function clientsizerect: rectty;
 
Public function containerclientsizerect: rectty;
 
Public procedure changeclientsize(const delta: sizety);
 
Public function clientwidgetrect: rectty;
 
Public function clientwidgetpos: pointty;
 
Public function clientparentpos: pointty;
 
Public function paintparentrect: rectty;
 
Public function paintparentpos: pointty;
 
Public function parentpaintpos: pointty;
 
Public function refpos(const aorigin: originty): pointty;
 
Public function paintrectparent: rectty;
 
Public function clientrectparent: rectty;
 
Public function innerparentrect: rectty;
 
Public function innerwidgetrect: rectty;
 
Public function innerclientrect: rectty;
 
Public function innerclientsize: sizety;
 
Public function innerclientpos: pointty;
 
Public function innerclientframe: framety;
 
Public function innerclientpaintpos: pointty;
 
Public function innerclientwidgetpos: pointty;
 
Public procedure innertopaintsize(var asize: sizety);
 
Public procedure outertopaintsize(var asize: sizety);
 
Public procedure painttowidgetsize(var asize: sizety);
 
Public procedure widgettopaintsize(var asize: sizety);
 
Public function getcanvas(aorigin: originty = org_client): tcanvas;
 
Public function showing: boolean;
 
Public function isenabled: boolean;
 
Public function active: boolean;
 
Public function entered: boolean;
 
Public function activeentered: boolean;
 
Public function activefocused(): boolean;
 
Public function focused: boolean;
 
Public function clicked: boolean;
 
Public procedure changedirection(const avalue: graphicdirectionty; var dest: graphicdirectionty); virtual;
 
Public procedure placexorder(const startx: integer; const dist: array of integer; const awidgets: array of twidget; const endmargin: integer = minint);
 
Public procedure placeyorder(const starty: integer; const dist: array of integer; const awidgets: array of twidget; const endmargin: integer = minint);
 
Public function alignx(const mode: widgetalignmodety; const awidgets: array of twidget; const glue: widgetalignmodety = wam_none; const margin: integer = 0): integer;
 
Public function aligny(const mode: widgetalignmodety; const awidgets: array of twidget; const glue: widgetalignmodety = wam_none; const margin: integer = 0): integer;
 
Public function actualcursor(const apos: pointty): cursorshapety; virtual;
 

Properties

Public property widgetstate1: widgetstates1ty read fwidgetstate1;
 
Public property parentwidget: twidget read fparentwidget write setparentwidget;
 
Public property widgets[constindex:integer]: twidget read getwidgets;
 
Public property container: twidget read getcontainer;
 
Public property children[constindex:integer]: twidget read getchildwidgets;
 
Public property focusedchild: twidget read ffocusedchild;
 
Public property focusedchildbefore: twidget read ffocusedchildbefore;
 
Public property screenpos: pointty read getscreenpos write setscreenpos;
 
Public property widgetrect: rectty read fwidgetrect write setwidgetrect;
 
Public property pos: pointty read fwidgetrect.pos write setpos;
 
Public property size: sizety read fwidgetrect.size write setsize;
 
Public property minsize: sizety read fminsize write setminsize;
 
Public property maxsize: sizety read fmaxsize write setmaxsize;
 
Public property bounds_x: integer read fwidgetrect.x write setbounds_x;
 
Public property bounds_y: integer read fwidgetrect.y write setbounds_y;
 
Public property bounds_cx: integer read fwidgetrect.cx write setbounds_cx stored true;
 
Public property bounds_cy: integer read fwidgetrect.cy write setbounds_cy stored true;
 
Public property bounds_cxmin: integer read fminsize.cx write setbounds_cxmin default 0;
 
Public property bounds_cymin: integer read fminsize.cy write setbounds_cymin default 0;
 
Public property bounds_cxmax: integer read fmaxsize.cx write setbounds_cxmax default 0;
 
Public property bounds_cymax: integer read fmaxsize.cy write setbounds_cymax default 0;
 
Public property left: integer read fwidgetrect.x write setbounds_x;
 
Public property right: integer read getright write setright;
 
Public property top: integer read fwidgetrect.y write setbounds_y;
 
Public property bottom: integer read getbottom write setbottom;
 
Public property width: integer read fwidgetrect.cx write setbounds_cx;
 
Public property height: integer read fwidgetrect.cy write setbounds_cy;
 
Public property anchors: anchorsty read fanchors write setanchors default defaultanchors;
 
Public property defaultfocuschild: twidget read getdefaultfocuschild write setdefaultfocuschild;
 
Public property framesize: sizety read getframesize write setframesize;
 
Public property framewidth: integer read geframewidth write setframewidth;
 
Public property frameheight: integer read getframeheight write setframeheight;
 
Public property paintsize: sizety read getpaintsize write setpaintsize;
 
Public property paintwidth: integer read getpaintwidth write setpaintwidth;
 
Public property paintheight: integer read getpaintheight write setpaintheight;
 
Public property clientrect: rectty read getclientrect;
 
Public property clientsize: sizety read getclientsize write setclientsize;
 
Public property clientwidth: integer read getclientwidth write setclientwidth;
 
Public property clientheight: integer read getclientheight write setclientheight;
 
Public property clientpos: pointty read getclientpos;
 
Public property parentclientpos: pointty read getparentclientpos write setparentclientpos;
 
Public property frame: tcustomframe read getframe write setframe;
 
Public property face: tcustomface read getface write setface;
 
Public property optionswidget: optionswidgetty read foptionswidget write setoptionswidget default defaultoptionswidget;
 
Public property optionswidget1: optionswidget1ty read foptionswidget1 write setoptionswidget1 default defaultoptionswidget1;
 
Public property optionsskin: optionsskinty read foptionsskin write setoptionsskin default [];
 
Public property cursor: cursorshapety read fcursor write setcursor default cr_default;
 
Public property color: colorty read fcolor write setcolor default defaultwidgetcolor;
 
Public property visible: boolean read getvisible write setvisible default true;
 
Public property enabled: boolean read getenabled write setenabled default true;
 
Public property taborder: integer read ftaborder write settaborder default 0;
 
Public property hint: msestring read gethint write sethint stored ishintstored;
 
Public property zorder: integer read getzorder write setzorder;
 
Published property onnavigrequest: navigrequesteventty read fonnavigrequest write fonnavigrequest;
 
Published property skingroup: integer read fskingroup write fskingroup default 0;
 
Published property onbeforeupdateskin;
 
Published property onafterupdateskin;
 

Generated by PasDoc 0.16.0.