Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD: windows build fail. #130

Open
bird00101011 opened this issue Jul 16, 2024 · 7 comments
Open

BUILD: windows build fail. #130

bird00101011 opened this issue Jul 16, 2024 · 7 comments
Assignees

Comments

@bird00101011
Copy link

E:\repos\LAZARUS\fpgui-1.4.1\src>build.bat
Creating missing directory ..\lib\x86_64-win64
Compiling GDI CoreLib
Free Pascal Compiler version 3.2.3-1394-g3d2b1f062e [2024/06/14] for x86_64
Copyright (c) 1993-2024 by Florian Klaempfl and others
Target OS: Win64 for x64
Compiling corelib\gdi\fpgui_toolkit.pas
Compiling .\corelib\fpg_base.pas
Compiling corelib\gdi\fpg_impl.pas
Compiling .\corelib\fpg_main.pas
Compiling .\corelib\fpg_constants.pas
Writing Resource String Table file: fpg_constants.rsj
Compiling corelib\gdi\fpg_interface.pas
Compiling corelib\gdi\fpg_gdi.pas
Compiling corelib\gdi\fpg_oledragdrop.pas
fpg_oledragdrop.pas(113,23) Error: No matching implementation for interface method "SetData(const tagFORMATETC;var TagSTGMEDIUM;LongBool):LongInt; StdCall;" found
fpg_oledragdrop.pas(203,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: D:\LAZARUS\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
E:\repos\LAZARUS\fpgui-1.4.1\src>
@graemeg
Copy link
Owner

graemeg commented Jul 16, 2024

Thank you for reporting this. Good news is that this was fixed about 3 years ago in the "maint" branch. Can you please 'git clone' (or download) that, and try again.

@graemeg graemeg self-assigned this Jul 16, 2024
@bird00101011
Copy link
Author

It is ok, but i don't know how to use. Yes , I have add requirements on the Project Inspector Form, after compile, but The application Window skin not effect.

I just search how to change lazarus project's target application's skin, So I find fpGUI.

I want to change skin.

I have look this:

image

So I want know what's the next step for it.

Im new, and bad English. Sorry.

@bird00101011
Copy link
Author

I love this so much.

http://geldenhuys.co.uk/~graemeg/themes/start.html

@bird00101011
Copy link
Author

Help me, please.

@fredvs
Copy link
Contributor

fredvs commented Jul 19, 2024

Hello.
If you like custom layout, maybe you could take a look at:
https://github.com/fredvs/uidesigner_ext/releases/tag/1.9.1

It has plenty of build-in layout.

@fredvs
Copy link
Contributor

fredvs commented Jul 19, 2024

And to set a style for your app, after you choose one in the menu "Review", for example "Chrome Silver flat menu".

Copy the unit from uidesigner_ext source (source are here):
https://github.com/fredvs/uidesigner_ext/

/uidesigner_ext/src/fpg_style_round_silver_flat_horz.pas

into the main directory of your program (you may add all those you want to switch live for a other style for your app).

Then in the main unit of your program, add this (and other styles needed):

uses
...
fpg_stylemanager,  // this to enable styles
fpg_style_chrome_silver_flatmenu, // add more styles if you want
...

And in the MainProc, add this after fpgApplication.Initialize;

  if fpgStyleManager.SetStyle('Chrome silver flat menu') then
       fpgStyle := fpgStyleManager.Style;

You may also in your app change with other style using fpgStyleManager.SetStyle() depending of what style-units you added in the uses section.

The name of the style is defined at each end of fpg_style_xxx.pas in initialization section, for example fpg_style_round_silver_flat_horz.pas:

initialization
  fpgStyleManager.RegisterClass('Chrome silver flat menu', TExtStyle);

@fredvs
Copy link
Contributor

fredvs commented Jul 19, 2024

I just search how to change lazarus project's target application's skin, So I find fpGUI.

Note that fpGUI is completely independent of Lazarus.
You can use Lazarus to edit-compile the source but fpGUI needs its own form designer: uidesigner:
https://github.com/graemeg/fpGUI/tree/develop/uidesigner

(or possibly uidesigner_ext as presented previously)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants