How to draw on a TPanel

前端 未结 4 1362
陌清茗
陌清茗 2021-01-13 04:35

I need to draw on a TPanel, ideally directly so I don\'t have another component on top of it getting in the way of mousevent-event trapping (I want to draw a little \"size-g

4条回答
  •  日久生厌
    2021-01-13 05:24

    The simplest way to do it is to just put a TImage on the panel. But if you really don't want to do that, type TCanvas into the code editor, hit F1, and have fun learning about how it works under the hood. (Don't say I didn't warn you...)

提交回复
热议问题