Re: [fpc-pascal] Google API, OAuth2 and Windows
On Fri, 5 Aug 2016, Lubos Pintes wrote: Hello, I want to use Google Calendar API with FPC 3.0.0 under Windows. I grabbed necessary units from SVN, because it seems to me that they are not available under FPC 3.0.0 units. My question: how can I handle OAuth2? Do I need an external library like Synapse under Windows, or can I use existing units from FPC 3.0.0? I noticed that there are units like fpoauth2, but I have no idea how to use them. The OAuth2 implementation does not depend on a particular transport class. It assumes a TFPWebclient instance (one exists for FPC httpclient, and for synapse) The TOAuth2Handler class "signs" a request made with TFPWebclient. For this it may send additional HTTP(s) requests to handle the OAuth2 token flow. You can see this in action in the OData examples and in the google api examples. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] RTF writer
On Fri, Aug 5, 2016 at 3:11 AM, Torsten Bonde Christiansenwrote: > I am looking for at component that can write RTF format, preferably like > the TRichMemo: > > http://wiki.lazarus.freepascal.org/RichMemo > > but without the need for LCL. > > In fpc 3.0 there is a RTF reader, but i have not been able to find a > writer. > If nothing comes up, you could RichMemo sources as a starting point. Look at richmemortf.pas specifically for IntSaveStream. It accepts TRIchMemo component but only as a source of text+styles information and could be replaced easily with your source of text+style. The rest of the code is non rich memo specific thanks, Dmitry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Google API, OAuth2 and Windows
Hello, I want to use Google Calendar API with FPC 3.0.0 under Windows. I grabbed necessary units from SVN, because it seems to me that they are not available under FPC 3.0.0 units. My question: how can I handle OAuth2? Do I need an external library like Synapse under Windows, or can I use existing units from FPC 3.0.0? I noticed that there are units like fpoauth2, but I have no idea how to use them. Thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC 3.0 and FPC 2.6 on Ubuntu. How to change default version?
In our previous episode, Krzysztof said: > Thanks Jonas for quick answer! > > In /user/bin I have two symlinks: > - ppcx64 which point to /etc/alternatives/ppcx64 That is something debian/buntu specific. What does this point to. This should point to the version you want to use by default. /usr/.../lib/fpc//ppcx64 > - ppcx64-3.0.0 which point to ../lib/fpc/3.0.0/ppcx64 The other version (not default) should be symlinked with version number like this. Then you can compile the non default with fpc -V ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC 3.0 and FPC 2.6 on Ubuntu. How to change default version?
Krzysztof wrote: > In /user/bin I have two symlinks: > - ppcx64 which point to /etc/alternatives/ppcx64 > - ppcx64-3.0.0 which point to ../lib/fpc/3.0.0/ppcx64 > > So I can just change these symlinks to point to 2.6.4 dir and that is > enough? Normally, yes. > BTW: When saw symlink point to *alternatives* reminds me that when > installed FPC 3.0, in console message which asked for override > fpc.cfg, there was info about 'update alternatives'. Is it some kind > of debian solution for switching between versions? Yes. > BTW2: I didn't install FPC 3.0 manually from downloaded debs, only > 2.6. FPC 3.0 was suggested in 'sudo aptitude dist-upgrade' command. I > accepted that (actually I had no other choice) because I needed it > anyway but this is weird. What forced this? [snip] > Does it mean that FPC 3.0 is in official Ubunty 16.04 repo > and some dependencies forced to install FPC 3.0 too? Probably. It's better to ask about this on a Debian mailing list, they will know the details and the commands you can use to figure out what depends on what. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] RTF writer
Hi List. I am looking for at component that can write RTF format, preferably like the TRichMemo: http://wiki.lazarus.freepascal.org/RichMemo but without the need for LCL. In fpc 3.0 there is a RTF reader, but i have not been able to find a writer. Kind regards, Torsten ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal