Recent

Author Topic: [Laz Mac OSX] How to create a custom form from PNG image?  (Read 22963 times)

marco_gamelix

  • Newbie
  • Posts: 4
Re: [Laz Mac OSX] How to create a custom form from PNG image?
« Reply #15 on: January 02, 2010, 02:34:28 pm »
Wow, that's very cool guys!

I would like to do the same thing on Mac, could you share the sample Pascal code?  :-\

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: [Laz Mac OSX] How to create a custom form from PNG image?
« Reply #16 on: January 02, 2010, 02:44:12 pm »
do you mean to use OSXUtils.pas? sure things!

maybe it will be added as Lazarus-CCR component.


marco_gamelix

  • Newbie
  • Posts: 4
Re: [Laz Mac OSX] How to create a custom form from PNG image?
« Reply #17 on: January 02, 2010, 02:47:35 pm »
That would be great! Yes, please :)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: [Laz Mac OSX] How to create a custom form from PNG image?
« Reply #18 on: January 02, 2010, 07:26:20 pm »
btw, the pascal sample is available at testTransp.zip (see the 1st page)

Sandrix

  • New Member
  • *
  • Posts: 32
    • My Portfolio
Re: [Laz Mac OSX] How to create a custom form from PNG image?
« Reply #19 on: January 03, 2010, 01:57:12 am »
works fine now but img is still mirrored  :'(

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: [Laz Mac OSX] How to create a custom form from PNG image?
« Reply #20 on: January 03, 2010, 11:49:40 am »
should be fixed now.

Sandrix

  • New Member
  • *
  • Posts: 32
    • My Portfolio
Re: [Laz Mac OSX] How to create a custom form from PNG image?
« Reply #21 on: January 03, 2010, 03:30:12 pm »
hurray!!! works like a charm!

Shebuka

  • Sr. Member
  • ****
  • Posts: 427
Re: [Laz Mac OSX] How to create a custom form from PNG image?
« Reply #22 on: September 15, 2017, 06:42:12 pm »
Hi all!
I've just found that this function is not working anymore on recent macOS's.

Verified on Mac OS X 10.11.6 and macOS 10.12+, the resulting form has a black color instead of transparency.

@skalogryz, can you see if this can be fixed?

Lazarus 1.6.4;
FPC 3.0.2.

EDIT: Seems to work fine again on Carbon
« Last Edit: June 14, 2019, 09:56:04 am by Shebuka »

Shebuka

  • Sr. Member
  • ****
  • Posts: 427
Re: [Laz Mac OSX] How to create a custom form from PNG image?
« Reply #23 on: June 14, 2019, 09:56:31 am »
Are there any chances to make this work on Cocoa?

EDIT: There is this article from Matt on how to do it in Objective-C, but I don't know how to translate it into LCLCocoa code.
« Last Edit: June 14, 2019, 10:11:19 am by Shebuka »

 

TinyPortal © 2005-2018