Re: [fpc-pascal] Understanding the usage of resources in Linux
On 24/05/2014 18:12, luciano de souza wrote: > I want to use resources with FPC 2.6.2. Reading on Lazarus wiki, I > knew it's recommended the usage of Lazarus resources (lazres). No, it's not recommended - where does it say that (the article may need to be fixed) > 2. In my Ubuntu 13.10 64 bits, a program compile rc scripts into a res > files. For a long time, I tried to do it. I heard resources have a bad > behaviour in Linux. You can install windres. This compiles .rc resource scripts into .res resources. These can be used by FPC/Lazarus. Package names differ; the wiki article has some suggestions for debian based systems like Ubuntu. > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Understanding the usage of resources in Linux
Hello all, I want to use resources with FPC 2.6.2. Reading on Lazarus wiki, I knew it's recommended the usage of Lazarus resources (lazres). This is not an option for me. "lazres" expects a lrs file and I can't generate it. I am blind. I can install Lazarus in my Linux, but only to use some units. The graphical interface of Lazarus is completely inaccessible. I searched for a lrs example. I thought I could write it manually. But it's impossible. It's a complex and a very large file. The choices are: 1. A command line program generates the lrs file. Something like: "program file1.tpl file2.wav. After this, I could use lazres. 2. In my Ubuntu 13.10 64 bits, a program compile rc scripts into a res files. For a long time, I tried to do it. I heard resources have a bad behaviour in Linux. Well, my question is: using Ubuntu 13.10 64 bits and only the command line and a text editor like Gedit, is it possible to add files as resources in my executable? -- Regards, Luciano de Souza ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] EpikTimer v1.0.1 released
Hi, I've spoken to Tom and he agreed. We moved the EpikTimer repository to Github. The Lazarus-CCR version will be deleted by Tom in due time. I applied some of my changes to code in Github (more changes recently discussed in this mailing list will follow soon), fixed the "etdemo" project to be compilable again, updated the demo to use FPC Resources instead of the old *.lrs files. I've also bumped the version number and created a new release. Hopefully this will resolve the issue about people downloading the 2006 old archive version. I've also updated the Free Pascal Wiki page with the latest information. Wiki Page: http://wiki.freepascal.org/EpikTimer Source code: git clone https://github.com/graemeg/epiktimer.git Release downloads: https://github.com/graemeg/epiktimer/releases Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Canvas.TextStyle
On Sat, May 24, 2014 at 2:26 PM, Sven Barth wrote: > http://wiki.freepascal.org/User_Changes_2.4.0#Treating_direct-mapped_properties_as_regular_fields Ok, then this becomes an LCL issue. How to port Delphi code like Canvas.TextFlags := Canvas.TextFlags or ETO_RTLREADING Canvas.TextFlags := Canvas.TextFlags or LAYOUT_SUPERSCRIPT; TextStyle was the closest thing to TextFlags I could find. If nobody knows the answer, I will continue my experiments. I know this is not a Lazarus list. Regards, Juha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Canvas.TextStyle
On 24.05.2014 12:49, Juha Manninen wrote: Why can't I set members of TextStyle in TCanvas? For example : Canvas.TextStyle.RightToLeft := True; or Canvas.TextStyle.Layout := tlTop; give : Error: Argument can't be assigned to http://wiki.freepascal.org/User_Changes_2.4.0#Treating_direct-mapped_properties_as_regular_fields Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Canvas.TextStyle
Why can't I set members of TextStyle in TCanvas? For example : Canvas.TextStyle.RightToLeft := True; or Canvas.TextStyle.Layout := tlTop; give : Error: Argument can't be assigned to Canvas.TextStyle is a replacement for Delphi's Canvas.TextFlags, isn't it? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TZipper and special file names like "atenção.txt" (#26213)
On 24/05/2014 08:33, Michael Van Canneyt wrote: > On Fri, 23 May 2014, Craig Peterson wrote: >> The Info-zip project maintains an annotated Appnote that lists a bunch >> of the extra fields that various vendors use here: >> http://www.info-zip.org/doc/ > Strange then that the info-zip so often creates garbled filenames on > Linux ! > Probably the used zipper doesn't use the extra fields. Of course it doesn't use them. It has no unicode support. > Since it is optional, we can probably add a WideString property to the > zipitem and add an overloaded call; > Then we don't need to recreate everything, Recreate everything? Don't get what you mean here. >just add the extra fields. (Yes, IIRC, the zip64 fix added support for extra fields already so it shouldn't be a big change) Agreed when writing. When reading, I'd suggest following the suggested behaviour in the spec: 1. Try to read UTF8 filename from the EFS; if not present fall back to 2. Try to read extra fields filename as implemented by info-zip/abbrevia etc, if not present fall back to 3. current behaviour (reading filename as is) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal