Class tcustomframe

Unit

Declaration

type tcustomframe = class(toptionalpersistent, iimagelistinfo)

Description

No description available, ancestor toptionalpersistent description follows
No description available, ancestor tnullinterfacedpersistent description follows
No description available, ancestor tvirtualpersistent description follows

Hierarchy

Overview

Fields

Protected ftemplate: tframecomp;
Protected flocalprops: framelocalpropsty;
Protected flocalprops1: framelocalprops1ty;
Protected fintf: iframe;
Protected fstate: framestatesty;
Protected fwidth: framety;
Protected fouterframe: framety;
Protected fpaintframedelta: framety;
Protected fpaintframe: framety;
Protected finnerframe: framety;
Protected fpaintrect: rectty;
Protected fclientrect: rectty;
Protected finnerclientrect: rectty;
Protected fpaintposbefore: pointty;
Protected fi: baseframeinfoty;

Methods

Protected procedure defineproperties(filer: tfiler); override;
Protected function isoptional: boolean; override;
Protected procedure settemplateinfo(const ainfo: frameinfoty); virtual;
Protected procedure setdisabled(const value: boolean); virtual;
Protected procedure updateclientrect; virtual;
Protected class function calcpaintframe(const afi: baseframeinfoty): framety;
Protected class function calcinnerframe(const afi: baseframeinfoty): framety;
Protected procedure calcrects;
Protected procedure updaterects; virtual;
Protected procedure internalupdatestate();
Protected procedure updatestate(); virtual;
Protected procedure checkstate;
Protected procedure poschanged; virtual;
Protected procedure fontcanvaschanged; virtual;
Protected procedure visiblechanged; virtual;
Protected procedure getpaintframe(var frame: framety); virtual;
Protected procedure dokeydown(var info: keyeventinfoty); virtual;
Protected function checkfocusshortcut(var info: keyeventinfoty): boolean; virtual;
Protected procedure parentfontchanged; virtual;
Protected procedure dopaintfocusrect(const canvas: tcanvas; const rect: rectty); virtual;
Protected procedure updatewidgetstate; virtual;
Protected procedure updatemousestate(const sender: twidget; const info: mouseeventinfoty); virtual;
Protected function needsactiveinvalidate: boolean;
Protected function needsenabledinvalidate: boolean;
Protected function needsfocusedinvalidate: boolean;
Protected function needsmouseinvalidate: boolean;
Protected function needsclickinvalidate: boolean;
Protected function needsmouseenterinvalidate: boolean;
Protected procedure activechanged; virtual;
Protected procedure enabledchanged(); virtual;
Protected procedure focusedchangedvirtual;
Protected function needsfocuspaint: boolean virtual;
Protected function haspaintrectfocus(): boolean virtual;
Protected function ishintarea(const apos: pointty; var aid: int32): boolean virtual;
Protected procedure checkminscrollsize(var asize: sizety) virtual;
Protected procedure checkminclientsize(var asize: sizety) virtual;
Protected procedure checkminshrinksize(var asize: sizety) virtual;
Protected procedure addscrollbarwidth(var asize: sizety) virtual;
Protected procedure subscrollbarwidth(var asize: sizety) virtual;
Protected procedure paintframeface(const canvas: tcanvas; const arect: rectty);
Protected class procedure drawframe(const canvas: tcanvas; const rect2: rectty; const afi: baseframeinfoty; const astate: framestateflagsty);
Protected function actualcolorclient(): colorty virtual;
Protected procedure internalpaintbackground(const canvas: tcanvas; const arect: rectty; const clip: boolean; const move: boolean) virtual;
Protected procedure internalpaintoverlay(const canvas: tcanvas; const arect: rectty) virtual;
Protected procedure updatehotkeys() virtual;
Protected function getassistivecaption(): msestring; virtual;
Public constructor create(const intf: iframe); reintroduce;
Public destructor destroy; override;
Public procedure checktemplate(const sender: tobject); virtual;
Public procedure assign(source: tpersistent); override;
Public procedure scale(const ascale: real); virtual;
Public procedure checkwidgetsize(var asize: sizety); virtual;
Public procedure showhint(const aid: int32; var info: hintinfoty); virtual;
Public procedure paintbackground(const canvas: tcanvas; const arect: rectty; const clip: boolean; const move: boolean);
Public procedure paintoverlay(const canvas: tcanvas; const arect: rectty);
Public function pointinmask(const pos: pointty; const arect: rectty): boolean;
Public function outerframedim: sizety;
Public function outerframecx: int32;
Public function outerframecy: int32;
Public function frameframedim: sizety;
Public function frameframecx: int32;
Public function frameframecy: int32;
Public function paintframedim: sizety;
Public function paintframecx: int32;
Public function paintframecy: int32;
Public function innerframedim: sizety;
Public function innerframecx: int32;
Public function innerframecy: int32;
Public function outerframe: framety;
Public function paintframe: framety;
Public function paintframedelta: framety;
Public function innerframe: framety;
Public function cellframe: framety;
Public function pointincaption(const point: pointty): boolean; virtual;
Public procedure initgridframe; virtual;
Public procedure changedirection(const oldvalue: graphicdirectionty; const newvalue: graphicdirectionty);

