Class tcustomscrollbar

Unit

Declaration

type tcustomscrollbar = class(tnullinterfacedpersistent, iframe, iface)

Description

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

Hierarchy

Overview

Fields

Protected fstate: scrollbarstatesty;
Protected fintf: iscrollbar;
Protected foptions: scrollbaroptionsty;
Protected fdrawinfo: scrollbardrawinfoty;
Protected findentstart: integer;
Protected findentend: integer;
Public tag: integer;

Methods

Protected function translatecolor(const acolor: colorty): colorty;
Protected function getclientrect: rectty;
Protected procedure setlinkedvar(const source: tmsecomponent; var dest: tmsecomponent; const linkintf: iobjectlink = nil);
Protected procedure widgetregioninvalid;
Protected procedure setframeinstance(instance: tcustomframe);
Protected procedure setstaticframe(value: boolean);
Protected function getstaticframe: boolean;
Protected procedure scrollwidgets(const dist: pointty);
Protected procedure clientrectchanged;
Protected function getcomponentstate: tcomponentstate;
Protected function getmsecomponentstate: msecomponentstatesty;
Protected procedure invalidatewidget;
Protected procedure invalidaterect(const rect: rectty; const org: originty = org_client; const noclip: boolean = false);
Protected function getwidget: twidget;
Protected function getwidgetrect: rectty;
Protected function getframestateflags: framestateflagsty;
Protected function getfocused: boolean;
Protected procedure setfocused(const avalue: boolean);
Protected function getshiftfact(ashiftstate: shiftstatesty; out fact: real): boolean;
Protected procedure setoptions(const avalue: scrollbaroptionsty); virtual;
Protected procedure invalidate;
Protected procedure dosetvalue();
Protected procedure dostep(akind: scrolleventty; astep: real);
Protected procedure dothumbevent(const aevent: scrolleventty);
Protected function dostepup(const ashiftstate: shiftstatesty): boolean;
Protected function dostepdown(const ashiftstate: shiftstatesty): boolean;
Protected procedure defineproperties(filer: tfiler); override;
Protected function actualcolorpattern: colorty;
Protected function actualcolorpatternclicked: colorty;
Public constructor create(intf: iscrollbar; org: originty = org_client; ondimchanged: proceventty = nil); reintroduce; virtual;
Public destructor destroy; override;
Public procedure createface();
Public procedure createface1();
Public procedure createface2();
Public procedure createfacebutton;
Public procedure createfaceendbutton;
Public procedure createframe;
Public procedure createframebutton;
Public procedure createframeendbutton1;
Public procedure createframeendbutton2;
Public procedure checktemplate(const sender: tobject);
Public procedure paint(const canvas: tcanvas; const acolor: colorty = cl_none); virtual;
Public function wantmouseevent(const apos: pointty): boolean;
Public function buttonmoving(): boolean;
Public procedure mouseevent(var info: mouseeventinfoty);
Public procedure mousewheelevent(var info: mousewheeleventinfoty; const pagingreversed: boolean = false);
Public procedure keydown(var info: keyeventinfoty);
Public procedure enter();
Public procedure exit();
Public function clicked: boolean;
Public procedure activechanged;
Public procedure stepup;
Public procedure stepdown;
Public procedure pageup;
Public procedure pagedown;
Public procedure wheelup(const shiftstate: shiftstatesty = []);
Public procedure wheeldown(const shiftstate: shiftstatesty = []);

Properties

