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.
精彩评论