Forum > Carbon

Copy stringgrid canvas in image

<< < (2/3) > >>

Josh:
What about changing the paintto to :=

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---//StringGrid1.PaintTo(bmp.Canvas, 0, 0); // Removed for testing purposes..bmp.Canvas.CopyRect(rect(0, 0, bmp.Width, bmp.Height),stringgrid1.canvas,rect(0, 0, stringgrid1.ClientWidth, stringgrid1.ClientHeight)); 

xinyiman:
Not work, return all black image

Phil:

--- Quote from: xinyiman on July 13, 2018, 02:59:51 pm ---Not work, return all black image

--- End quote ---

Test with Cocoa widgetset if you're not already doing that. If bug there too, file bug report. If no bug, use Cocoa widgetset.

MISV:
Cocoa is the future - carbon apps will soon no run on Mac. As Phil said, if the bug is there on Cocoa as well report bug! :)

Hint: I use fpcupdeluxe to get newest trunk version of Cocoa (easiest way to get started I think)

xinyiman:

--- Quote from: MISV on July 13, 2018, 03:07:53 pm ---Cocoa is the future - carbon apps will soon no run on Mac. As Phil said, if the bug is there on Cocoa as well report bug! :)

Hint: I use fpcupdeluxe to get newest trunk version of Cocoa (easiest way to get started I think)

--- End quote ---

Problem with my actual version of cocoa lazarus 1.8.4
I test install cocoa lazarus trunk yesterday but not function. When i start ide return arithmetic overflow.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version