开发者

Replacement of Graphics or Canvas Properties for Delphi Prism

Okay, instead of asking piece by piece, I am going to list all the canvas properties from win32 program that I am having problem with. What wo开发者_运维知识库uld you replace these with for Delphi Prism?

TPanelBevel
TFontStyles
TFontData
TDateTime
TColor
TBrushStyle
TAlignment


There is no Canvas in Windows Forms. There are some possible workarounds: 1.) You could start drawing on a Bitmap and display this Bitmap on your form. Here is an example for that (in C# again).

2.) You could use a WPF canvas in your Windows Forms application (create it within an System.Windows.Forms.Integration.ElementHost control) and use this.

Besides this, there is no direct way to work with a canvas-style element in .NET.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