lcl in non-lcl projects? lazarus / 13-General ---------------------------------------------------------------------- dst · 2009-07-13 18:39 Depending on the project I open, I get [...]\lazarus\lcl\dialogs.pp or [...]\lazarus\fpc\2.2.2\source\packages\fv\src\dialogs.pas How can I use the lcl-version in non-lcl projects? Manual changing the *.lpi file throws runtime-errors.  Is there a way? ---------------------------------------------------------------------- Vincent Snijders · 2009-07-13 19:17 If you want to use the lcl version, you must add the LCL as requirement in the project options. I don't think you can use the lcl dialog unit, without using the LCL. ---------------------------------------------------------------------- dst · 2009-07-14 14:32 That does the same like manual-changing the *.lpi... So it seems like there is no possibility. Is there a way displaying graphical messages without using lcl and without owning an window? ---------------------------------------------------------------------- Vincent Snijders · 2009-07-14 14:36 QuoteIs there a way displaying graphical messages without using lcl and without owning an window?Yes, by using winapi directly or gtk2 directly or qt directly. ---------------------------------------------------------------------- dst · 2009-07-14 15:03 Anywhere Examples for the WinAPI-Solution? I'd never used the WinAPI for such things, and have no idea using the API in Lazarus (worked in Delphi before) ---------------------------------------------------------------------- Vincent Snijders · 2009-07-14 15:07 Google found: http://www.friends-of-fpc.com/articles/1040517/c/ ---------------------------------------------------------------------- Leledumbo · 2009-07-15 04:39 Just noticed a "little" bug (guess it's from the old article) on: Code: [Select]if hWindow >< 0 then begin     ShowWindow(hWindow, CmdShow);     ShowWindow(hWindow, SW_SHOW);     UpdateWindow(hWindow);   end; Should be: Code: [Select]if hWindow <> 0 then begin     ShowWindow(hWindow, CmdShow);     ShowWindow(hWindow, SW_SHOW);     UpdateWindow(hWindow);   end; Who's the new author? I don't see any (exact) contact link on the site. ---------------------------------------------------------------------- dst · 2009-07-16 18:55 Thanks! ---------------------------------------------------------------------- dst · 2009-09-11 12:57 New problem, same topic... How to implement the Dialogs for OpenFile and SaveFile without using lcl? ---------------------------------------------------------------------- theo · 2009-09-11 13:18 Wrong address ;-) If you want to know about Windows API go to MSDN: http://msdn.microsoft.com/en-us/library/ms646960(VS.85).aspx ---------------------------------------------------------------------- Martin_fr · 2009-09-11 13:49 May I ask why you object to using the LCL? Is because you do not want your application to have a Form? Then you can still use the LCL. You may end up rewriting the actual project source code, and I don't know if the IDE will try to put it back, but it should be do able.