Public property focused: boolean read getfocused write setfocused;
Public property disabled: boolean read getdisabled write setdisabled;
Public property direction: graphicdirectionty read fdirection write setdirection default gd_right;
Public property value: real read fvalue write setvalue;
Public property dim: rectty read fdrawinfo.dim write setdim;
Public property width: integer read fwidth write setwidth default defaultscrollbarwidth;
Public property indentstart: integer read findentstart write setindentstart default 0;
Public property indentend: integer read findentend write setindentend default 0;
Public property options: scrollbaroptionsty read foptions write setoptions default defaultscrollbaroptions;
Public property stepsize: real read getstepsize write fstepsize stored false;
Public property stepctrlfact: real read fstepctrlfact write fstepctrlfact stored false;
Public property stepshiftfact: real read fstepshiftfact write fstepshiftfact stored false;
Public property pagesize: real read fpagesize write setpagesize stored false;
Public property wheelsensitivity: real read fwheelsensitivity write fwheelsensitivity stored false;
Public property buttonlength: integer read fbuttonlength write setbuttonlength default 0;
Public property buttonminlength: integer read fbuttonminlength write setbuttonminlength default defaultbuttonminlength;
Public property buttonendlength: integer read fbuttonendlength write setbuttonendlength default 0;
Public property face: tface read getface write setface;
Public property face1: tface read getface1 write setface1;
Public property face2: tface read getface2 write setface2;
Public property facebutton: tface read getfacebutton write setfacebutton;
Public property faceendbutton: tface read getfaceendbutton write setfaceendbutton;
Public property frame: tframe read getframe write setframe;
Public property framebutton: tframe read getframebutton write setframebutton;
Public property frameendbutton1: tframe read getframeendbutton1 write setframeendbutton1;
Public property frameendbutton2: tframe read getframeendbutton2 write setframeendbutton2;
Public property color: colorty read fcolor write setcolor default cl_default;
Public property colorpattern: colorty read fcolorpattern write setcolorpattern default cl_default;
Public property colorpatternclicked: colorty read fcolorpatternclicked write setcolorpatternclicked default cl_default;
Public property colorglyph: colorty read fdrawinfo.areas[sbbu_down].ca.colorglyph write setcolorglyph default cl_default;
Public property onbeforeevent: beforescrollbareventty read fonbeforeevent write fonbeforeevent;
Public property onafterevent: scrollbareventty read fonafterevent write fonafterevent;

Description

Fields

Protected fstate: scrollbarstatesty;
 
Protected fintf: iscrollbar;
 
Protected foptions: scrollbaroptionsty;
 
Protected fdrawinfo: scrollbardrawinfoty;
 
Protected findentstart: integer;
 
Protected findentend: integer;
 
Public tag: integer;
 

Methods

Protected function translatecolor(const acolor: colorty): colorty;
 
Protected function getclientrect: rectty;
 
Protected procedure setlinkedvar(const source: tmsecomponent; var dest: tmsecomponent; const linkintf: iobjectlink = nil);
 
Protected procedure widgetregioninvalid;
 
Protected procedure setframeinstance(instance: tcustomframe);
 
Protected procedure setstaticframe(value: boolean);
 
Protected function getstaticframe: boolean;
 
Protected procedure scrollwidgets(const dist: pointty);
 
Protected procedure clientrectchanged;
 
Protected function getcomponentstate: tcomponentstate;
 
Protected function getmsecomponentstate: msecomponentstatesty;
 
Protected procedure invalidatewidget;
 
Protected procedure invalidaterect(const rect: rectty; const org: originty = org_client; const noclip: boolean = false);
 
Protected function getwidget: twidget;
 
Protected function getwidgetrect: rectty;
 
Protected function getframestateflags: framestateflagsty;
 
Protected function getfocused: boolean;
 
Protected procedure setfocused(const avalue: boolean);
 
Protected function getshiftfact(ashiftstate: shiftstatesty; out fact: real): boolean;
 
Protected procedure setoptions(const avalue: scrollbaroptionsty); virtual;
 
Protected procedure invalidate;
 
Protected procedure dosetvalue();
 
Protected procedure dostep(akind: scrolleventty; astep: real);
 
Protected procedure dothumbevent(const aevent: scrolleventty);
 
Protected function dostepup(const ashiftstate: shiftstatesty): boolean;
 
Protected function dostepdown(const ashiftstate: shiftstatesty): boolean;
 
Protected procedure defineproperties(filer: tfiler); override;
 
Protected function actualcolorpattern: colorty;
 
Protected function actualcolorpatternclicked: colorty;
 
