Download Now
Forums

    Reference Codebot.Controls.pas

    Part of the Codebot Controls package

    The Codebot.Controls unit gives you the base classes for controls that draw on a surface. TSurfaceGraphicControl is a windowless control and TSurfaceCustomControl is a windowed one. Instead of overriding Paint, you override Draw, and Surface is ready for you while Draw runs. Each control has a DrawState that tracks whether it is hot, pressed, focused, or disabled, and a ThemeName that chooses the theme it is drawn with. If you want your control to redraw when the theme changes, override ThemeAware and return True. TSurfaceForm gives your forms the same abilities.

    The unit also gives you TNotifyCollection, a persistent collection that reports changes to its items, TEdgeOffset, which manages the padding or margin of a control, and ArrangeControls, which lays out the controls inside a container in a row.

    Items 85 items

    NameKindLine
    ArrangeControlsprocedure282
    IItemNotifyDelegatealias36
    IItemUpdateDelegatealias28
    TEdgeenum105
    edLeftenum value105
    edTopenum value105
    edRightenum value105
    edBottomenum value105
    TEdgeOffsetclass79
    Assignprocedure91
    Bottomproperty100
    Leftproperty94
    Rightproperty98
    Topproperty96
    TEdgesset109
    TItemNotifyDelegatealias34
    TItemNotifyEventprocedural32
    TItemUpdateDelegatealias26
    TItemUpdateEventprocedural24
    TNotifyCollectionclass42
    Addfunction64
    Assignprocedure62
    Createconstructor59
    Destroydestructor60
    GetOwnerfunction52
    Notifyprocedure54
    Updateprocedure56
    Itemsproperty68
    OnItemNotifyproperty70
    OnItemUpdateproperty72
    Ownerproperty66
    TSurfaceCustomControlclass203
    FDrawStatefield213
    Createconstructor234
    Destroydestructor235
    Drawprocedure223
    Paintprocedure221
    PropChangeprocedure215
    ThemeAwarefunction217
    ThemeChangedprocedure219
    DrawStateproperty227
    OnDrawproperty231
    Surfaceproperty225
    ThemeNameproperty229
    TSurfaceFormclass243
    FDrawStatefield253
    CreateNewconstructor270
    Destroydestructor271
    Drawprocedure263
    Paintprocedure261
    PaintWindowprocedure259
    ThemeAwarefunction255
    ThemeChangedprocedure257
    DrawStateproperty267
    OnRenderproperty274
    Surfaceproperty265
    ThemeNameproperty276
    TSurfaceGraphicControlclass129
    FDrawStatefield146
    AreaClickprocedure149
    Createconstructor194
    Destroydestructor195
    Drawprocedure181
    EnabledChangedprocedure173
    ExcludeStateItemprocedure166
    GetAreaCountfunction151
    GetAreaRectfunction153
    GetAreaStatefunction155
    GetControlClassDefaultSizefunction171
    IncludeStateItemprocedure164
    MouseDownprocedure156
    MouseEnterprocedure161
    MouseLeaveprocedure162
    MouseMoveprocedure160
    MouseUpprocedure158
    Paintprocedure179
    PropChangeprocedure168
    SetParentprocedure169
    ThemeAwarefunction175
    ThemeChangedprocedure177
    DrawStateproperty185
    MousePointproperty191
    OnDrawproperty189
    Surfaceproperty183
    ThemeNameproperty187