Re: [Lazarus] How to set focus in an Edit in multiple TabSheet?

2011-12-11 Thread D. Prameswara
Thanks, but can you explain why PtrUInt better than PtrInt.

2011/12/12 zeljko 

> **
>
> On Monday 12 of December 2011 06:35:22 D. Prameswara wrote:
>
>
> >
>
> > I know it is not best solution. My friend said that it is not safe for
>
> > using PtrInt.
>
>
> Yes, I prefer PtrUInt for tobject pointers.
>
>
> zeljko
>
>
>
>
>
> --
> ___
> 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] How to set focus in an Edit in multiple TabSheet?

2011-12-11 Thread zeljko
On Monday 12 of December 2011 06:35:22 D. Prameswara wrote:

> 
> I know it is not best solution. My friend said that it is not safe for
> using PtrInt.

Yes, I prefer PtrUInt for tobject pointers.

zeljko


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


Re: [Lazarus] Building documentation

2011-12-11 Thread Hans-Peter Diettrich

Mattias Gaertner schrieb:

On Sun, 11 Dec 2011 18:38:03 +0100
Hans-Peter Diettrich  wrote:

The fpdoc project feature simplifies the maintenance and building of the 
docmentation considerably. I've just uploaded an patch (#20787) 


Where?


Oops, #20878, and for some reason it arrived in the FPC tracker :-(

DoDi


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


Re: [Lazarus] Building documentation

2011-12-11 Thread Mattias Gaertner
On Sun, 11 Dec 2011 18:38:03 +0100
Hans-Peter Diettrich  wrote:

> The fpdoc project feature simplifies the maintenance and building of the 
> docmentation considerably. I've just uploaded an patch (#20787) 

Where?

Mattias

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


Re: [Lazarus] Check changes on disk with loading

2011-12-11 Thread Howard Page-Clark

On 11/12/11 4:52, Juha Manninen wrote:


Ok, after reading your reply again I got it, and the feature even seems
to work as advertised.
Still,'Check changes on disk while loading' doesn't mean anything. Maybe
it should be:
'Read also file contents when checking if file has changed on disk'