Properties

Public property intf: iframe read fintf;
Public property levelo: integer read fi.levelo write setlevelo stored islevelostored default 0;
Public property leveli: integer read fi.leveli write setleveli stored islevelistored default 0;
Public property framewidth: integer read fi.framewidth write setframewidth stored isframewidthstored default 0;
Public property colorframe: colorty read fi.colorframe write setcolorframe stored iscolorframestored default cl_default;
Public property colorframeactive: colorty read fi.colorframeactive write setcolorframeactive stored iscolorframeactivestored default cl_default;
Public property colorframedisabled: colorty read fi.colorframedisabled write setcolorframedisabled stored iscolorframedisabledstored default cl_default;
Public property colorframemouse: colorty read fi.colorframemouse write setcolorframemouse stored iscolorframemousestored default cl_default;
Public property colorframeclicked: colorty read fi.colorframeclicked write setcolorframeclicked stored iscolorframeclickedstored default cl_default;
Public property colorframedefault: colorty read fi.colorframedefault write setcolorframedefault stored iscolorframedefaultstored default cl_default;
Public property colordkshadow: colorty read fi.framecolors.edges.shadow.effectcolor write setcolordkshadow stored iscolordkshadowstored default cl_default;
Public property colorshadow: colorty read fi.framecolors.edges.shadow.color write setcolorshadow stored iscolorshadowstored default cl_default;
Public property colorlight: colorty read fi.framecolors.edges.light.color write setcolorlight stored iscolorlightstored default cl_default;
Public property colorhighlight: colorty read fi.framecolors.edges.light.effectcolor write setcolorhighlight stored iscolorhighlightstored default cl_default;
Public property colordkwidth: integer read fi.framecolors.edges.shadow.effectwidth write setcolordkwidth stored iscolordkwidthstored default -1;
Public property colorhlwidth: integer read fi.framecolors.edges.light.effectwidth write setcolorhlwidth stored iscolorhlwidthstored default -1;
Public property hiddenedges: edgesty read fi.hiddenedges write sethiddenedges default [];
Public property framei: framety read fi.innerframe write setframei;
Public property framei_left: integer read fi.innerframe.left write setframei_left stored isfileftstored default 0;
Public property framei_top: integer read fi.innerframe.top write setframei_top stored isfitopstored default 0;
Public property framei_right: integer read fi.innerframe.right write setframei_right stored isfirightstored default 0;
Public property framei_bottom: integer read fi.innerframe.bottom write setframei_bottom stored isfibottomstored default 0;
Public property frameo: framety read fi.outerframe write setframeo;
Public property frameo_left: integer read fi.outerframe.left write setframeo_left stored isfoleftstored default 0;
Public property frameo_top: integer read fi.outerframe.top write setframeo_top stored isfotopstored default 0;
Public property frameo_right: integer read fi.outerframe.right write setframeo_right stored isforightstored default 0;
Public property frameo_bottom: integer read fi.outerframe.bottom write setframeo_bottom stored isfobottomstored default 0;
Public property frameimage_list: timagelist read fi.frameimage_list write setframeimage_list stored isframeimage_liststored;
Public property frameimage_left: integer read fi.frameimage_left write setframeimage_left stored isframeimage_leftstored default 0;
Public property frameimage_top: integer read fi.frameimage_top write setframeimage_top stored isframeimage_topstored default 0;
Public property frameimage_right: integer read fi.frameimage_right write setframeimage_right stored isframeimage_rightstored default 0;
Public property frameimage_bottom: integer read fi.frameimage_bottom write setframeimage_bottom stored isframeimage_bottomstored default 0;
Public property frameimage_offset: imagenrty read fi.frameimage_offsets.offset write setframeimage_offset stored isframeimage_offsetstored default 0;
Public property frameimage_offset1: imagenrty read fi.frameimage_offsets.offset1 write setframeimage_offset1 stored isframeimage_offset1stored default 0;
Public property frameimage_offsetdisabled: imagenrty read fi.frameimage_offsets.disabled write setframeimage_offsetdisabled stored isframeimage_offsetdisabledstored default 0;
Public property frameimage_offsetmouse: imagenrty read fi.frameimage_offsets.mouse write setframeimage_offsetmouse stored isframeimage_offsetmousestored default 0;
Public property frameimage_offsetclicked: imagenrty read fi.frameimage_offsets.clicked write setframeimage_offsetclicked stored isframeimage_offsetclickedstored default 0;
Public property frameimage_offsetactive: imagenrty read fi.frameimage_offsets.active write setframeimage_offsetactive stored isframeimage_offsetactivestored default 0;
Public property frameimage_offsetfocused: imagenrty read fi.frameimage_offsets.focused write setframeimage_offsetfocused stored isframeimage_offsetfocusedstored default 0;
Public property frameface_list: tfacelist read fi.frameface_list write setframeface_list stored isframeface_liststored;
Public property frameface_offset: facenrty read fi.frameface_offsets.offset write setframeface_offset stored isframeface_offsetstored default 0;
Public property frameface_offset1: facenrty read fi.frameface_offsets.offset1 write setframeface_offset1 stored isframeface_offset1stored default 0;
Public property frameface_offsetdisabled: facenrty read fi.frameface_offsets.disabled write setframeface_offsetdisabled stored isframeface_offsetdisabledstored default 0;
Public property frameface_offsetmouse: facenrty read fi.frameface_offsets.mouse write setframeface_offsetmouse stored isframeface_offsetmousestored default 0;
Public property frameface_offsetclicked: facenrty read fi.frameface_offsets.clicked write setframeface_offsetclicked stored isframeface_offsetclickedstored default 0;
Public property frameface_offsetactive: facenrty read fi.frameface_offsets.active write setframeface_offsetactive stored isframeface_offsetactivestored default 0;
Public property frameface_offsetfocused: facenrty read fi.frameface_offsets.focused write setframeface_offsetfocused stored isframeface_offsetfocusedstored default 0;
Public property optionsskin: frameskinoptionsty read fi.optionsskin write setoptionsskin stored isoptionsskinstored default [];
Public property focusrectdist: int32 read fi.focusrectdist write setfocusrectdist stored isfocusrectdiststored default 0;
Public property extraspace: int32 read fi.extraspace write setextraspace stored isextraspacestored default 0;
Public property imagedist: int32 read fi.imagedist write setimagedist stored isimagediststored default 0;
Public property imagedist1: int32 read fi.imagedist1 write setimagedist1 stored isimagedist1stored default 0;
Public property imagedist2: int32 read fi.imagedist2 write setimagedist2 stored isimagedist2stored default 0;
Public property colorclient: colorty read fi.colorclient write setcolorclient stored iscolorclientstored default cl_default;
Public property localprops: framelocalpropsty read flocalprops write setlocalprops ;
Public property localprops1: framelocalprops1ty read flocalprops1 write setlocalprops1 ;
Public property template: tframecomp read ftemplate write settemplate;

