Re: [Lazarus] Finding out how a program's being terminated

2013-02-17 Thread Mark Morgan Lloyd
waldo kitty wrote: On 2/16/2013 12:43, Michael Van Canneyt wrote: On Sat, 16 Feb 2013, waldo kitty wrote: On 2/16/2013 08:30, Hans-Peter Diettrich wrote: Procedures even may be different for Linux and Windows, depending on the signal/message types. Even if a program can ignore SIGTERM, can

Re: [Lazarus] Problem with zeos and sqlite-3

2013-02-17 Thread Martin Schreiber
On Friday 15 February 2013 13:41:23 zeljko wrote: Thanks for the idea, sqlite3_column_type does the job, but now I have another error ... seem that step() doesn't know anything about some column types, even if I call sqlite3_column_type inside step() call I get empty column type result.eg. in

Re: [Lazarus] Finding out how a program's being terminated

2013-02-17 Thread Mark Morgan Lloyd
waldo kitty wrote: On 2/16/2013 08:30, Hans-Peter Diettrich wrote: Procedures even may be different for Linux and Windows, depending on the signal/message types. Even if a program can ignore SIGTERM, can it also inform the system that it doesn't *want* to close? On Windows a program can stop

Re: [Lazarus] Problem with zeos and sqlite-3

2013-02-17 Thread zeljko
On Sunday 17 of February 2013 10:05:56 Martin Schreiber wrote: On Friday 15 February 2013 13:41:23 zeljko wrote: Thanks for the idea, sqlite3_column_type does the job, but now I have another error ... seem that step() doesn't know anything about some column types, even if I call

Re: [Lazarus] Problem with zeos and sqlite-3

2013-02-17 Thread Martin Schreiber
On Sunday 17 February 2013 10:31:04 zeljko wrote: sqlite3_column_type() works for CAST(0 AS INTEGER) too in a select statement, just tested with MSEgui git master and Sqlite 3.7.12.1. Is the problem caused by VIEW? Didn't test 3.7, but 3.6.23. As I already mentioned it works ok for select

Re: [Lazarus] Problem with zeos and sqlite-3

2013-02-17 Thread zeljko
On Sunday 17 of February 2013 12:00:51 Martin Schreiber wrote: On Sunday 17 February 2013 10:31:04 zeljko wrote: sqlite3_column_type() works for CAST(0 AS INTEGER) too in a select statement, just tested with MSEgui git master and Sqlite 3.7.12.1. Is the problem caused by VIEW?

Re: [Lazarus] Problem with zeos and sqlite-3

2013-02-17 Thread Martin Schreiber
On Sunday 17 February 2013 12:17:24 zeljko wrote: You misunderstood me. I returns ftIntger too when using SELECT, but WHEN using PRAGMA table_info('testview'); it does not return integer. So what returns tmsesqlquery in this case: CREATE VIEW testview AS select * ,cast(0 as integer) as

Re: [Lazarus] Problem with zeos and sqlite-3

2013-02-17 Thread zeljko
On Sunday 17 of February 2013 12:30:19 Martin Schreiber wrote: On Sunday 17 February 2013 12:17:24 zeljko wrote: You misunderstood me. I returns ftIntger too when using SELECT, but WHEN using PRAGMA table_info('testview'); it does not return integer. So what returns tmsesqlquery in this

[Lazarus] Unused field in extdlgs.pas

2013-02-17 Thread Flávio Etrusco
Hello, in case anybody is interested in a small cleanup: Index: extdlgs.pas === --- extdlgs.pas(revision 40325) +++ extdlgs.pas(working copy) @@ -140,7 +140,6 @@ FLayout: TCalculatorLayout; FValue: Double;

[Lazarus] GetSystemDirectory

2013-02-17 Thread Juha Manninen
Hi Is there anything cross-platform similar with Windows GetSystemDirectory? Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] GetSystemDirectory

2013-02-17 Thread Flávio Etrusco
Well, what would it return in Linux? 2013/2/17 Juha Manninen juha.mannine...@gmail.com: Hi Is there anything cross-platform similar with Windows GetSystemDirectory? Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] GetSystemDirectory

2013-02-17 Thread Juha Manninen
On Sun, Feb 17, 2013 at 5:38 PM, Flávio Etrusco flavio.etru...@gmail.com wrote: Well, what would it return in Linux? Yes, good question. I guess there is no sensible cross-platform substitute for it. Juha -- ___ Lazarus mailing list

[Lazarus] New iOS xib-Designer for Lazarus available for testing

2013-02-17 Thread Joost van der Sluis
Hi all, I've finished a version of my iOS xib-Designer which is good enough for testing. ;) This package adds a designer to design iOS layouts, which are stored in xib-files. You can create an xib-file in Lazarus, then open it in XCode to adapt it and open it in Lazarus again, without any

