Screen.Cursors[1]:= LoadCursor(hInstance, 'pencil');
Image2.Cursor:=1;
理論上在form.oncreat函式中將有上述兩句話就可實作滑鼠移動到影像上就會改為筆觸,可事實上沒變,如果寫成Image2.Cursor := crHandPoint;也能變成手型滑鼠,這是為什么呢?怎樣才能變成筆觸呢?謝謝
uj5u.com熱心網友回復:
確保資源檔案已正確編譯行程式直接這樣試下:
Image2.Cursor:= LoadCursor(hInstance, 'pencil');
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/143640.html
標籤:VCL組件開發及應用