Description

Fields

Protected ftemplate: tframecomp;
 
Protected flocalprops: framelocalpropsty;
 
Protected flocalprops1: framelocalprops1ty;
 
Protected fintf: iframe;
 
Protected fstate: framestatesty;
 
Protected fwidth: framety;
 
Protected fouterframe: framety;
 
Protected fpaintframedelta: framety;
 
Protected fpaintframe: framety;
 
Protected finnerframe: framety;
 
Protected fpaintrect: rectty;
 
Protected fclientrect: rectty;
 
Protected finnerclientrect: rectty;
 
Protected fpaintposbefore: pointty;
 
Protected fi: baseframeinfoty;
 

Methods

Protected procedure defineproperties(filer: tfiler); override;
 
Protected function isoptional: boolean; override;
 
Protected procedure settemplateinfo(const ainfo: frameinfoty); virtual;
 
Protected procedure setdisabled(const value: boolean); virtual;
 
Protected procedure updateclientrect; virtual;
 
Protected class function calcpaintframe(const afi: baseframeinfoty): framety;
 
Protected class function calcinnerframe(const afi: baseframeinfoty): framety;
 
Protected procedure calcrects;
 
Protected procedure updaterects; virtual;
 
Protected procedure internalupdatestate();
 
Protected procedure updatestate(); virtual;
 