Possible improved phrasing (if I've understood the feature correctly) 
might be

'Check for disk file changes via content rather than timestamp'

Howard


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


Re: [Lazarus] How to set focus in an Edit in multiple TabSheet?

2011-12-11 Thread silvioprog
2011/12/11 Felipe Monteiro de Carvalho :
> 2011/12/10 silvioprog :
>> I'm trying with ActiveControl, calling "ActiveControl := Edit1" in
>> OnShow of TabSheet, but it not work. :(
>
> Which widgetset?

Now I tested in GTK2 (Mint), Qt (openSUSE) and Windows (7). Same problem in all.

-- 
Silvio Clécio
===
Blog - 
Twitter - 
Facebook - 
LazSolutions - 
Lazarus-BR - 
===
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to set focus in an Edit in multiple TabSheet?

2011-12-11 Thread silvioprog
2011/12/11 Bart :
> On 12/10/11, silvioprog  wrote:
>
> I remeber using SomeContrl.SetFocus in the OnChange of TPageControl
> (actually I did an override on DoChange) and this works for me (on
> Windows, not tested yet on other widgetsets).
>
> Here's a snippet of the relevant code.
>
> procedure TEditorPageControl.DoChange;
> var
>  Ed: TEditor;
> begin
>  inherited DoChange;
>  Ed := GetCurrentEditor;
>  InternalEditorStatusChange(Ed,
> [scCaretX,scCaretY,scModified,scInsertMode,scFileName]);
>  if Assigned(Ed) then
>  begin
>    try
>      Ed.SetFocus;
>    except;
>      debugln('TEditorPageControl.DoChange: could not set focus to
> current editor');
>    end;
>  end;
> end;

I tried to run this code, but I have not found the function GetCurrentEditor.

This code works with a PageControl over another PageControl?

-- 
Silvio Clécio
===
Blog - 
Twitter - 
Facebook - 
LazSolutions - 
Lazarus-BR - 
===
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===

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


[Lazarus] Building documentation

2011-12-11 Thread Hans-Peter Diettrich
The fpdoc project feature simplifies the maintenance and building of the 
docmentation considerably. I've just uploaded an patch (#20787) with 
fpdoc projects for building the documentation for the LCL and LazUtils 
packages. Projects for building the RTL and FCL documentation are 
available on demand.


Some notes:

The latest (trunk) version of fpdoc is required, it contains a couple of 
updates which are missing in the release versions. Some more flaws shall 
be fixed soon, hopefully.


The project files must reside in the proper directory, because they 
contain relative references to the PAS and XML files. I found it 
convenient to use a user-specific filename prefix, e.g. "my", so that 
logfiles etc. can be found easily in a directory listing or file open 
dialog.


The projects assume that all FPC and Lazarus documentation resides in a 
common directory, the supplied projects assume \AllDocs\. Any better ideas?
Most options (except booleans) can be overridden by commandline 
arguments, e.g.

> fpdoc --project=mylcl --format=chm


For documentation writers docs\html\mkhtml.bat has been supplied, which 
allows to build the documentation for a single LCL unit. Usage:

> mkhtml  
e.g.
> mkhtml controls pp
The build log goes into -log.txt, the HTML files into test\.

Any comments?

DoDi


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


Re: [Lazarus] Check changes on disk with loading

2011-12-11 Thread Juha Manninen
2011/12/11 Mattias Gaertner 

> IMO an option to disable "checking files on disk" makes no sense.
> No one ever asked for that.
>
> As I explained: The option is how to check for changes, not if.
>

Ok, after reading your reply again I got it, and the feature even seems to
work as advertised.
Still, 'Check changes on disk while loading' doesn't mean anything. Maybe
it should be:
 'Read also file contents when checking if file has changed on disk'
It is long but there is room in the dialog.


About wrong trousers: see Terry Pratchett.


 Time trousers? Scary! :)

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


Re: [Lazarus] How to set focus in an Edit in multiple TabSheet?

2011-12-11 Thread Felipe Monteiro de Carvalho
2011/12/10 silvioprog :
> I'm trying with ActiveControl, calling "ActiveControl := Edit1" in
> OnShow of TabSheet, but it not work. :(

Which widgetset?

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] Check changes on disk with loading

2011-12-11 Thread Mattias Gaertner
On Sun, 11 Dec 2011 16:31:36 +0200
Juha Manninen  wrote:

> 2011/12/11 Mattias Gaertner 
> 
> > You are in the wrong trouser. Please come back to us.
> >
> 
> What does that mean?

It means you didn't understand an option, so you asked. This is good.
But then you didn't wait for the answer, guessed something. Which is
bad. Because you guessed wrong. Then you find out that the option does
not what you guessed.
Still not stopping, you continue ...

> The setting didn't work as I expected, no matter which
> trousers I wear. :)
> 
> I guess the setting has effect when an external process changes a file
> while Lazarus has focus. I did not test that now.

... and continue ...

> I tested changing focus to another editor, changing and saving the file and
> giving Lazarus the focus again.

... and continue ...

> Then I always get the "files have changed on disk" dialog with a diff view
> and everything. The setting has no effect for that.

... and continue ...

 
> About the wording, Zeljan's version is best so far although it is not
> proper English either.
> "Check if files changed on disk" or "Check file changes on disk" is better.

... and continue.

Is this really clever?

 
> Tested on Linux with QT bindings.

IMO an option to disable "checking files on disk" makes no sense.
No one ever asked for that.

As I explained: The option is how to check for changes, not if.

About wrong trousers: see Terry Pratchett.

Mattias

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


Re: [Lazarus] Check changes on disk with loading

2011-12-11 Thread Juha Manninen
2011/12/11 Mattias Gaertner 

> You are in the wrong trouser. Please come back to us.
>

What does that mean? The setting didn't work as I expected, no matter which
trousers I wear. :)

