Creating a new component by combining two controls (TEdit and TTrackBar) in Delphi VCL

后端 未结 3 1240
悲哀的现实
悲哀的现实 2021-01-12 12:28

I am developing a Delphi 10.1 VCL application for Windows.

For integer or float input I need a number input field which is connected with a slider. When the user cha

3条回答
  •  无人及你
    2021-01-12 12:56

    You can create a Frame and then register that Frame as a component. The end result is very similar to creating a code only component where the sub components are created in the constructor (Nasreddine's number 1 option). However this method allows you to visually design the component and use the object inspector to create your event handlers.

    Here is a Stack Overflow question that shows how to register the frame: How to Improve the Use of Delphi Frames

提交回复
热议问题