Protected procedure checkstate;
 
Protected procedure poschanged; virtual;
 
Protected procedure fontcanvaschanged; virtual;
 
Protected procedure visiblechanged; virtual;
 
Protected procedure getpaintframe(var frame: framety); virtual;
 
Protected procedure dokeydown(var info: keyeventinfoty); virtual;
 
Protected function checkfocusshortcut(var info: keyeventinfoty): boolean; virtual;
 
Protected procedure parentfontchanged; virtual;
 
Protected procedure dopaintfocusrect(const canvas: tcanvas; const rect: rectty); virtual;
 
Protected procedure updatewidgetstate; virtual;
 
Protected procedure updatemousestate(const sender: twidget; const info: mouseeventinfoty); virtual;
 
Protected function needsactiveinvalidate: boolean;
 
Protected function needsenabledinvalidate: boolean;
 
Protected function needsfocusedinvalidate: boolean;
 
Protected function needsmouseinvalidate: boolean;
 
Protected function needsclickinvalidate: boolean;
 
Protected function needsmouseenterinvalidate: boolean;
 
Protected procedure activechanged; virtual;
 
Protected procedure enabledchanged(); virtual;
 
Protected procedure focusedchangedvirtual;
 
Protected function needsfocuspaint: boolean virtual;
 
Protected function haspaintrectfocus(): boolean virtual;
 
Protected function ishintarea(const apos: pointty; var aid: int32): boolean virtual;
 
Protected procedure checkminscrollsize(var asize: sizety) virtual;
 
Protected procedure checkminclientsize(var asize: sizety) virtual;
 
Protected procedure checkminshrinksize(var asize: sizety) virtual;
 
Protected procedure addscrollbarwidth(var asize: sizety) virtual;
 
Protected procedure subscrollbarwidth(var asize: sizety) virtual;
 
Protected procedure paintframeface(const canvas: tcanvas; const arect: rectty);
 
Protected class procedure drawframe(const canvas: tcanvas; const rect2: rectty; const afi: baseframeinfoty; const astate: framestateflagsty);
 
Protected function actualcolorclient(): colorty virtual;
 
Protected procedure internalpaintbackground(const canvas: tcanvas; const arect: rectty; const clip: boolean; const move: boolean) virtual;
 
Protected procedure internalpaintoverlay(const canvas: tcanvas; const arect: rectty) virtual;
 
Protected procedure updatehotkeys() virtual;
 
Protected function getassistivecaption(): msestring; virtual;
 
Public constructor create(const intf: iframe); reintroduce;
 
Public destructor destroy; override;
 
Public procedure checktemplate(const sender: tobject); virtual;
 
Public procedure assign(source: tpersistent); override;
 
Public procedure scale(const ascale: real); virtual;
 
Public procedure checkwidgetsize(var asize: sizety); virtual;
 
Public procedure showhint(const aid: int32; var info: hintinfoty); virtual;
 
Public procedure paintbackground(const canvas: tcanvas; const arect: rectty; const clip: boolean; const move: boolean);
 
Public procedure paintoverlay(const canvas: tcanvas; const arect: rectty);
 
