我动态地将几个TImage
控件添加到 aTPanel
中,并想在它们之间画线,但TPanel
没有Canvas
. 你可以画一个TPaintBox
,但我不能TImage
在上面画微笑。告诉我如何摆脱这种简单的情况。
问问题
156 次
1 回答
1
我已经处理了这个问题
// before describing the form class in the h-file:
namespace CanvasPanel
{
class TPanel : public Extctrls::TPanel
{
public:
__property Canvas;
};
}
#define TPanel CanvasPanel::TPanel
// next - the form class, and everything is unchanged...
class TForm1 : public TForm
于 2021-04-01T23:06:59.353 回答