Custom Control Creation in Delphi

前端 未结 3 558
醉梦人生
醉梦人生 2020-12-15 14:36

I used this on a form and created it like 10 times. That was ok, until I tried to pass this number. Then it started eating system resources. Is there any way I could create

3条回答
  •  渐次进展
    2020-12-15 14:56

    You have these options, in order of difficulty:

    1. Create a frame, and reuse it
    2. Create a compound control (using maybe a panel, labels and checkboxes). Each control will handle its own keyboard/mouse interaction.
    3. Create a whole new control - all elements are drawn using the proper APIs and all keyboard/mouse interaction is handled by the control code.

提交回复
热议问题