Public function pointinmask(const pos: pointty; const arect: rectty): boolean;
 
Public function outerframedim: sizety;
 
Public function outerframecx: int32;
 
Public function outerframecy: int32;
 
Public function frameframedim: sizety;
 
Public function frameframecx: int32;
 
Public function frameframecy: int32;
 
Public function paintframedim: sizety;
 
Public function paintframecx: int32;
 
Public function paintframecy: int32;
 
Public function innerframedim: sizety;
 
Public function innerframecx: int32;
 
Public function innerframecy: int32;
 
Public function outerframe: framety;
 
Public function paintframe: framety;
 
Public function paintframedelta: framety;
 
Public function innerframe: framety;
 
Public function cellframe: framety;
 
Public function pointincaption(const point: pointty): boolean; virtual;
 
Public procedure initgridframe; virtual;
 
Public procedure changedirection(const oldvalue: graphicdirectionty; const newvalue: graphicdirectionty);
 

Properties

Public property intf: iframe read fintf;
 
Public property levelo: integer read fi.levelo write setlevelo stored islevelostored default 0;
 
Public property leveli: integer read fi.leveli write setleveli stored islevelistored default 0;
 
Public property framewidth: integer read fi.framewidth write setframewidth stored isframewidthstored default 0;
 
Public property colorframe: colorty read fi.colorframe write setcolorframe stored iscolorframestored default cl_default;
 
Public property colorframeactive: colorty read fi.colorframeactive write setcolorframeactive stored iscolorframeactivestored default cl_default;
 
Public property colorframedisabled: colorty read fi.colorframedisabled write setcolorframedisabled stored iscolorframedisabledstored default cl_default;
 
Public property colorframemouse: colorty read fi.colorframemouse write setcolorframemouse stored iscolorframemousestored default cl_default;
 
Public property colorframeclicked: colorty read fi.colorframeclicked write setcolorframeclicked stored iscolorframeclickedstored default cl_default;
 
Public property colorframedefault: colorty read fi.colorframedefault write setcolorframedefault stored iscolorframedefaultstored default cl_default;
 
Public property colordkshadow: colorty read fi.framecolors.edges.shadow.effectcolor write setcolordkshadow stored iscolordkshadowstored default cl_default;
 
Public property colorshadow: colorty read fi.framecolors.edges.shadow.color write setcolorshadow stored iscolorshadowstored default cl_default;
 
Public property colorlight: colorty read fi.framecolors.edges.light.color write setcolorlight stored iscolorlightstored default cl_default;
 
Public property colorhighlight: colorty read fi.framecolors.edges.light.effectcolor write setcolorhighlight stored iscolorhighlightstored default cl_default;
 
Public property colordkwidth: integer read fi.framecolors.edges.shadow.effectwidth write setcolordkwidth stored iscolordkwidthstored default -1;
 
Public property colorhlwidth: integer read fi.framecolors.edges.light.effectwidth write setcolorhlwidth stored iscolorhlwidthstored default -1;
 
Public property hiddenedges: edgesty read fi.hiddenedges write sethiddenedges default [];
 
Public property framei: framety read fi.innerframe write setframei;
 
Public property framei_left: integer read fi.innerframe.left write setframei_left stored isfileftstored default 0;
 
Public property framei_top: integer read fi.innerframe.top write setframei_top stored isfitopstored default 0;
 
Public property framei_right: integer read fi.innerframe.right write setframei_right stored isfirightstored default 0;
 
Public property framei_bottom: integer read fi.innerframe.bottom write setframei_bottom stored isfibottomstored default 0;
 
Public property frameo: framety read fi.outerframe write setframeo;
 
Public property frameo_left: integer read fi.outerframe.left write setframeo_left stored isfoleftstored default 0;
 
Public property frameo_top: integer read fi.outerframe.top write setframeo_top stored isfotopstored default 0;
 
Public property frameo_right: integer read fi.outerframe.right write setframeo_right stored isforightstored default 0;
 
Public property frameo_bottom: integer read fi.outerframe.bottom write setframeo_bottom stored isfobottomstored default 0;
 
