Re: [fpc-pascal] FreeBSD distro with fpc as star.
On Tue, November 8, 2016 3:24 am, Michael Schnell wrote: > On 08.11.2016 03:12, Lars wrote: > "FpGUI" used to be an option (one of a selection of Widget Types, > together with e.g. "GTK2", "CustomDraw", ...). At some point in time the > "WidgetType" menu in the project options had been replaced by a > possibility to set the appropriate Macro Value in "additions and > Overrides". Doesn't fpgui take a different approach to programming, so if you start a project in win32/gtk style, you can't easily port it to fpgui due to enormous differences here and there in the way gui programming is done.. As I'm out of touch with fpGUI (really want to try it, just a matter of making time), I'm ignorant on this. But it's not like you can just flip a switch and recompile a existing lazarus app to use fpGUI that was originally written for win32/gtk/kde style programming? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
On Tue, November 8, 2016 4:04 am, Michael Schnell wrote: > On 08.11.2016 03:12, Lars wrote: > >> >> Does lazarus even know about fpGUI >> > Version 1.6 on Windows: even in the GUI: > Project -> Project Options -> Additions and Overrides -> Set > "LCLWidgetType" -> Drop Down selection Value "fpgui". > I see. Also Graeme's email explained it too. However, how compatible are these widget sets with each other? Since they are coded with entirely different styles, you can't just select fpgui and recompile the app, right? You have to take an entirely different coding approach. So you weren't trying to imply that lazarus, could be recompiled to use fpgui based widgets inside the lazarus exe/elf itself? i.e. a lazarus ide, that is based on fpgui widgets, so it could run on pure X and no gtk/kde needed. To me that would seem like a huge leap. If possible, almost magic. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
On 08.11.2016 03:12, Lars wrote: Does lazarus even know about fpGUI Version 1.6 on Windows: even in the GUI: Project -> Project Options -> Additions and Overrides -> Set "LCLWidgetType" -> Drop Down selection Value "fpgui". Sadly in my compiled "trunk" version 1.7 on Linux the <"LCLWidgetType"> drop down menu is not shown any more :-(. Bug or erroneous configuration on my site ? -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] googleapiconv raises ERESTAPI error
I think the same problem will appear in Lazarus with the gooleapis components (and examples), because they based on the fpc. ... Exception-Class >>ERESTAPI<< TTasklist: unsopported array element type Andreas Am 06.11.2016 um 16:00 schrieb Michael Van Canneyt: On Sun, 6 Nov 2016, Andreas Frieß wrote: Hello, i will try to use the googleapiconverter from the gooleapi examples directory. I got some excepions, so i reduced the problem to a generic one. I use the trunc of FPC and compile the googleapiconv without a problem (inside lazarus). If i run it direct from commandline with -A -k ig ot the following infos. The stored json file look wellformed and ok. > C:\Data\development\fpctrunk\fpc\packages\googleapi\examples\generator > >googleapiconv.exe -A -k Exception at 0043DF98: ERESTAPI: > Unknown class : "¼F ÿ¼F ý¼F »F °│F T┤FTTypeDef ê█E > TTypeDefä`F ÉF googlediscoverytopas TRestMethodParam > ê█E ÿ ê█E á TRestMethodParams É". Any hint 4 me ? There has been a change in the RTTI, which has not yet been corrected in the restbase unit. This needs to be done still, it is on my TODO list. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
On 08.11.2016 11:29, Graeme Geldenhuys wrote: On 2016-11-08 10:00, Michael Schnell wrote: While this is perfectly possible, It's not about "is perfectly possible", I meant "It's perfectly possible that it does not work (yet)" ;-). -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
On 08.11.2016 03:12, Lars wrote: Or you were mistaken to think fpGUI was an option in lazarus? "FpGUI" used to be an option (one of a selection of Widget Types, together with e.g. "GTK2", "CustomDraw", ...). At some point in time the "WidgetType" menu in the project options had been replaced by a possibility to set the appropriate Macro Value in "additions and Overrides". Here seemingly selecting one of the **supported** Widget Types (aka Interfaces) does not seem to be that easily possible any more. So I can't tell if FpGUI (i.e. the LCL-Version of same) is still available. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] New Feature: 'Management Operators'
On Tue, November 8, 2016 1:47 am, Maciej Izak wrote: > 2016-11-07 22:24 GMT+01:00 African Wild Dog: > > >> >> I saw on the bug tracker a patch submission by Maciej Izak about the >> feature "Management Operators". >> >> This feature is related to Automatic Reference Counting? >> >> > > Yes. We have a working ARC objects Can someone briefly explain what this means for code? Is this related to garbage collected heap allocated objects and similar, without using a garbage collector but using reference counting? Sorry if I am way off base, I just have no idea what it is... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
On Tue, November 8, 2016 2:45 am, Graeme Geldenhuys wrote: > What Fred did with polYDev is create a minimal (read very small) fully > functional FreeBSD install, that supports desktop development using FPC, > includes a IDE (ideU a fork of MSEide with tons of custom modifications) Does ideU support multiple programming languages as an editor? Without trying it myself, for example, does it include multiple syntax highlighters? can you write your own syntax highlighter? Mseide seems mostly based on fpc and not as many other languages, although I heard that Martin sometimes does C development in mseide. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
On Tue, November 8, 2016 2:56 am, Graeme Geldenhuys wrote: > Yes, that changed about 9 years ago. :) And no, fpGUI is *not* a non > visual development environment. fpGUI comes with its own Visual Forms > Designer, Help Viewer, demo IDE and many more. Thanks for clarifying. I have always wanted to try fpGUI, but it's always the same fear that stops me: like msegui, the issue is there is no torry.net for it with years and years of contributed components. It seems like a good tool to start a project in, if you don't require some special component from torry.net or lazarus. I always end up needing to pull in some component from the internet at some point, I tend not to write a pure GUI app that uses no one elses components. I hate this fear that I have, because it causes me to stick to using delphi since I know I have an insurance plan available (torry.net) if I need a component that I don't feel like writing myself, that someone already else has. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] picture preview
On 11/08/2016 01:51 PM, Marc Santhoff wrote: Hi, if I want load a bitmap picture for extracting a small preview of it, what component or library would be best? My goal is to use pascal only without any external lirbraries if possible. Second goal is to keep the program small, ideally avoiding to link lcl controls in. Bitmap picture may be anything commen, JPEG, PNG, GIF, BMP, etc. TIA, Marc Hi I attached a small program I just wrote that resizes an image and saves it to a file. I didn't test it but it compiles. It uses just the png reader/writer components but there are several units for different image formats. FPReadPNG, FPWritePNG FPReadBMP, FPWriteBMP etc. Regards, Andrew Haines program imageresize; {$mode objfpc} uses Classes, FPimage, FPImgCanv, FPCanvas, FPReadPNG, FPWritePNG; function ResizeImage(ASrcImage: TFPCustomImage; ANewWidth, ANewHeight: Integer): TFPCustomImage; var Canvas: TFPImageCanvas; begin Result := TFPMemoryImage.Create(ANewWidth, ANewHeight); Canvas := TFPImageCanvas.Create(Result); Canvas.StretchDraw(0,0, ANewWidth, ANewHeight, ASrcImage); Canvas.Free; end; function ReadImage(AFileName: String) : TFPCustomImage; var Stream: TMemoryStream; Reader: TFPReaderPNG; begin Result := nil; Stream := TMemoryStream.Create; try Stream.LoadFromFile(AFileName); Stream.Seek(0, soBeginning); // I assume png for this example Reader := TFPReaderPNG.Create; Result := Reader.ImageRead(Stream, nil); finally Stream.Free; Reader.Free; end; end; procedure SaveImage(AImage: TFPCustomImage; AFileName: String); var Writer: TFPWriterPNG; F: TFileStream; begin F := TFileStream.Create(AFileName, fmCreate or fmOpenReadWrite); try Writer := TFPWriterPNG.Create; Writer.ImageWrite(F, AImage); finally Writer.Free; F.Free; end; end; var OrigImage, NewImage: TFPCustomImage; begin if ParamCount < 2 then begin WriteLn('usage:'); WriteLn(' imageresize input.png output.png'); end; OrigImage := ReadImage(ParamStr(1)); NewImage := ResizeImage(OrigImage, 50, 50); SaveImage(NewImage, ParamStr(2)); OrigImage.Free; NewImage.Free; end. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] picture preview
> if I want load a bitmap picture for extracting a small preview of it, > what component or library would be best? fcl-image (http://wiki.freepascal.org/fcl-image) is the basis of LCL image processing components and routines, so you can for sure use that. I use it to resize uploaded pictures in one of my web applications. TFPImageCanvas (TFPCustomCanvas to be precise) implements CopyRect which you can use for cropping. The wiki article (and the package directory) has some examples to start with. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/picture-preview-tp5726793p5726794.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] picture preview
Hi, if I want load a bitmap picture for extracting a small preview of it, what component or library would be best? My goal is to use pascal only without any external lirbraries if possible. Second goal is to keep the program small, ideally avoiding to link lcl controls in. Bitmap picture may be anything commen, JPEG, PNG, GIF, BMP, etc. TIA, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
> if you want Lazarus support, it means you need to install large 3rd > party dependencies and Lazarus itself, which will bloat the OS by > 500MB-1000MB more hard disk space. Huh, yes but this only for the main system. If you want a poly-compiling system (like polYdev) you need to install also all the dependencies for FreeBSD 32 + Linux 64 + Linux 32. And for this you will need +- 2.5 gigas. Fre;D - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/FreeBSD-distro-with-fpc-as-star-tp5722535p5726792.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
On 2016-11-08 10:00, Michael Schnell wrote: > While this is perfectly possible, It's not about "is perfectly possible", it is how LCL functions. The LCL requires a underlying toolkit, and the big three are Qt, GTK and Win32. LCL is just wrapper over those toolkits and represents a common API to the developer (well, it tries too). > (aka interface). Of course CustomDraw and LCL-FpGUI might not be > complete enough for a super complex application such as the Lazrus IDE. Correct, both LCL-CustomDrawn and LCL-fpGUI widgetsets are still incomplete - CustomDrawn more so that LCL-fpGUI (from my last tests about 2 weeks ago). That doesn't mean they can't handle large scale applications - they can, but those LCL widgetset interfaces need to be completed first. Just like LCL-GTK3 is not complete yet. Anyway, Fred's idea of a Free Pascal oriented FreeBSD distro is a brilliant idea. It allows you to setup a fully functional development environment in a matter of minutes, that would otherwise have taken hours. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
On 07.11.2016 22:57, fredvs wrote: Maybe I did not understand well. AFAIK, for Unix os, Lazarus and LCL-widget-set need a "big native" widget-set, like GTK, KDE or Qt. While this is perfectly possible, IMHO it's not the way it should stay. The LCL is intended to provide compatible support for any Widget Type (aka interface). Of course CustomDraw and LCL-FpGUI might not be complete enough for a super complex application such as the Lazrus IDE. In theory it is possible to build Lazarus with fpGUI-pure-X-widget-set but I was never able to do it work. I see. Also IMO (maybe I am wrong too for this), even for CustomDraw, a "big native·widget-set" is needed. I don't see what you mean. AFAIK, the idea of "CustomDraw" Widget Type is to require only a minimal set of basic widgets (I did not get to research which ones exactly) to be provided by the underlying Widget Set. (In fact I am still (on and off) working on a fully functional Widget Type that requires no Widget Set at all. Of course here you will not see anything :-) . ) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] New Feature: "Management Operators"
08.11.2016, 11:48, "Maciej Izak": anyway probably I have no motivation anymore to continuing my work. That's unfortunate for the community, IMHO.Personally, I appreciate your idea of management operators. -- Regards,Denis Golovan ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
On 2016-11-08 02:12, Lars wrote: > Does lazarus even know about fpGUI Yes, there is a LCL-fpGUI widgetset. It is still in alpha state, but all Standard component palette widgets (except TLabel) is supported, quite a few others too, as is all the dialogs and some WinAPI calls (eg: ShowMessage). It seems a permanent developer though to complete it. I contribute every now and then, and make sure it always compiles with the latest stable fpGUI. But my priority is improving and maintaining the "pure" fpGUI Toolkit, not the LCL-fpGUI wigetset of Lazarus. > I always remembered fpgui as a non visual development that was separate > and never integrated in any way with lazarus widget set. Did this change? Yes, that changed about 9 years ago. :) And no, fpGUI is *not* a non visual development environment. fpGUI comes with its own Visual Forms Designer, Help Viewer, demo IDE and many more. Part of fpGUI's design goals is to allow the developer flexibility, by not forcing them to use one specific IDE. With fpGUI you can use any IDE (yes, that means Lazarus, MSEide, Delphi, Geany, Eclipse etc) or any programmer editor (EditPad Pro, VIM, etc). You can then integrate context sensitive help and visual form designing via using those IDEs or editors "External Tools" functionality. for example: http://fpgui.sourceforge.net/docview_ide_integration.shtml Here are screenshots of fpGUI's help viewer, visual form designer (a bit old now) and demo IDE. http://fpgui.sourceforge.net/screenshots_apps.shtml Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreeBSD distro with fpc as star.
On 2016-11-07 09:48, Michael Schnell wrote: > I understand that you suggest you can't build the Lazarus IDE with > defining fpGUI or CustomDrwan instead of Qt or Gnome (or Windows or > Cocos). What Fred did with polYDev is create a minimal (read very small) fully functional FreeBSD install, that supports desktop development using FPC, includes a IDE (ideU a fork of MSEide with tons of custom modifications) for MSEgui and fpGUI development, cross-compilation out of the box for Linux32, Linux64, Win32, FreeBSD32 and FreeBSD64, a functional web browser, video player and GUI desktop environment. All in a small 350MB ISO. That is an impressive feat. If you want Lazarus support, it means you need to install large 3rd party dependencies and Lazarus itself, which will bloat the OS by 500MB-1000MB more hard disk space. Fred didn't want that. Cross-compilation is also much easier with ideU than it is with Lazarus IDE. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] New Feature: "Management Operators"
2016-11-07 22:24 GMT+01:00 African Wild Dog: > > I saw on the bug tracker a patch submission by Maciej Izak about the > feature "Management Operators". > > This feature is related to Automatic Reference Counting? > Yes. We have a working ARC objects (not official yet, very raw form without "compiler magic", but fully functionally/compilable without any regressions) with http://newpascal.org latest release: https://github.com/maciej-izak/PascalSmartPointers/blob/ master/examples/SmartObj01.pas https://github.com/maciej-izak/PascalSmartPointers/blob/ master/sources/SmartObj.pas anyway probably I have no motivation anymore to continuing my work. -- Best regards, Maciej Izak ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal