View Issue Details

IDProjectCategoryView StatusLast Update
0035826LazarusWidgetsetpublic2019-08-27 21:04
ReporterjoshAssigned ToDmitry Boyarintsev 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
PlatformmacOSosxOS Version
Product Version2.1 (SVN)Product Build 
Target VersionFixed in Version 
Summary0035826: Form Activate Not Visible, Mouse Up Event not firing, slow graphics.
DescriptionAttached is a simple program; to demonstrate a few issues.

The application runs some code during the form create;show and activate events; which will take a few seconds per event.
It has a cocoa and carbon build option for easy switching; make sure you create the application bundle for proper test.

COmpile for carbon; and run from the IDE, all seems OK, and you can drag a button around.
Note that the ACTIVATE window appears and counts to 100.

Now compile for cocoa.
If RUN from the IDE, you will see the ACTIVATE event count up to 100.
NOW run the APP from the APP Bundle, you will have to wait longer for the form to show; but it does count; it appears after activate has finished.

Also try dragging and dropping any of the buttons; the screen keeps a count of the time the Mouse Down and Mouse Up, Mouse Move events are fired; you will see that in cocoa it is a lot more 'jerky' and the mouse up event is not fired to remove the drag panel.

Sometimes when compiled for cocoa but not always the poistion of the panels are changed.

Using LAZ 2.1 SVN 61504 X86-64-darwin-cocoa, FPC 3.3.1

Addition I have tried latest SVN upto 9 July 2019.
Steps To ReproduceBuild the attached application; that contains, Tpanel,tlabel,and tbutton.
Make sure that you create the application bundle.
Under Carbon, the application is visible during the Activate event; both when run from IDE and the APP Bundle.
Now build for Cocoa, if run from IDE it works as it should, if run from the app bundle then the form is only visible after the activate event is finished.

The app allows you to drag a button; again this works fine in carbon, and you can see the mouse down and up events fire count increasing; under cocoa this is not the case the mouse up is rarely fired.

You will also note under cocoa how 'jerky' the dragged panel is.
TagsNo tags attached.
Fixed in Revision61696, 61762
LazTarget-
WidgetsetCocoa
Attached Files

Activities

josh

2019-07-10 23:42

reporter  

event_test.zip (7,117 bytes)

josh

2019-08-15 11:00

reporter   ~0117681

Just updated to Lazarus 61695 anf latest FPC 3.1.1, and the issues still exists.
Any progress on the above issues?

josh

2019-08-22 13:20

reporter   ~0117782

Hi

Trunk of Lazarus (61741) has fixed the mouse event firing issues.
Still exists different behaviour of running from IDE and running the app bundle (form activate event the form is not shown from app bundle).

The changing of panels seems to be caused by panel.bringtofront.

I have attached project that has a button that allows you to bringtofront a panel, if clicked you will see the panel jump location.

event_firing.zip (9,337 bytes)

Dmitry Boyarintsev

2019-08-27 21:04

developer   ~0117859

61762 takes care of bringToFont issue

Issue History

Date Modified Username Field Change
2019-07-10 23:42 josh New Issue
2019-07-10 23:42 josh File Added: event_test.zip
2019-07-12 15:04 Dmitry Boyarintsev Assigned To => Dmitry Boyarintsev
2019-07-12 15:04 Dmitry Boyarintsev Status new => assigned
2019-08-15 11:00 josh Note Added: 0117681
2019-08-15 16:31 Dmitry Boyarintsev Fixed in Revision => 61696
2019-08-15 16:31 Dmitry Boyarintsev LazTarget => -
2019-08-15 16:31 Dmitry Boyarintsev Widgetset Cocoa => Cocoa
2019-08-16 03:51 Dmitry Boyarintsev Status assigned => confirmed
2019-08-22 13:20 josh File Added: event_firing.zip
2019-08-22 13:20 josh Note Added: 0117782
2019-08-27 21:04 Dmitry Boyarintsev Fixed in Revision 61696 => 61696, 61762
2019-08-27 21:04 Dmitry Boyarintsev Widgetset Cocoa => Cocoa
2019-08-27 21:04 Dmitry Boyarintsev Note Added: 0117859