Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2018-06

Lazarus and Cocoa

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ryan Joseph

I’m trying to make a lazarus control which wraps an NSView but I haven’t used Lazarus before and I don’t really understand the architecture of the system. It looks like a TForm is essentially a window and TWinControl is perhaps what I need to subclass but I’m not sure.

Is there any example code I could look or possibly some existing Cocoa controls which are wrapped to Lazarus? I expected to see an NSView subclass which calls out to some Lazarus control (like TWinControl) but I haven’t found it yet in the source code.

Any tips to get started would be great.

Regards,
Ryan Joseph

Reply by email

Sven Barth
to Ryan Joseph

Ryan Joseph schrieb am So., 17. Juni 2018,
11:34:

Show quoted text 12 lines
I’m trying to make a lazarus control which wraps an NSView but I haven’t used Lazarus before and I don’t really understand the architecture of the system. It looks like a TForm is essentially a window and TWinControl is perhaps what I need to subclass but I’m not sure. Is there any example code I could look or possibly some existing Cocoa controls which are wrapped to Lazarus? I expected to see an NSView subclass which calls out to some Lazarus control (like TWinControl) but I haven’t found it yet in the source code. Any tips to get started would be great.

For starters you could ask that on the Lazarus mailing list: http://lists.lazarus-ide.org/listinfo/lazarus 😉

Regards,
Sven

Reply by email