Recent

Author Topic: CustomDraw package compile error (lupa.bmp)  (Read 1227 times)

wp

  • Hero Member
  • *****
  • Posts: 13267
Re: CustomDraw package compile error (lupa.bmp)
« Reply #15 on: November 08, 2025, 01:00:02 am »
That's great. So, BGRAControls seems to be a practicable way to use CustomDrawn (I see in "test_bgracustomdrawn" that you are just using the BGRA-versions of CustomDrawn controls without switching the widgetset to customdrawn).

The demo is available with BGRAControls.
I found "test_bgracustomdrawn", it's the one that is shown in https://wiki.freepascal.org/Lazarus_Custom_Drawn_Controls#BGRAControls_Custom_Drawn_default_style. But is there also a demo for the other screenshows on the wiki page?

BTW: test_bgracustomdraw reports a series of memory leaks when HeapTrc is activated. It goes away when I remove the four BCDRadioButtons, and it returns when I add another BCDRadioButton.

lainz

  • Hero Member
  • *****
  • Posts: 4738
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: CustomDraw package compile error (lupa.bmp)
« Reply #16 on: November 08, 2025, 04:15:52 am »
There's the windows 7 custom drawn style somewhere in the bgracontrols folder.

It uses bitmaps png to draw.

https://github.com/bgrabitmap/bgracontrols/tree/master/test%2Ftest_extra%2Fslicescaling_customdrawn_win7
« Last Edit: November 08, 2025, 04:33:31 am by lainz »

wp

  • Hero Member
  • *****
  • Posts: 13267
Re: CustomDraw package compile error (lupa.bmp)
« Reply #17 on: November 08, 2025, 06:54:28 pm »
Unfortunately, it crashes with an access violation in bgraslicescaling, inside TCDWin7.DrawButton (win7.FButton still being nil here).

lainz

  • Hero Member
  • *****
  • Posts: 4738
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: CustomDraw package compile error (lupa.bmp)
« Reply #18 on: November 09, 2025, 01:21:58 pm »
Hi, it works here with lazarus 4.0, Windows 11

 

TinyPortal © 2005-2018