Recent

Author Topic: [Solved] App has parasite TUpDown  (Read 1655 times)

Alextp

  • Hero Member
  • *****
  • Posts: 894
    • UVviewsoft
[Solved] App has parasite TUpDown
« on: September 29, 2018, 10:08:00 am »
Main CudaText window shows UpDown (or like) control over its corner, over ATFlatToolbar.
(Carbon build is okay.)
I don't have demo to repro...
screenshot.
« Last Edit: October 02, 2018, 06:53:48 pm by Alextp »

Alextp

  • Hero Member
  • *****
  • Posts: 894
    • UVviewsoft
Re: CudaText has parasite UpDown control on form
« Reply #1 on: October 02, 2018, 06:53:22 pm »
This UpDown was made by app API by some plugin. sorry for noise.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2289
    • havefunsoft.com
Re: [Solved] App has parasite TUpDown
« Reply #2 on: October 02, 2018, 06:53:56 pm »
but why cocoa only?
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Alextp

  • Hero Member
  • *****
  • Posts: 894
    • UVviewsoft
Re: [Solved] App has parasite TUpDown
« Reply #3 on: October 02, 2018, 08:19:55 pm »
app had code:

Code: Pascal  [Select]
  1.   try
  2.     C.Caption:= 'WpPJjy'; //for label autosize
  3.     C.Parent:= Application.MainForm; //else height incorrect
  4.     Result:= C.Height;
  5.   finally
  6.     FreeAndNil(C);
  7.   end;
  8.  

here FreeAndNil don't work on Cocoa: control is left on mainform...

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2289
    • havefunsoft.com
Re: [Solved] App has parasite TUpDown
« Reply #4 on: October 02, 2018, 09:28:51 pm »
I see, Cocoa TSpinEdit leaks up/down arrows.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2289
    • havefunsoft.com
Re: [Solved] App has parasite TUpDown
« Reply #5 on: October 03, 2018, 04:48:30 am »
r59235
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz