Re: [Lazarus] help needed on SQLite

2012-07-02 Thread waldo kitty

On 7/2/2012 04:54, Reinier Olislagers wrote:

On 1-7-2012 22:59, Ing. Héctor F. Fiandor Rosario wrote:>  Dear friends:


i am a new users in BD and i would like to test the SQLite, but really,
i can´t understand very well the tutorials obtained.

[trim]


Please don't try to start a new thread by replying to another thread. It
now appears as if you're responding to the "IDE problems when using
record helper types" thread.


plus it is almost impossible to break/split the thread if and when others reply 
to the original post of yours :/ especially considering how the message-ids play 
in the reply-to linkages :(


not trying to be mean or ugly but just pointing out the reality...

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus and Windows messages

2012-07-02 Thread Hans-Peter Diettrich

Mattias Gaertner schrieb:

On Mon, 2 Jul 2012 22:00:05 +0300
ik  wrote:



I'm trying to capture the windows message WM_QUERYENDSESSION (that exists
on JwaWinUser).

I did something like this:

TForm1 = class(TForm)
...
private
  procedure WMQueryEndSession(var Msg : TLMessage); message
WM_QUERYENDSESSION


This message most probably is sent to the application, not to all of its 
forms. That's why:



Why not simply drop a ApplicationProperties onto the form and set the
OnQueryEndSession event?


Or you add an handler manually to your Application object.

DoDi


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TAChart ?

2012-07-02 Thread Alexander Klenin
On Tue, Jul 3, 2012 at 5:35 AM, Terry Haimann  wrote:
> Is it possible to do something like TeeChart's Bubble Chart?

Yes, see http://wiki.lazarus.freepascal.org/TAChart_documentation#Bubble_series
and "multi" demo.

-- 
Alexander S. Klenin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus and Windows messages

2012-07-02 Thread ik
On Mon, Jul 2, 2012 at 10:16 PM, Mattias Gaertner  wrote:

> On Mon, 2 Jul 2012 22:00:05 +0300
> ik  wrote:
>
> > Hello,
> >
> > It's the first time that I use Lazarus with Windows, and almost 10 years
> > since I last developed to Windows.
> >
> > I'm trying to capture the windows message WM_QUERYENDSESSION (that exists
> > on JwaWinUser).
> >
> > I did something like this:
> >
> > TForm1 = class(TForm)
> > ...
> > private
> >   procedure WMQueryEndSession(var Msg : TLMessage); message
> > WM_QUERYENDSESSION
>
> Why not simply drop a ApplicationProperties onto the form and set the
> OnQueryEndSession event?
>

Because I must know when the log off, and do some tasks before I can end
the program. I must know that the endsession request was made because of
such request, and OnQueryEndSession does not contain such details as far as
i can see.


>
> Mattias
>

Ido


>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus and Windows messages

2012-07-02 Thread Mattias Gaertner
On Mon, 2 Jul 2012 22:00:05 +0300
ik  wrote:

> Hello,
> 
> It's the first time that I use Lazarus with Windows, and almost 10 years
> since I last developed to Windows.
> 
> I'm trying to capture the windows message WM_QUERYENDSESSION (that exists
> on JwaWinUser).
> 
> I did something like this:
> 
> TForm1 = class(TForm)
> ...
> private
>   procedure WMQueryEndSession(var Msg : TLMessage); message
> WM_QUERYENDSESSION

Why not simply drop a ApplicationProperties onto the form and set the
OnQueryEndSession event?

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus and Windows messages

2012-07-02 Thread ik
Hello,

It's the first time that I use Lazarus with Windows, and almost 10 years
since I last developed to Windows.

I'm trying to capture the windows message WM_QUERYENDSESSION (that exists
on JwaWinUser).

I did something like this:

TForm1 = class(TForm)
...
private
  procedure WMQueryEndSession(var Msg : TLMessage); message
WM_QUERYENDSESSION
...

end;
...

procedure TForm1.WMQueryEndSession(var Msg : TLMessage);
begin
  case Msg.lParam of
 ENDSESSION_CLOSEAPP : ShowMessage('Closing Application'); // Added it
by hand <-
http://msdn.microsoft.com/en-us/library/windows/desktop/aa376890%28v=vs.85%29.aspx
 ENDSESSION_CRITICAL : ShowMessage('Critical reason');
 ENDSESSION_LOGOFF : ShowMessage('Log off');
  end;
  Msg.Result := 1;
end;
...

It looks like the message never fires.

I'm using Windows 7 64 bit, Lazarus 0.9.30.4 FPC 2.6.0 i386

What am I missing or doing wrong ?

Thanks,
Ido
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TAChart ?

2012-07-02 Thread Terry Haimann

Is it possible to do something like TeeChart's Bubble Chart?

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] savedialog issue

2012-07-02 Thread Martin

On 02/07/2012 14:43, Andrea Mauri wrote:


In
function TCommonDialog.DoExecute : boolean;
FUserChoice is assigned 2 (mrCancel).

I don't know why. I would like to know where/what I have to check in 
order to understand this behaviour.

Anyone can help? Any suggestion?

I use:
Lazarus 0.9.31 r37846M FPC 2.6.0 i386-win32-win32/win64


I don't know anything about the issue itself, but have you tried setting 
a watchpoint (context menu in watches list). (Scope = global / Acess write)


Set the watchpoint after TCommonDialog.DoExecute has initialized the 
value. The watchpoint should stop execution if the value is modified


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] savedialog issue

2012-07-02 Thread Andrea Mauri

Dear all,
I encountered a strange behaviour of TSaveDialog.
I have a big project, inside of it many TSaveDialogs.
Recently I found that sometimes the dialogs are not shown.
I didn't find any explanation on this behaviour, here what I understood:
TSaveDialog is shown on execute all the times except when I got 
exceptions (out of memory exceptions that are managed using try finally 
or try except).
I tried to go inside the execute, since when I call execute it gives me 
back False without showing the dialog.

In
function TCommonDialog.DoExecute : boolean;
FUserChoice is assigned 2 (mrCancel).

I don't know why. I would like to know where/what I have to check in 
order to understand this behaviour.

Anyone can help? Any suggestion?

I use:
Lazarus 0.9.31 r37846M FPC 2.6.0 i386-win32-win32/win64

Best regards,
Andrea Mauri

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] help needed on SQLite

2012-07-02 Thread Reinier Olislagers
On 2-7-2012 10:54, Reinier Olislagers wrote:
> On 1-7-2012 22:59, Ing. Héctor F. Fiandor Rosario wrote:> Dear friends:
>> I will appreciate very much to get in contact with one of the list´s
>> member who has experience in SQLite to get a simple sample to reproduce
>> from zero.
> I don't know all the tricks of using Lazarus, but I did extend the SQLDB
> Tutorial1 on the wiki a bit.
> I've been interested in adding some notes to make it more useful for
> sqlite; perhaps now is the time to do that based on e.g. your feedback
> of what wasn't understandable.
Just updated SQLDB Tutorial1 on the wiki
http://wiki.lazarus.freepascal.org/SQLdb_Tutorial1

As usual, corrections/additions to the page welcome...

Reinier (aka BigChimp on the wiki/forum)



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] help needed on SQLite

2012-07-02 Thread Reinier Olislagers
On 1-7-2012 22:59, Ing. Héctor F. Fiandor Rosario wrote:> Dear friends:
>
> i am a new users in BD and i would like to test the SQLite, but really,
> i can´t understand very well the tutorials obtained.
>
> I will appreciate very much to get in contact with one of the list´s
> member who has experience in SQLite to get a simple sample to reproduce
> from zero.
>
> thanks in advance
>
> Ing. Héctor F. Fiandor Rosario

Héctor,

Please don't try to start a new thread by replying to another thread. It
now appears as if you're responding to the "IDE problems when using
record helper types" thread.

It would help if you said which tutorials you used and what parts you
didn't understand/where it went wrong

Actually, perhaps this might be better suited for a forum conversation
as you can easily add screenshots etc, but perhaps that's just me.

I don't know all the tricks of using Lazarus, but I did extend the SQLDB
Tutorial1 on the wiki a bit.
I've been interested in adding some notes to make it more useful for
sqlite; perhaps now is the time to do that based on e.g. your feedback
of what wasn't understandable.

Thanks,
Reinier (aka BigChimp on the wiki/forum)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE more ...

2012-07-02 Thread Antonio Fortuny

Right.

Same symptoms.

Antonio.

Le 01/07/2012 19:00, Bernd a écrit :

2012/7/1 Mattias Gaertner :


For instance, I dock the
project inspector, the objects inspector and the call stack all
together. When I reload Lazarus I only get the project inspector and I
have to manually dock again the other two windows. Fortunately, the code
main editor, the top main form (editor tool buttons and components) and
the messages window are always kept in place.

Please create a bug report so this is not forgotten.
I plan to work again on docking next month.

There is a bug report already that describes these symptoms:
http://bugs.freepascal.org/view.php?id=19714

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus