我稱旋轉的方法和我是從另一種方法如下調用它:限定 旋轉方法: method TMakerGraphic.Rotate(var pts:array of Point; pcnt,xc,yc:integer);
從另一方法調用它如下: method TMakerLine.GetDynamicBounds(var r:Rectangle);
var
pts:array[1..2] of
我有一個ToolStripButton作爲點擊事件中的發件人。我需要能夠將發件人轉換爲Toolstripbutton,並以整數形式檢索其標籤屬性。我想,我在下面的代碼中這樣做。我的程序編譯成功,但它引發無效的類型轉換運行時錯誤。 theTool := TMakerTool((sender as ToolStripButton).tag);
TMakerTool = public enum
我需要設置並從.NET組合框中獲取顏色。到目前爲止,它並沒有爲我工作。 這裏是在組合框中項目列表顏色列表: AliceBlue
AntiqueWhite
Aqua
Aquamarine
Azure
Beige
Bisque
Black
BlanchedAlmond
Blue
BlueViolet
Brown
BurlyWood
CadetBlue
Chartreuse
我很困惑在.NET中設置事件。 我有如下設置爲MouseDown的方法。 if theTool = TMakerTool.tmtSelect then
begin
MouseDown += new System.Windows.Forms.MouseEventHandler(@SelectMouseDown);
Cursor := Cursors.Arrow;
end
e