On 2013-09-15 15:57, Martin wrote:
global war, but in implementation
Correct, or just use a lazyman's singleton function.
8-8-8-8-8
interface
function GlobalFoo: TFoo;
implementation
var
uFoo: TFoo;
function GlobalFoo: TFoo;
On Sun, 15 Sep 2013 23:54:48 +0300
patspiper patspi...@gmail.com wrote:
Hi,
I am trying to add a new target (eg: abc) for the project
options/additions and overrides. Once OK is pressed, re-entering the
additions and overrides shows * instead of the specified target!
Lazarus 1.3 r42824
Hi Folks.
Is it normal that when a TDBGrid is dropped onto a TFrame (or
descendant) the DataSource property cannot be assigned to a TSqlQuery
dropped onto a TDataModule ? In other words, in the properties
inspectior of the TDBGrid, the Datasource property shows nothing.
The TDataModule is in
Mattias Gaertner wrote:
On Sun, 15 Sep 2013 13:17:42 +
Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote:
It appears that a bsDialog form has its actual width and height locked
once it has been displayed by ShowModal. Components inside the form,
e.g. a PageControl with client
On Mon, 16 Sep 2013 10:52:08 +0200
Antonio Fortuny a.fort...@sitasoftware.lu wrote:
Hi Folks.
Is it normal that when a TDBGrid is dropped onto a TFrame (or
descendant) the DataSource property cannot be assigned to a TSqlQuery
dropped onto a TDataModule ? In other words, in the properties
Le 16/09/2013 11:12, Mattias Gaertner a écrit :
On Mon, 16 Sep 2013 10:52:08 +0200
Antonio Fortuny a.fort...@sitasoftware.lu wrote:
Hi Folks.
Is it normal that when a TDBGrid is dropped onto a TFrame (or
descendant) the DataSource property cannot be assigned to a TSqlQuery
dropped onto a
On 16/09/13 11:35, Mattias Gaertner wrote:
On Sun, 15 Sep 2013 23:54:48 +0300
patspiper patspi...@gmail.com wrote:
Hi,
I am trying to add a new target (eg: abc) for the project
options/additions and overrides. Once OK is pressed, re-entering the
additions and overrides shows * instead of the
On Mon, 16 Sep 2013 13:20:58 +0300
patspiper patspi...@gmail.com wrote:
[...]
Note: If a target is defined with nothing beneath it, it gets deleted
automatically when the compiler options are reopened. Is this by design?
Yes.
Mattias
--
___
In the same way, travelling within a TFrame components doesn't work too.
When clicking over any component on the TFrame using either TAB or any
other arrow key has no effect.
At runtime, it works.
Antonio.
--
___
Lazarus mailing list
Same for TImageList.
A TImageList is dropped onto a TDataModule, included in the interface
uses, but a TToolBar does not see the TImagesList in the TDataModule.
This breaks completely the porting from Delphi.
I'm really very disapponted.
I've made another test as explained in the Wiki page
Hi,
Current code for Utf8StringOfChar that I wrote (in LazUtf8 unit) may
fail due to Utf8 - UTF16 - FillWord - Utf8 conversions, which only
work for UCS2, as Mattias pointed out to me.
I constructed a new Utf8StringOfChar function that builds UTF8 without
conversions.
For speed reasons it uses
On 16/09/2013 18:03, silvioprog wrote:
Hello,
I'm trying to set an instance to after to call a method (called as
WriteLn) of it, but the result is:
[Error] (1:7): Unknown identifier 'WriteLn'
In attached the small project showing my implementation.
So, how to I set an instance to be used
2013/9/16 silvioprog silviop...@gmail.com
2013/9/16 Martin laza...@mfriebe.de
Ok, found the answer in the lpr.
I would not expect that to work, after all you cant do it in normal
pascal either?
the main begin end is a program does not belong to a class.
Writeln was only by way of
On 16/09/2013 18:58, silvioprog wrote:
2013/9/16 Martin laza...@mfriebe.de mailto:laza...@mfriebe.de
What do you mean passing the self const as default?
I'm trying it:
TMyClass = class
private
FData: string;
public
procedure WriteLn(const S: string);
...
var
obj:
On 9/16/13, Hans-Peter Diettrich drdiettri...@aol.com wrote:
Did you also test the simpler approach, replicating the pattern in one
loop? It's independent of endianness, and can boil down to a single
machine instruction (x86: REP MOVS).
It would be repeating either 2,3, or 4-bytes each time.
2013/9/16 Martin laza...@mfriebe.de
What do you mean passing the self const as default?
I'm trying it:
TMyClass = class
private
FData: string;
public
procedure WriteLn(const S: string);
...
var
obj: TMyClass;
ps.SetVarToInstance('SELF', obj);
So when I call WriteLn, it
2013/9/16 Martin laza...@mfriebe.de
On 16/09/2013 18:03, silvioprog wrote:
Hello,
I'm trying to set an instance to after to call a method (called as
WriteLn) of it, but the result is:
[Error] (1:7): Unknown identifier 'WriteLn'
In attached the small project showing my implementation.
2013/9/16 Martin laza...@mfriebe.de
Ok, found the answer in the lpr.
I would not expect that to work, after all you cant do it in normal pascal
either?
the main begin end is a program does not belong to a class.
Writeln was only by way of illustration, it could be anything else. :)
On Mon, 16 Sep 2013 11:29:35 -0500
Terry A. Haimann te...@haimann.us wrote:
I have a Lazarus App that I would like to create a dpkg and maybe an
rpm. Never done this and don't know how. The App currently uses MySQL
and connects to it with ZeosDbo. Any help would be greatly appreciated.
On 16/09/2013 18:42, silvioprog wrote:
2013/9/16 Martin laza...@mfriebe.de mailto:laza...@mfriebe.de
On 16/09/2013 18:03, silvioprog wrote:
Hello,
I'm trying to set an instance to after to call a method
(called as WriteLn) of it, but the result is:
[Error]
On 16/09/2013 18:54, Martin wrote:
Hm... I saw all units of editormacroscript, but I still don't
understand how the Lazarus team pass the SELF instance as default. :(
Thank you anyway!
What do you mean passing the self const as default?
Ok, found the answer in the lpr.
I would not expect
I have a Lazarus App that I would like to create a dpkg and maybe an
rpm. Never done this and don't know how. The App currently uses MySQL
and connects to it with ZeosDbo. Any help would be greatly appreciated.
Thx in Advance, Terry
--
___
Bart schrieb:
Hi,
Current code for Utf8StringOfChar that I wrote (in LazUtf8 unit) may
fail due to Utf8 - UTF16 - FillWord - Utf8 conversions, which only
work for UCS2, as Mattias pointed out to me.
I constructed a new Utf8StringOfChar function that builds UTF8 without
conversions.
For speed
When I close a file in Lazarus and is has been modified I am asked:
File xxx..xxx has changed. Save?
and there are 3 buttons:
Save
Discard changes
Abort
but only the Save button has an underlined letter (S)
which I can type on the keybord to answer.
If I want to Discard changes I don't know
2013/9/16 silvioprog silviop...@gmail.com
2013/9/16 Martin laza...@mfriebe.de
What do you mean passing the self const as default?
I'm trying it:
TMyClass = class
private
FData: string;
public
procedure WriteLn(const S: string);
...
var
obj: TMyClass;
Hello all.
In it's current form (r23227) CurrentThreadVar it's not initialized
before calling Execute in the TThread implementation for Linux (Unix).
Due to this the calls to TThread.CurrentThread always returns references
to TExternalThread instances, guessing that the current thread is not
On 16.09.2013 23:13, Mario R. Carro wrote:
Hello all.
In it's current form (r23227) CurrentThreadVar it's not initialized
before calling Execute in the TThread implementation for Linux (Unix).
Due to this the calls to TThread.CurrentThread always returns references
to TExternalThread
Bart schrieb:
Did you also test the simpler approach, replicating the pattern in one
loop? It's independent of endianness, and can boil down to a single
machine instruction (x86: REP MOVS).
It would be repeating either 2,3, or 4-bytes each time.
How would you code that?
I would not care.
Thanks Antonio, that worked fine.
Goodness knows what I was originally doing!
Richard
Details are missing about your implementation: Lzarus FPC, OS, etc.
I've made a little test on Win32 and Linux_X64, Lazarus 1.0.12
I added some nodes to the TTreeView like this:
var
SData:
29 matches
Mail list logo