View Issue Details

IDProjectCategoryView StatusLast Update
0025564Lazarus CCRVirtual Treeviewpublic2018-09-04 22:40
ReporterTorsten Bonde Christiansen Assigned ToLuiz Americo  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Platformi386OSMac OS X 
Summary0025564: Stringgrid drawing is incorrect on Mac
DescriptionThe drawing of content in the virtual string grid is buggy on Mac. Displaying a simple stringgrid with data which extends the visual area, behaves very strange when moving around with the scrollbars.
Steps To ReproduceCreate a new project and place a virtual string grid.

Add a OnGetText method to created some bogus data. Enought to create the scrollbars.

Run program and drag scrollbars to observe problem.
Additional InformationI have created a youtube video which displays the problem:

http://youtu.be/j5WxfL15ePc

And attached a compilable program for lazarus 1.0.12+ with fpc 2.6.2+
TagsNo tags attached.
WidgetsetCarbon
Attached Files

Relationships

child of 0028689 resolvedBalázs Székely Lazarus Device Context Origin is not respected in BitBlt under OSX 

Activities

Torsten Bonde Christiansen

2014-01-20 13:49

reporter  

Luiz Americo

2015-05-17 04:48

developer   ~0083677

Can you retest with a recent Lazarus and VTV from repository?

If the problem persists can you post the result of the program attached to http://bugs.freepascal.org/view.php?id=8626 ?

Torsten Bonde Christiansen

2015-05-19 13:24

reporter   ~0083779

@Luiz - are you sure that is the right bug-report you refer to? It is a very old one regarding BitBlt.

Anyway the result is not promising, since nothing is drawn on the form, no matter what button is pressed.

Luiz Americo

2015-05-29 23:45

developer   ~0084114

Sorry about the delay. Mantis does not notify me of changes
Yes. I hit the same issue with gtk years ago and after fixing the viewport in the widgetset, it worked correct

Luiz Americo

2015-05-30 03:12

developer  

BitBltCoordinates.zip (3,083 bytes)

Luiz Americo

2015-05-30 03:14

developer   ~0084119

Try the attached project (BitBltCoordinates). I updated to work with Mac

MIS5

2015-09-16 11:51

reporter   ~0085959

Just uploaded new screenshot from latest OS X installation (Lazarus 1.4.0)

MIS5

2015-09-16 11:51

reporter  

osxblttest.png (24,916 bytes)   
osxblttest.png (24,916 bytes)   

Luiz Americo

2015-09-17 15:25

developer   ~0085979

The attached screenshot confirms that the bug is in OSX Widgetset SetWindowOrg implementation and not in VirtualTreeView

Attached is how works in windows, and also gtk2 and qt

Luiz Americo

2015-09-17 15:26

developer  

BitBltCoordinates-windows.png (3,407 bytes)   
BitBltCoordinates-windows.png (3,407 bytes)   

Zeljan Rikalo

2015-09-17 16:07

reporter   ~0085980

Then pls. let someone change project from CCR to lazarus.

MIS5

2015-10-28 03:20

reporter  

fixedosx.jpg (27,874 bytes)   
fixedosx.jpg (27,874 bytes)   

MIS5

2015-10-28 03:21

reporter   ~0086929

Luiz fix seems to work for me on virtual treeview - think it applies here as well

http://forum.lazarus.freepascal.org/index.php/topic,12172.45.html

MIS5

2018-09-04 22:40

reporter   ~0110498

Seems the same error is there on Cocoa
https://bugs.freepascal.org/view.php?id=34197

Issue History

Date Modified Username Field Change
2014-01-20 13:49 Torsten Bonde Christiansen New Issue
2014-01-20 13:49 Torsten Bonde Christiansen File Added: virtualtree_mac_fail.tgz
2014-08-12 19:04 Luiz Americo Assigned To => Luiz Americo
2014-08-12 19:04 Luiz Americo Status new => assigned
2015-05-17 04:48 Luiz Americo Note Added: 0083677
2015-05-17 04:48 Luiz Americo Status assigned => feedback
2015-05-19 13:24 Torsten Bonde Christiansen Note Added: 0083779
2015-05-19 13:24 Torsten Bonde Christiansen Status feedback => assigned
2015-05-29 23:45 Luiz Americo Note Added: 0084114
2015-05-30 03:12 Luiz Americo File Added: BitBltCoordinates.zip
2015-05-30 03:14 Luiz Americo Note Added: 0084119
2015-09-16 11:51 MIS5 Note Added: 0085959
2015-09-16 11:51 MIS5 File Added: osxblttest.png
2015-09-17 15:25 Luiz Americo Note Added: 0085979
2015-09-17 15:26 Luiz Americo File Added: BitBltCoordinates-windows.png
2015-09-17 15:42 Luiz Americo Relationship added child of 0028689
2015-09-17 16:07 Zeljan Rikalo Note Added: 0085980
2015-10-28 03:20 MIS5 File Added: fixedosx.jpg
2015-10-28 03:21 MIS5 Note Added: 0086929
2018-09-04 22:40 MIS5 Note Added: 0110498