Public constructor create(intf: iscrollbar; org: originty = org_client; ondimchanged: proceventty = nil); reintroduce; virtual;
 
Public destructor destroy; override;
 
Public procedure createface();
 
Public procedure createface1();
 
Public procedure createface2();
 
Public procedure createfacebutton;
 
Public procedure createfaceendbutton;
 
Public procedure createframe;
 
Public procedure createframebutton;
 
Public procedure createframeendbutton1;
 
Public procedure createframeendbutton2;
 
Public procedure checktemplate(const sender: tobject);
 
Public procedure paint(const canvas: tcanvas; const acolor: colorty = cl_none); virtual;
 
Public function wantmouseevent(const apos: pointty): boolean;
 
Public function buttonmoving(): boolean;
 
Public procedure mouseevent(var info: mouseeventinfoty);
 
Public procedure mousewheelevent(var info: mousewheeleventinfoty; const pagingreversed: boolean = false);
 
Public procedure keydown(var info: keyeventinfoty);
 
Public procedure enter();
 
Public procedure exit();
 
Public function clicked: boolean;
 
Public procedure activechanged;
 
Public procedure stepup;
 
Public procedure stepdown;
 
Public procedure pageup;
 
Public procedure pagedown;
 
Public procedure wheelup(const shiftstate: shiftstatesty = []);
 
Public procedure wheeldown(const shiftstate: shiftstatesty = []);
 

Properties

Public property focused: boolean read getfocused write setfocused;
 
Public property disabled: boolean read getdisabled write setdisabled;
 
Public property direction: graphicdirectionty read fdirection write setdirection default gd_right;
 
Public property value: real read fvalue write setvalue;
 
Public property dim: rectty read fdrawinfo.dim write setdim;
 
Public property width: integer read fwidth write setwidth default defaultscrollbarwidth;
 
Public property indentstart: integer read findentstart write setindentstart default 0;
 
Public property indentend: integer read findentend write setindentend default 0;
 
Public property options: scrollbaroptionsty read foptions write setoptions default defaultscrollbaroptions;
 
Public property stepsize: real read getstepsize write fstepsize stored false;
 
Public property stepctrlfact: real read fstepctrlfact write fstepctrlfact stored false;
 
Public property stepshiftfact: real read fstepshiftfact write fstepshiftfact stored false;
 
Public property pagesize: real read fpagesize write setpagesize stored false;
 
Public property wheelsensitivity: real read fwheelsensitivity write fwheelsensitivity stored false;
 
Public property buttonlength: integer read fbuttonlength write setbuttonlength default 0;
 
Public property buttonminlength: integer read fbuttonminlength write setbuttonminlength default defaultbuttonminlength;
 
Public property buttonendlength: integer read fbuttonendlength write setbuttonendlength default 0;
 
Public property face: tface read getface write setface;
 
Public property face1: tface read getface1 write setface1;
 
Public property face2: tface read getface2 write setface2;
 
Public property facebutton: tface read getfacebutton write setfacebutton;
 
Public property faceendbutton: tface read getfaceendbutton write setfaceendbutton;
 
Public property frame: tframe read getframe write setframe;
 
Public property framebutton: tframe read getframebutton write setframebutton;
 
Public property frameendbutton1: tframe read getframeendbutton1 write setframeendbutton1;
 
Public property frameendbutton2: tframe read getframeendbutton2 write setframeendbutton2;
 
Public property color: colorty read fcolor write setcolor default cl_default;
 
Public property colorpattern: colorty read fcolorpattern write setcolorpattern default cl_default;
 
Public property colorpatternclicked: colorty read fcolorpatternclicked write setcolorpatternclicked default cl_default;
 
Public property colorglyph: colorty read fdrawinfo.areas[sbbu_down].ca.colorglyph write setcolorglyph default cl_default;
 
Public property onbeforeevent: beforescrollbareventty read fonbeforeevent write fonbeforeevent;
 
Public property onafterevent: scrollbareventty read fonafterevent write fonafterevent;
 

Generated by PasDoc 0.16.0.