I guess the setting has effect when an external process changes a file
while Lazarus has focus. I did not test that now.
I tested changing focus to another editor, changing and saving the file and
giving Lazarus the focus again.
Then I always get the "files have changed on disk" dialog with a diff view
and everything. The setting has no effect for that.

About the wording, Zeljan's version is best so far although it is not
proper English either.
"Check if files changed on disk" or "Check file changes on disk" is better.

Tested on Linux with QT bindings.

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


Re: [Lazarus] Check changes on disk with loading

2011-12-11 Thread zeljko
On Sunday 11 of December 2011 14:29:53 Juha Manninen wrote:
> I am checking and translating some IDE strings.
> In Environment -> Desktop options there is : 'Check changes on disk with
> loading'
> Is it correct? Should it be 'Check changes on disk while loading' ?
> Or 'Check changes on disk when getting focus' ?

"Check file changed on disk" ?

Also please when you add such properties or work something on Environment 
options add hints to checkboxes and other controls, it's pretty hard to find 
something when you don't know exact meaning of control.

> 
> Besides, the setting does not work.
> If I change a file outside of Lazarus and then activate Lazarus, a dialog
> always opens asking if I want to reload the file.
> The setting does not change it anyhow. Should it be removed?
> 
> Juha
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Check changes on disk with loading

2011-12-11 Thread Mattias Gaertner
On Sun, 11 Dec 2011 15:29:53 +0200
Juha Manninen  wrote:

> I am checking and translating some IDE strings.
> In Environment -> Desktop options there is : 'Check changes on disk with
> loading'
> Is it correct?

It's confusing.

> Should it be 'Check changes on disk while loading' ?
> Or 'Check changes on disk when getting focus' ?

No.
The IDE checks on some events if the editor files have changed on disk.
Instead of checking only the file date it can also load the file and
compare the content.
Then it pops up the dialog "files have changed on disk".
Feel free to propose a better wording.

 
> Besides, the setting does not work.

How can you say that, if you don't understand it?
It works here.

> If I change a file outside of Lazarus and then activate Lazarus, a dialog
> always opens asking if I want to reload the file.
> The setting does not change it anyhow. Should it be removed?

You are in the wrong trouser. Please come back to us.


Mattias

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


[Lazarus] Check changes on disk with loading

2011-12-11 Thread Juha Manninen
I am checking and translating some IDE strings.
In Environment -> Desktop options there is : 'Check changes on disk with
loading'
Is it correct? Should it be 'Check changes on disk while loading' ?
Or 'Check changes on disk when getting focus' ?

Besides, the setting does not work.
If I change a file outside of Lazarus and then activate Lazarus, a dialog
always opens asking if I want to reload the file.
The setting does not change it anyhow. Should it be removed?

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


Re: [Lazarus] How to set focus in an Edit in multiple TabSheet?

2011-12-11 Thread Bart
On 12/10/11, silvioprog  wrote:

I remeber using SomeContrl.SetFocus in the OnChange of TPageControl
(actually I did an override on DoChange) and this works for me (on
Windows, not tested yet on other widgetsets).

Here's a snippet of the relevant code.

procedure TEditorPageControl.DoChange;
var
  Ed: TEditor;
begin
  inherited DoChange;
  Ed := GetCurrentEditor;
  InternalEditorStatusChange(Ed,
[scCaretX,scCaretY,scModified,scInsertMode,scFileName]);
  if Assigned(Ed) then
  begin
try
  Ed.SetFocus;
except;
  debugln('TEditorPageControl.DoChange: could not set focus to
current editor');
end;
  end;
end;

Bart

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


Re: [Lazarus] @DBLookupControls users: call for test

2011-12-11 Thread Marcos Douglas
On Sat, Dec 10, 2011 at 12:15 PM, Luiz Americo Pereira Camara
 wrote:
> In order to fix some bugs i did significant changes in
> TDBLookup[List|Combo]Box controls
>
> I did a lot of testing but may broken something
>
> Please report problems you have

I will if I find some.
Thanks.

Marcos Douglas

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