Recent

Author Topic: Mysterious issue - can you help me track it down?  (Read 1226 times)

MISV

  • Hero Member
  • *****
  • Posts: 783
Mysterious issue - can you help me track it down?
« on: February 19, 2020, 03:20:34 am »
Note: This does not happen on Windows/Delphi or Windows/Lazarus, only Mac-Cocoa/Lazarus

If I resize my mainform "grabbing"
*bottomright* or *bottomleft* of my statusbar which is placed at bottom of form
My main PageControl suddenly changes active tabsheet.

(i.e. to trigger the problem I have to be resizing both height and width at the same time. The problem does not present itself if I grab at the middel of the bottom and only resize height)

By placing a breakpoint at the TPageControl "onchanging" event I can see om the callstack - but not what actually triggers it.

Code: Pascal  [Select][+][-]
  1. #0 PGMAINCHANGING(0x0000000102b65bd0, 0x0000000107a25670, true) at front_form.pas:20671
  2. #1 CANCHANGE(0x0000000107a25670) at customnotebook.inc:374
  3. #2 CANCHANGEPAGEINDEX(0x0000000107a25670) at customnotebook.inc:367
  4. #3 CNNOTIFY(0x0000000107a25670, TLMNOTIFY, , ) at customnotebook.inc:1089
  5. #4 SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal at :-1
  6. #5 WNDPROC(0x0000000107a25670, (MSG, , , , , , , , , , , , , , ) at control.inc:2240
  7. #6 WNDPROC(0x0000000107a25670, (MSG, , , , , , , , , , , , , , ) at wincontrol.inc:5429
  8. #7 DOCONTROLMSG(4328211680, <unavailable>) at controls.pp:3360
  9. #8 WMNOTIFY(0x0000000107a25670, TLMNOTIFY, , ) at wincontrol.inc:7328
  10. #9 SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal at :-1
  11. #10  at :0
  12. #11  at :0
  13.  

Any ideas on how to see what triggers this odd problem?
« Last Edit: February 19, 2020, 09:55:50 am by MISV »

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Mysterious issue - can you help me track it down?
« Reply #1 on: February 21, 2020, 05:56:10 pm »
Issues seems to only appear in debug builds so... I have no idea why or if it is my code. But consider it resolved

 

TinyPortal © 2005-2018