0

I am developing an interactive CD most of my life I wrote console applications writing something mostly graphical is akward for me.

So here is my approach :

I am drawing on the canavas using shapes and images the left and top position are stored in a file. Is there any easier approach ? I thought using shapes objects would simplify my work what do you guys think ?

Any examples are welcome.

If you consider this question subjective please vote for closing.

4

3 回答 3

3

正确的方法是编写一个OnPaint处理程序(即侦听WM_PAINT消息)并使用 GDI 进行绘图。

这里有几个简单的例子:

通过移动控件进行绘图非常尴尬。

于 2013-06-05T19:57:04.600 回答
1

由于您没有指定任何版本,我假设您不会在古老的 Delphi 上浪费时间,所以也许您也应该看看FireMonkey

这也为让您的交互式内容在其他平台上工作打开了大门。

于 2013-06-05T20:25:10.933 回答
0

我推荐我已经成功使用的 Delphi GDI+ 库。它是 GDI+ 的一个包装器,它消除了很多痛苦。

于 2013-06-06T23:00:10.027 回答