JAM-Software / RibbonFramework

Delphi wrapper and standalone Designer for the Windows Ribbon Framework
Other
204 stars 59 forks source link

Support for FreePascal/Lazarus (API part) attached #125

Open CCRDude opened 1 year ago

CCRDude commented 1 year ago

I've switched from Delphi to Lazarus many years ago, and for one specific project, I wanted ribbons. Looks like Lazarus has two popular custom components emulating it, but I didn't find real code right away, so I went with RibbonFramework and made some adjustments.

This is the first part, making the "Low Level" code compatible with FreePascal/Lazarus. For the low level examples to work, minor adjustments to UIRibbonApi.pas and WinApiEx.pas needed to be made (enabling Delphi compatibility, adding a pointer type, IFDEF'ing the delayed load).

A Lazarus package for the API unit is an attachment, as is the example (basically the same code here).

I'm working on the other units as well, but won't post before I got it running well.

joachimmarder commented 1 year ago

We are fine with adding support for Lazarus. Since we do not use Lazarus ourselves, we will however not invest our time here.

Would it be possible to send normal pull request via GitHub, instead of attaching (patch) files?