Re: [Lazarus] GetSystemDirectory

2013-02-17 Thread Michael Van Canneyt
On Sun, 17 Feb 2013, Juha Manninen wrote: On Sun, Feb 17, 2013 at 5:38 PM, Flávio Etrusco flavio.etru...@gmail.com wrote: Well, what would it return in Linux? Yes, good question. I guess there is no sensible cross-platform substitute for it. No, and that is why there is no such function.

Re: [Lazarus] New iOS xib-Designer for Lazarus available for testing

2013-02-17 Thread Sven Barth
On 17.02.2013 17:10, Joost van der Sluis wrote: I've finished a version of my iOS xib-Designer which is good enough for testing. ;) This package adds a designer to design iOS layouts, which are stored in xib-files. You can create an xib-file in Lazarus, then open it in XCode to adapt it and

Re: [Lazarus] New iOS xib-Designer for Lazarus available for testing

2013-02-17 Thread Joost van der Sluis
On 17.02.2013 17:10, Joost van der Sluis wrote: I've finished a version of my iOS xib-Designer which is good enough for testing. ;) This package adds a designer to design iOS layouts, which are stored in xib-files. You can create an xib-file in Lazarus, then open it in XCode to adapt

Re: [Lazarus] New iOS xib-Designer for Lazarus available for testing

2013-02-17 Thread Sven Barth
On 17.02.2013 18:40, Joost van der Sluis wrote: I've not closely followed your recent discussions with the Lazarus devs, so one little question: are you using the non-LCL designer included with Lazarus here? Yes. Mattias wrote that for me a few years ago for another project. Now it is also

Re: [Lazarus] New iOS xib-Designer for Lazarus available for testing

2013-02-17 Thread Michael Van Canneyt
On Sun, 17 Feb 2013, Sven Barth wrote: On 17.02.2013 18:40, Joost van der Sluis wrote: I've not closely followed your recent discussions with the Lazarus devs, so one little question: are you using the non-LCL designer included with Lazarus here? Yes. Mattias wrote that for me a few years

Re: [Lazarus] Finding out how a program's being terminated

2013-02-17 Thread waldo kitty
On 2/17/2013 04:06, Mark Morgan Lloyd wrote: waldo kitty wrote: On 2/16/2013 08:30, Hans-Peter Diettrich wrote: Procedures even may be different for Linux and Windows, depending on the signal/message types. Even if a program can ignore SIGTERM, can it also inform the system that it doesn't

Re: [Lazarus] New iOS xib-Designer for Lazarus available for testing

2013-02-17 Thread Sven Barth
On 17.02.2013 19:08, Michael Van Canneyt wrote: On Sun, 17 Feb 2013, Sven Barth wrote: On 17.02.2013 18:40, Joost van der Sluis wrote: I've not closely followed your recent discussions with the Lazarus devs, so one little question: are you using the non-LCL designer included with Lazarus

Re: [Lazarus] New iOS xib-Designer for Lazarus available for testing

2013-02-17 Thread Michael Van Canneyt
On Sun, 17 Feb 2013, Sven Barth wrote: On 17.02.2013 19:08, Michael Van Canneyt wrote: On Sun, 17 Feb 2013, Sven Barth wrote: On 17.02.2013 18:40, Joost van der Sluis wrote: I've not closely followed your recent discussions with the Lazarus devs, so one little question: are you using

[Lazarus] Did anybody else use retinizer for Macbook Retina on lazarus before?

2013-02-17 Thread Michael Ring
The fonts of lazarus look very ugly on my Macbook Retina, a few weeks ago I found the tool retinizer http://retinizer.mikelpr.com/ and used it on lazarus, the results were amazing, very nicecrisp fonts! I would now like to create the necessary ressources for lazarus so that it uses retina

Re: [Lazarus] New iOS xib-Designer for Lazarus available for testing

2013-02-17 Thread Joost van der Sluis
Yes. Mattias wrote that for me a few years ago for another project. Now it is also used for this xib-designer. Biggest difference between this version and earlier versions is that the xib-file is used as a resource-file, so it can be opened in Xcode and thereafter opened in Lazarus

Re: [Lazarus] Getting a Field list of a record

2013-02-17 Thread Johann Spies
On 17 February 2013 02:23, Alejandro Gonzalo parkingspac...@yahoo.comwrote: whoops, forgot you have to include this line before the for clause: aRecord:= VarArrayCreate([0, Dataset.FieldCount-1], varVariant); Thanks. The replies to my question made me realise that I will have to do do a