View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0036093 | Lazarus | LCL | public | 2019-09-20 12:09 | 2020-11-25 16:57 |
Reporter | Andrea Mauri | Assigned To | Dmitry Boyarintsev | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Platform | Mac | ||||
Summary | 0036093: CopyRect does not work on cocoa | ||||
Description | CopyRect does not work on cocoa. Attached a simple project to reproduce the behaviour. Maybe related to bug ID: 0036092 | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
LazTarget | - | ||||
Widgetset | Cocoa | ||||
Attached Files |
|
|
|
|
drawing from one a control canvas to another control canvas is not (yet?) supported in Cocoa. The closest alternative: procedure TForm1.Button2Click(Sender: TObject); var arect: TRect; begin arect:= Rect(0, 0, Image2.Width, Image2.Height); // copy image2.canvas in image1 Image1.Canvas.CopyRect(arect, Image2.Picture.Bitmap.Canvas, arect); end; |
|
Your suggestion (closest alternative) does not work for me. Am I missing something? |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-09-20 12:09 | Andrea Mauri | New Issue | |
2019-09-20 12:09 | Andrea Mauri | File Added: paintto_copyrect.zip | |
2019-11-04 04:40 | Dmitry Boyarintsev | Assigned To | => Dmitry Boyarintsev |
2019-11-04 04:40 | Dmitry Boyarintsev | Status | new => acknowledged |
2019-11-04 04:40 | Dmitry Boyarintsev | LazTarget | => - |
2019-11-04 04:40 | Dmitry Boyarintsev | Note Added: 0119037 | |
2019-11-04 04:40 | Dmitry Boyarintsev | Note Edited: 0119037 | View Revisions |
2020-11-23 13:58 | Andrea Mauri | Note Added: 0127139 | |
2020-11-25 16:57 | Andrea Mauri | Note Edited: 0127139 | View Revisions |