Recent

Author Topic: Non-rectangular shaped form with Carbon widgetset  (Read 3071 times)

jwdietrich

  • Hero Member
  • *****
  • Posts: 1032
    • formatio reticularis
Non-rectangular shaped form with Carbon widgetset
« on: April 26, 2014, 08:51:16 pm »
How can I create a non-rectangular form for Mac OS X with Lazarus? The examples based on the setshape method that are provided with Lazarus and on http://wiki.freepascal.org/LCL_Tips don't work on Max OS X. The solution should support the Carbon widgetset, but a cross-platform solution that also supports Cocoa and widgetsets supported by Linux would be best.

I would like to develop a window that can be moved over a second background window and allows viewing this second window through several small slots. This works well on Windows, but not on the Mac.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.2 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux