[fpc-pascal] FPC ARMEL and ARMHF under the same tree

2015-06-17 Thread leledumbo
I currently have my [cross-]compilers under the same tree, to ease management and the ability to use single fpc.cfg. AFAIU FPC ARMEL and ARMHF are two distinct targets, thus two distinct compiler binary. However, the compiler binary has the same name. So, how can I have both under the same tree? I

Re: [fpc-pascal] How to get the permission f a file ?

2015-06-17 Thread Fred van Stappen
Fred, the tiSetFileReadOnly() I sent you the other day already uses fpstat() before checking/setting the read-only flag. So you are halfway there. ;-) Yep, many thanks. ;-) PS: Bart's tip works like lovely charm... = function FileIsExecutable(const AFilename: string): boolean; var Info

Re: [fpc-pascal] fpGUI Features

2015-06-17 Thread Graeme Geldenhuys
On 2015-06-17 04:26, Horacio Jamilis wrote: Does it support Android on any way? I once heard somebody was working on a port, but I can't remember who that was. If LCL-Customdrawn could do it, then it must be possible with fpGUI too. I unfortunately don't know anything about Android development

Re: [fpc-pascal] fpGUI Features

2015-06-17 Thread Leonardo M . Ramé
Hi Graeme, I know you hate web stuff, but did you take a look at this? http://www.zebkit.com/   Its something similar to your approach with fpGui, but using HTML5 Canvas, I'm dreaming of seeing fpGui on the web, generated from FPC.  Leonardo M. Ramé http://leonardorame.blogspot.com From:

Re: [fpc-pascal] fpGUI Features

2015-06-17 Thread Michael Van Canneyt
On Wed, 17 Jun 2015, Leonardo M. Ramé wrote: Hi Graeme, I know you hate web stuff, but did you take a look at this? http://www.zebkit.com/   Its something similar to your approach with fpGui, but using HTML5 Canvas, I'm dreaming of seeing fpGui on the web, generated from FPC Using the

Re: [fpc-pascal] How to get the permission f a file ?

2015-06-17 Thread Bart
On 6/17/15, fredvs fi...@hotmail.com wrote: But how to check if a file has executable permission (and if not, change it with fpchmod(thefile S_IRWXU);) ? function FileIsExecutable(const AFilename: string): boolean; var Info : Stat; begin // first check AFilename is not a directory and then

Re: [fpc-pascal] How to get the permission f a file ?

2015-06-17 Thread Ewald
On 06/17/2015 04:42 PM, fredvs wrote: But how to check if a file has executable permission (and if not, change it with fpchmod(thefile S_IRWXU);) ? stat? See: http://linux.die.net/man/2/stat http://www.freepascal.org/docs-html/rtl/baseunix/fpstat.html

Re: [fpc-pascal] fpGUI Features

2015-06-17 Thread Graeme Geldenhuys
On 2015-06-17 13:38, Leonardo M. Ramé wrote: Hi Graeme, I know you hate web stuff, Damn, I didn't know it was such public knowledge. ;-) but did you take a look at this? http://www.zebkit.com/ Wow, very interesting. I haven't seen that before. Its something similar to your approach with

[fpc-pascal] How to get the permission f a file ?

2015-06-17 Thread fredvs
Hello. With fpchmod(), it is possible to change the permission of a file. Perfect. But how to check if a file has executable permission (and if not, change it with fpchmod(thefile S_IRWXU);) ? Many thanks. Fre;D - Many thanks ;-) -- View this message in context:

Re: [fpc-pascal] How to get the permission f a file ?

2015-06-17 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 17 Jun 2015, fredvs wrote: But how to check if a file has executable permission (and if not, change it with fpchmod(thefile S_IRWXU);) ? From the top of my head: fpStat(), and in the returned stat structure, look for the mode field (or st_mode?). There are more useful bits in

Re: [fpc-pascal] fpGUI Features

2015-06-17 Thread Graeme Geldenhuys
On 2015-06-17 13:38, Leonardo M. Ramé wrote: but did you take a look at this? http://www.zebkit.com/ That's a good start. Just tried it with my Firefox 38.0.1 and the demo doesn't work at all. No mouse over detected, can't click any of the demo's tabs. Then tried with Chromium 42, and finally

Re: [fpc-pascal] fpGUI Features

2015-06-17 Thread Michael Schnell
On 06/17/2015 02:53 PM, Michael Van Canneyt wrote: Using the HTML5 canvas is IMHO the worst possible approach to programming the web. A WEB GUI such as the QNAP NAS boxes provide seems very appropriate. I did not find out what tool set they use :-( . -Michael

Re: [fpc-pascal] How to get the permission f a file ?

2015-06-17 Thread fredvs
@ Bart and Ewald. = excellent, many thanks. And you give me choice...;-) I will study your tips and then choose one of them... Many thanks. Fre;D - Many thanks ;-) -- View this message in context:

Re: [fpc-pascal] How to get the permission f a file ?

2015-06-17 Thread Graeme Geldenhuys
On 2015-06-17 16:00, fredvs wrote: And you give me choice...;-) I will study your tips and then choose one of them... Fred, the tiSetFileReadOnly() I sent you the other day already uses fpstat() before checking/setting the read-only flag. So you are halfway there. ;-) Regards, - Graeme - --