Public property frameimage_list: timagelist read fi.frameimage_list write setframeimage_list stored isframeimage_liststored;
 
Public property frameimage_left: integer read fi.frameimage_left write setframeimage_left stored isframeimage_leftstored default 0;
 
Public property frameimage_top: integer read fi.frameimage_top write setframeimage_top stored isframeimage_topstored default 0;
 
Public property frameimage_right: integer read fi.frameimage_right write setframeimage_right stored isframeimage_rightstored default 0;
 
Public property frameimage_bottom: integer read fi.frameimage_bottom write setframeimage_bottom stored isframeimage_bottomstored default 0;
 
Public property frameimage_offset: imagenrty read fi.frameimage_offsets.offset write setframeimage_offset stored isframeimage_offsetstored default 0;
 
Public property frameimage_offset1: imagenrty read fi.frameimage_offsets.offset1 write setframeimage_offset1 stored isframeimage_offset1stored default 0;
 
Public property frameimage_offsetdisabled: imagenrty read fi.frameimage_offsets.disabled write setframeimage_offsetdisabled stored isframeimage_offsetdisabledstored default 0;
 
Public property frameimage_offsetmouse: imagenrty read fi.frameimage_offsets.mouse write setframeimage_offsetmouse stored isframeimage_offsetmousestored default 0;
 
Public property frameimage_offsetclicked: imagenrty read fi.frameimage_offsets.clicked write setframeimage_offsetclicked stored isframeimage_offsetclickedstored default 0;
 
Public property frameimage_offsetactive: imagenrty read fi.frameimage_offsets.active write setframeimage_offsetactive stored isframeimage_offsetactivestored default 0;
 
Public property frameimage_offsetfocused: imagenrty read fi.frameimage_offsets.focused write setframeimage_offsetfocused stored isframeimage_offsetfocusedstored default 0;
 
Public property frameface_list: tfacelist read fi.frameface_list write setframeface_list stored isframeface_liststored;
 
Public property frameface_offset: facenrty read fi.frameface_offsets.offset write setframeface_offset stored isframeface_offsetstored default 0;
 
Public property frameface_offset1: facenrty read fi.frameface_offsets.offset1 write setframeface_offset1 stored isframeface_offset1stored default 0;
 
Public property frameface_offsetdisabled: facenrty read fi.frameface_offsets.disabled write setframeface_offsetdisabled stored isframeface_offsetdisabledstored default 0;
 
Public property frameface_offsetmouse: facenrty read fi.frameface_offsets.mouse write setframeface_offsetmouse stored isframeface_offsetmousestored default 0;
 
Public property frameface_offsetclicked: facenrty read fi.frameface_offsets.clicked write setframeface_offsetclicked stored isframeface_offsetclickedstored default 0;
 
Public property frameface_offsetactive: facenrty read fi.frameface_offsets.active write setframeface_offsetactive stored isframeface_offsetactivestored default 0;
 
Public property frameface_offsetfocused: facenrty read fi.frameface_offsets.focused write setframeface_offsetfocused stored isframeface_offsetfocusedstored default 0;
 
Public property optionsskin: frameskinoptionsty read fi.optionsskin write setoptionsskin stored isoptionsskinstored default [];
 
Public property focusrectdist: int32 read fi.focusrectdist write setfocusrectdist stored isfocusrectdiststored default 0;
 
Public property extraspace: int32 read fi.extraspace write setextraspace stored isextraspacestored default 0;
 
Public property imagedist: int32 read fi.imagedist write setimagedist stored isimagediststored default 0;
 
Public property imagedist1: int32 read fi.imagedist1 write setimagedist1 stored isimagedist1stored default 0;
 
Public property imagedist2: int32 read fi.imagedist2 write setimagedist2 stored isimagedist2stored default 0;
 
Public property colorclient: colorty read fi.colorclient write setcolorclient stored iscolorclientstored default cl_default;
 
Public property localprops: framelocalpropsty read flocalprops write setlocalprops ;
 
Public property localprops1: framelocalprops1ty read flocalprops1 write setlocalprops1 ;
 
Public property template: tframecomp read ftemplate write settemplate;
 

Generated by PasDoc 0.16.0.