Download Now
Forums

    Reference Codebot.Render.Widgets.pas

    Part of the Codebot Render package

    The Codebot.Render.Widgets unit gives you a user interface drawn on a canvas inside a scene, with no help from the LCL or the system. TWidget is the base class of every widget, and TMainWidget is the parent of a layout and also shows message boxes. You add widgets to a parent with Add, such as Window.Add<TPushButton>, and freeing a widget frees its children.

    Widgets Description
    TLabel, TEdit, TMemo Text you show, and text the user types.
    TPushButton, TGlyphButton, TCheckBox Buttons and check boxes.
    TSlider, TSpinBox Pick a number.
    TListBox, TScrollGrid Lists and grids that scroll.
    TGlyphImage, TPaintBox, TSpacer Images, your own drawing, and empty space.
    THBox, TVBox Arrange their children in a row or a column.
    TScrollBox Holds other widgets in an area that scrolls.
    TWindow A container with a title bar, which stacks the widgets you add and sizes itself to fit them. The user can drag, close, and resize it, and you can show it as a modal window.
    TCustomWidget The base class of widgets that draw themselves.

    TTheme is the base class of the themes that draw the widgets and give the sizes of their parts. The themes themselves are in Codebot.Render.Widgets.Themes.

    Items 580 items

    NameKindLine
    ARGBfunction43
    colorActiveconstant83
    colorBaseconstant80
    colorBorderconstant82
    colorCaptionconstant87
    colorDarkShadowconstant92
    colorFaceconstant81
    colorHighlightconstant90
    colorHotconstant86
    colorPressedconstant84
    colorSelectedconstant85
    colorShadowconstant91
    colorTextconstant89
    colorTitleconstant88
    DragScrollDistanceconstant65
    DragScrollIntervalconstant64
    DropScrollItemsconstant57
    EditPaddingconstant48
    HeaderGrabSizeconstant71
    HeaderMinWidthconstant72
    modalAcceptconstant110
    modalCancelconstant107
    modalErrorconstant112
    modalNoconstant109
    modalNoneconstant105
    modalOkconstant106
    modalRetryconstant111
    modalYesconstant108
    modelQuitconstant113
    ScrollBarSizeconstant52
    TButtonclass747
    DoClickprocedure754
    CanToggleproperty758
    Downproperty760
    Groupproperty763
    OnChangeproperty764
    OnClickproperty765
    OnKeyDownproperty766
    OnMouseDownproperty767
    OnMouseMoveproperty768
    OnMouseUpproperty769
    TCheckBoxclass800
    CanSelectfunction807
    DoClickprocedure806
    Checkedproperty810
    OnChangeproperty813
    OnClickproperty814
    OnKeyDownproperty815
    OnMouseDownproperty816
    OnMouseMoveproperty817
    OnMouseUpproperty818
    Roundproperty812
    TComputedWidgetclass204
    Boundsfunction214
    Createconstructor208
    Enabledfunction216
    Opacityfunction212
    Statefunction220
    Themefunction210
    Visiblefunction218
    TContainerWidgetclass1447
    SelectNextprocedure1453
    Fadeproperty1455
    TCustomWidgetclass1292
    Paintprocedure1296
    OnClickproperty1300
    OnKeyDownproperty1301
    OnMouseDownproperty1302
    OnMouseMoveproperty1303
    OnMouseUpproperty1304
    OnPaintproperty1299
    TDrawCellEventprocedural1100
    TEditclass529
    AutoSizefunction547
    CanSelectfunction548
    CaretVisiblefunction568
    CopyToClipboardprocedure558
    CutToClipboardprocedure560
    DoKeyDownprocedure549
    DoKeyUpprocedure550
    DoMouseDownprocedure552
    DoMouseMoveprocedure553
    DoTextInputprocedure551
    OffsetOffunction566
    PasteFromClipboardprocedure562
    ScrollToCaretprocedure564
    SelectAllprocedure556
    Caretproperty570
    OnChangeproperty580
    OnClickproperty581
    OnKeyDownproperty582
    OnKeyUpproperty583
    OnMouseDownproperty584
    OnMouseMoveproperty585
    OnMouseUpproperty586
    Scrollproperty578
    SelLengthproperty574
    SelStartproperty572
    SelTextproperty576
    Textproperty579
    TGlyphButtonclass782
    TGlyphImageclass788
    OnClickproperty790
    OnKeyDownproperty791
    OnMouseDownproperty792
    OnMouseMoveproperty793
    OnMouseUpproperty794
    TGridColEventprocedural1104
    THBoxclass1460
    Packfunction1462
    OnClickproperty1463
    OnKeyDownproperty1464
    OnMouseDownproperty1465
    OnMouseMoveproperty1466
    OnMouseUpproperty1467
    TLabelclass823
    FOwnerDrawfield831
    AssociateTextproperty835
    MaxWidthproperty837
    OnClickproperty840
    OnKeyDownproperty841
    OnMouseDownproperty842
    OnMouseMoveproperty843
    OnMouseUpproperty844
    OwnerDrawproperty839
    TListBoxclass997
    AutoSizefunction1016
    BarRectfunction1040
    BarVisiblefunction1038
    CanSelectfunction1017
    Createconstructor1025
    DoKeyDownprocedure1019
    DoMouseDownprocedure1020
    DoMouseMoveprocedure1021
    DoMouseUpprocedure1022
    DoMouseWheelprocedure1023
    ItemAreafunction1032
    ItemFromPointfunction1036
    ItemHeightfunction1030
    ItemRectfunction1034
    Paintprocedure1018
    ScrollToItemprocedure1027
    ThumbRectfunction1042
    Countproperty1048
    HotIndexproperty1046
    ItemIndexproperty1052
    Itemsproperty1050
    OnChangeproperty1053
    OnClickproperty1054
    OnKeyDownproperty1055
    OnMouseDownproperty1056
    OnMouseMoveproperty1057
    OnMouseUpproperty1058
    ScrollYproperty1044
    TMainWidgetclass439
    Createconstructor465
    Destroydestructor466
    DispatchKeyDownprocedure476
    DispatchKeyUpprocedure477
    DispatchMouseDownprocedure478
    DispatchMouseMoveprocedure479
    DispatchMouseUpprocedure480
    DispatchMouseWheelprocedure482
    DispatchTextInputprocedure481
    MessageBoxprocedure468
    MessageConfirmprocedure471
    MessageDialogprocedure474
    MouseForfunction500
    MouseLocalprocedure462
    Renderprocedure490
    SetModalprocedure459
    UnsetModalprocedure460
    WidgetPointfunction497
    ActiveWindowproperty484
    Captureproperty505
    ModalWindowproperty486
    MousePosproperty494
    OnKeyDownproperty506
    OnKeyUpproperty507
    OnMouseDownproperty508
    OnMouseMoveproperty509
    OnMouseUpproperty510
    Selectedproperty488
    ShowHintproperty502
    Timeproperty492
    TMemoclass615
    AutoSizefunction671
    BarRectfunction700
    BarVisiblefunction698
    CanSelectfunction672
    CaretPointfunction712
    CaretVisiblefunction714
    CopyToClipboardprocedure687
    Createconstructor682
    CutToClipboardprocedure689
    Destroydestructor683
    DoKeyDownprocedure674
    DoKeyUpprocedure675
    DoMouseDownprocedure677
    DoMouseMoveprocedure678
    DoMouseUpprocedure679
    DoMouseWheelprocedure680
    DoTextInputprocedure676
    PasteFromClipboardprocedure691
    Prepareprocedure694
    Resizeprocedure673
    RowCountfunction705
    RowSelectionfunction710
    RowTextfunction707
    SelectAllprocedure685
    TextAreafunction696
    ThumbRectfunction702
    Caretproperty721
    Linesproperty729
    OnChangeproperty735
    OnClickproperty736
    OnKeyDownproperty737
    OnKeyUpproperty738
    OnMouseDownproperty739
    OnMouseMoveproperty740
    OnMouseUpproperty741
    RowHeightproperty716
    ScrollBarsproperty734
    ScrollXproperty718
    ScrollYproperty719
    SelLengthproperty725
    SelStartproperty723
    SelTextproperty727
    WordWrapproperty731
    TMemoBarenum613
    barVertenum value613
    barHorzenum value613
    TMemoRowrecord601
    Hardfield606
    Lengthfield604
    Startfield603
    Widthfield607
    TMemoRowsarray611
    TModalButtonenum97
    mbOkayenum value97
    mbYesenum value97
    mbNoenum value97
    mbAcceptenum value97
    mbCancelenum value97
    TModalButtonsset99
    TModalResultalias102
    TModalResultEventprocedural142
    TPaintBoxclass1315
    Createconstructor1321
    Paintprocedure1319
    OnClickproperty1324
    OnKeyDownproperty1325
    OnMouseDownproperty1326
    OnMouseMoveproperty1327
    OnMouseUpproperty1328
    OnPaintproperty1323
    TPaintEventprocedural1313
    TPaintStageenum144
    prePaintenum value144
    postPaintenum value144
    TPushButtonclass774
    CanSelectfunction776
    TScrollBoxclass1365
    AutoSizefunction1389
    BarRectfunction1415
    BarVisiblefunction1413
    CanSelectfunction1390
    ChildSelectedprocedure1393
    ClientAreafunction1411
    ClientClipfunction1395
    ClientOffsetfunction1394
    Createconstructor1402
    DoKeyDownprocedure1396
    DoMouseDownprocedure1397
    DoMouseMoveprocedure1398
    DoMouseUpprocedure1399
    DoMouseWheelprocedure1400
    FitWidthfunction1407
    Packfunction1403
    Paintprocedure1391
    ScrollToWidgetprocedure1405
    SelectsForChildrenfunction1392
    ThumbRectfunction1417
    ContentHeightproperty1420
    ContentWidthproperty1419
    Framedproperty1426
    Imageproperty1428
    ImageBrightnessproperty1433
    ImageModeproperty1430
    OnKeyDownproperty1438
    OnMouseDownproperty1439
    OnMouseMoveproperty1440
    OnMouseUpproperty1441
    OnPaintBackgroundproperty1437
    ScrollXproperty1423
    ScrollYproperty1424
    TScrollBoxDragenum1363
    boxDragNoneenum value1363
    boxDragVertenum value1363
    boxDragHorzenum value1363
    TScrollGridclass1110
    AutoSizefunction1172
    BarRectfunction1202
    BarVisiblefunction1200
    CanSelectfunction1173
    CellAreafunction1194
    CellFromPointfunction1198
    CellRectfunction1196
    ColFromOffsetfunction1210
    ColOffsetfunction1207
    Createconstructor1181
    Destroydestructor1182
    DividerFromPointfunction1220
    DoKeyDownprocedure1175
    DoMouseDownprocedure1176
    DoMouseMoveprocedure1177
    DoMouseUpprocedure1178
    DoMouseWheelprocedure1179
    DrawCellprocedure1190
    HeaderCellRectfunction1215
    HeaderFromPointfunction1217
    HeaderRectfunction1213
    Paintprocedure1174
    ScrollToCellprocedure1187
    Selectprocedure1185
    Selectedfunction1274
    ThumbRectfunction1204
    Colproperty1261
    ColAlignsproperty1240
    ColCountproperty1228
    ColSizingproperty1249
    ColTitlesproperty1237
    ColWidthproperty1232
    ColWidthsproperty1235
    GridLinesproperty1265
    HeaderHeightproperty1246
    HeaderHotproperty1252
    HeaderPressedproperty1255
    HeaderRowproperty1242
    HotColproperty1225
    HotRowproperty1226
    OnChangeproperty1281
    OnClickproperty1282
    OnColResizeproperty1280
    OnDrawCellproperty1276
    OnHeaderClickproperty1278
    OnKeyDownproperty1283
    OnMouseDownproperty1284
    OnMouseMoveproperty1285
    OnMouseUpproperty1286
    Rowproperty1262
    RowCountproperty1229
    RowHeightproperty1233
    ScrollXproperty1222
    ScrollYproperty1223
    SelectColorproperty1271
    SelectTextColorproperty1272
    SortColproperty1258
    SortDescendingproperty1259
    TextColorproperty1270
    TScrollGridDragenum1107
    gridDragNoneenum value1107
    gridDragVertenum value1107
    gridDragHorzenum value1107
    gridDragCellsenum value1107
    gridDragHeaderenum value1108
    gridDragSizeenum value1108
    TSizeFalias21
    TSliderclass849
    Changeprocedure864
    Createconstructor868
    DoMouseDownprocedure865
    DoMouseMoveprocedure866
    Trackprocedure863
    Associateproperty870
    GripRectproperty872
    Maxproperty876
    Minproperty874
    OnChangeproperty881
    OnClickproperty882
    OnKeyDownproperty883
    OnMouseDownproperty884
    OnMouseMoveproperty885
    OnMouseUpproperty886
    Positionproperty878
    Stepproperty880
    TSpacerclass515
    TSpinBoxclass909
    AutoSizefunction927
    CanSelectfunction928
    CloseUpprocedure948
    Createconstructor936
    Destroydestructor937
    DoKeyDownprocedure930
    DoMouseDownprocedure931
    DoMouseMoveprocedure932
    DoMouseUpprocedure933
    DoMouseWheelprocedure934
    DropAreafunction956
    DropBarRectfunction964
    DropBarVisiblefunction962
    DropDownprocedure946
    DropItemFromPointfunction960
    DropItemHeightfunction952
    DropItemRectfunction958
    DropRectfunction954
    DropScrollToprocedure950
    DropThumbRectfunction966
    ItemFromPointfunction941
    ItemRectfunction939
    Paintprocedure929
    Droppedproperty968
    DropScrollproperty970
    ItemIndexproperty976
    Itemsproperty974
    Kindproperty978
    OnChangeproperty979
    OnClickproperty980
    OnKeyDownproperty981
    OnMouseDownproperty982
    OnMouseMoveproperty983
    OnMouseUpproperty984
    Prefixproperty972
    TSpinBoxKindenum907
    spinDropDownenum value907
    spinSlideenum value907
    spinDropScrollenum value907
    TThemeclass152
    CalcCloseRectfunction168
    CalcColorfunction155
    CalcSizefunction157
    CalcTextHeightfunction159
    CalcTextWidthfunction161
    PopClipprocedure178
    PopMatrixprocedure173
    PushClipprocedure176
    PushMatrixprocedure171
    Renderprocedure163
    RenderHintprocedure165
    TThemeClassclassref182
    TThemeColoralias77
    TThemePartenum150
    tpEverythingenum value150
    tpIndentenum value150
    tpCaptionenum value150
    tpNodeenum value150
    tpThumbenum value150
    tpBorderenum value150
    TTileModeenum1361
    tileNoneenum value1361
    tileRepeatenum value1361
    tileScaleenum value1361
    TVBoxclass1472
    Packfunction1474
    OnClickproperty1475
    OnKeyDownproperty1476
    OnMouseDownproperty1477
    OnMouseMoveproperty1478
    OnMouseUpproperty1479
    TWidgetclass235
    TWidgetEnumeratoralias237
    Activateprocedure364
    Addfunction342, 344
    AddFirstfunction347, 349
    AddStateprocedure315
    AutoSizefunction297
    BringToFrontprocedure366
    CanSelectfunction308
    Changeprocedure317
    ChildSelectedprocedure314
    Clickprocedure358
    ClientClipfunction307
    ClientOffsetfunction303
    Colorfunction372
    Createconstructor337
    Deleteprocedure360
    Destroydestructor338
    DoClickprocedure319
    DoKeyDownprocedure320
    DoKeyUpprocedure321
    DoModalResultprocedure318
    DoMouseDownprocedure322
    DoMouseMoveprocedure323
    DoMouseUpprocedure324
    DoMouseWheelprocedure326
    DoTextInputprocedure325
    FindWidgetfunction352, 354
    GetBordersfunction300
    GetEnumeratorfunction239
    IsParentfunction362
    Packfunction356
    Paintprocedure296
    RemoveStateprocedure316
    Repackprocedure299
    Resizeprocedure298
    SelectsForChildrenfunction312
    SendToBackprocedure368
    Thisfunction340
    ZOrderprocedure370
    Alignproperty378
    Boundsproperty389
    Childproperty405
    ChildCountproperty403
    Computedproperty374
    Containerproperty397
    Enabledproperty426
    FirstChildproperty399
    Heightproperty410
    Hintproperty391
    Indentproperty415
    LastChildproperty401
    Mainproperty393
    Marginproperty412
    Matrixproperty387
    ModalResultproperty428
    Nameproperty417
    OnChangeproperty328
    OnClickproperty329
    OnKeyDownproperty330
    OnKeyUpproperty331
    OnMouseDownproperty332
    OnMouseMoveproperty333
    OnMouseUpproperty334
    Opacityproperty419
    Parentproperty395
    Sectorproperty380
    Stateproperty430
    StayOnTopproperty382
    Tagproperty434
    Textproperty421
    Themeproperty376
    Unpackedproperty432
    Visibleproperty423
    Widthproperty409
    Xproperty407
    Yproperty408
    TWidgetAlignenum225
    alignNearenum value225
    alignCenterenum value225
    alignFarenum value225
    TWidgetListalias227
    TWidgetPointHelperhelper36
    Roundfunction38
    TWidgetRectHelperhelper25
    Roundfunction28
    Sectorfunction31
    TWidgetStateset199
    TWidgetStatePartenum186
    wsDisabledenum value188
    wsPressedenum value190
    wsHotenum value192
    wsSelectedenum value194
    wsToggledenum value196
    TWindowclass1485
    Closeprocedure1519
    CloseHotfunction1523
    ClosePressedfunction1525
    CloseRectfunction1521
    Createconstructor1511
    DoClickprocedure1506
    DoModalResultprocedure1505
    DoMouseDownprocedure1507
    DoMouseMoveprocedure1508
    DoMouseUpprocedure1509
    GetBordersfunction1504
    Hideprocedure1516
    Packfunction1512
    Showprocedure1514
    ShowModalprocedure1543
    SizeRectfunction1532
    CloseButtonproperty1528
    OnClickproperty1544
    OnCloseproperty1530
    OnKeyDownproperty1545
    OnMouseDownproperty1546
    OnMouseMoveproperty1547
    OnMouseUpproperty1548
    OnResizeproperty1541
    Sizeableproperty1537
    SizeWidgetproperty1539