[Lazarus] IDEIntf moved to components

2013-04-23 Thread Mattias Gaertner
Hi,

The package IDEIntf can now be found in the components folder.

Mattias

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


Re: [Lazarus] GetAllFilesMask / AllFilesMask

2013-04-23 Thread Bart
On 4/22/13, J. Leslie Turriff jlturr...@centurytel.net wrote:
   Notwithstanding your statement about masks vs. maskLists, I'm amazed.  
 Is
 there really not some simple variable assignment that can be used to
 override
 this in one line of code?  This seems to me to be very
 programmer-unfriendly.

Maybe, but must be discussed first, th eproper place to fix this is in
the masks unit itself?

But that may break existing programs...

Bart

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


Re: [Lazarus] Lazarus helpfiles

2013-04-23 Thread Lukasz Sokol
On 20/04/2013 15:11, Marco van de Voort wrote:
 On Wed, Jul 11, 2012 at 09:53:59AM +0100, Lukasz Sokol wrote:
 
 ( very old message, ran into it by accident while searching for something
 else)
 
 If the point of CHM is that they use less disk space than unpacked HTML, 
 (yeah, I see the point : lcl.chm 11.577MB, fcl.chm 1.968MB, vs unpacked 
 HTML files that use 187MB) then I'd include this information somewhere 
 on the wiki...
 
 There are multiple ways in which chms are superior to the raw material:
 
 - Primarily they are compressed, and can be used as such (html decompression
 on plain dos can take hours)
 - Indexing, TOC and search is better.
 - cross package hyperlinking is file position independent. IOW FPC and LCL
helpfiles don't have to be in the same directory to link to eachother
(plain html simply does ../packagename for all unresolved links)
 - The code to use the helpfile is filesystem independent. In the past quite
often subtle filesystem related bugs (like wrong directory separator)
came to light only after release(*)
 
 (*) specially on Dos. Dos-under-Windows is more lenient than standalone dos.
 
 Note that the html inside the CHM is 99% the same, but not entirely. Using
 one base html for both is not really practical atm. All references between
 packages would break. 
 

ACK, thanks for the info.

Lukasz



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


Re: [Lazarus] Can not run in debug mode for WinCe

2013-04-23 Thread Felipe Monteiro de Carvalho
On Mon, Apr 22, 2013 at 6:06 PM, GREP eperg...@outlook.com wrote:
 Sorry, what is the default debug directory?

It is written in the wiki, the default debug directory is \gdb as written here:

Step 4 - Optional - This step is optional and if you don't do it, gdb
will do this for you, but it might take some 5 minutes to do it. Copy
your executable file with File Explorer program in your emulator to
the directory \gdb. If there is no gdb directory in the root folder,
create it.

 If i put D:\lazarus\mingw\bin\gdb.exe, then when I run the app it tellsme is
 not
 a valid executable.

Are you following the wiki instructions precisely?
D:\lazarus\mingw\bin\gdb.exe is a win32 desktop debugger. It is not a
wince cross-debugger. This should be fixed in step 1 of the
instructions:

Step 1 - In Lazarus IDE go to the menu Environment-Debugger Options.
Change the debugger path to the directory with gdb for wince.you can
get it from here
ftp://ftp.freepascal.org/pub/fpc/contrib/cross/gdb-6.4-win32-arm-wince.zip

I recommend that you follow the step-by-step instructions in the wiki.
Follow precisely all steps. First step 1, then step 2, and so on.

-- 
Felipe Monteiro de Carvalho

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


[Lazarus] How to create a listbox that can be shifted

2013-04-23 Thread Jürgen Hestermann

In my program (for Windows) I display log information in a TListBox.
But that has some severe drawbacks/bugs:

1.) If one of the displayed strings exceeds the right margin there is no 
horizontal slider to shift the text to the right so the user can see the 
invisible text.

2.) If the number of rows exceeds the height of the TListBox window there is a 
vertical slider to move up and down. But for certain widget-sets (recently 
applied to our workstations at work) this slider is not displayed. Instead, 
some remnant from previously displayed text appears in the place where the 
slider should be (if you guess where the slider is, it still works but it looks 
ugly and is awkward).

So I decided to switch to TStringGrid (with one column). This *has* a slider in 
case the right margin is exceeded. It is also much more flexible as I can add 
columns easily if needed. But now I still cannot move the (one and only) column 
to make text on the right visible, even though the slider is there! Is that a 
bug too?

I am stuck again. How can I make long (wide) text visible in a restricted 
window?

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


Re: [Lazarus] How to create a listbox that can be shifted

2013-04-23 Thread Howard Page-Clark

On 23/04/13 5:20, Jürgen Hestermann wrote:


I am stuck again. How can I make long (wide) text visible in a
restricted window?


Use a TMemo, and set its ScrollBars property to ssAutoBoth?


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


[Lazarus] RAD Studio XE4 Released?

2013-04-23 Thread vfclists .
http://www.h-online.com/developer/news/item/RAD-Studio-XE4-focuses-on-cross-platform-apps-1848176.html

http://www.embarcadero.com/press-releases/embarcadero-technologies-unveils-multi-device-true-native-app-development-suite
-- 
Frank Church

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


Re: [Lazarus] RAD Studio XE4 Released?

2013-04-23 Thread Boian Mitov
Yes, it is released as planned on April 22.

With best regards,
Boian Mitov

---
Mitov Software
www.mitov.com
---

--
I am using the free version of SPAMfighter.
SPAMfighter has removed 21086 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

Do you have a slow PC? Try a Free scan 
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Can not run in debug mode for WinCe

2013-04-23 Thread GREP
Felipe
Thans for your answers.
I did follow the steps (the D:\lazarus\mingw\bin\gdb.exe was a desperate 
attempt after nothing worked).
The point is  that even when I set D:\gdb\gdb.exe as the debugger 
path   in Tools-Options, and set the shared folder in WM6 to d:\gdb,
Lazarus 
copies the wince-stub and app.exe to a *root directory in the DEVICE* gdb',
*not in the storage card* like the Lazarus 0.9 I had did.
The problem is that WM emulator runs out of *STORAGE* memory, not RAM (which
is set to 128).
Will this  never be reverted to the way lazarus 0.9 worked (i.e. copy to the
shared folder)?
I tried the work around suggested in this link:
Also read the notes on http://bugs.freepascal.org/view.php?id=21061 
for information on additional setup. . Although in 2012 it appeared that
the problem 
was solved I stiil get it.
I have
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4030945/debug2.gif 
and 
   
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4030945/debug4.gif 

When I run the app in the debugger output i see:
info line D:\hd\unit101.pas:167
info line \D:\\hd\\unit101.pas\:167\n
No source file named D:\\hd\\unit101.pas.\n
and when the execution gets to the break point
I get:
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4030945/debug1.gif 
While of course I do have it:
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4030945/debug3.gif 
Is there *another work around?*






--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Can-not-run-in-debug-mode-for-WinCe-tp4030869p4030945.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

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


Re: [Lazarus] Can not run in debug mode for WinCe

2013-04-23 Thread Sven Barth

On 23.04.2013 21:54, GREP wrote:

Felipe
Thans for your answers.
I did follow the steps (the D:\lazarus\mingw\bin\gdb.exe was a desperate
attempt after nothing worked).
The point is  that even when I set D:\gdb\gdb.exe as the debugger
path   in Tools-Options, and set the shared folder in WM6 to d:\gdb,
Lazarus
copies the wince-stub and app.exe to a *root directory in the DEVICE* gdb',
*not in the storage card* like the Lazarus 0.9 I had did.


1. GDB by default assumes that your application will be located at 
\gdb on the device/emulator. This was never handled by Lazarus in any way.


2. To change the directory you need to follow what is mentioned below 
Some hints on the wiki page linked by Felipe. You need to add the 
following


--eval-command=set remotedirectory \Storage Card\Program Files\My 
Program\bin


(or whatever your directory is called ON THE DEVICE)

to Environment = Options = Debugger = Debugger_Startup_Options (maybe 
with only one - at the front instead of two)


You might also need to restart GDB for this to work. You can do this by 
using Start = Reset Debugger


Regards,
Sven


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


Re: [Lazarus] GetAllFilesMask / AllFilesMask

2013-04-23 Thread Bart
On 4/23/13, Bart bartjun...@gmail.com wrote:

 Maybe, but must be discussed first, th eproper place to fix this is in
 the masks unit itself?

AFAICS Delphi MatchesMask behaves the same:
MatchesMask('foo', '*.*') = False.
MatchesMask('foo.', '*.*') = True.

(Can someone test with recent Delphi please?)

So for any file searching function on Windows, this needs adjusting in
userland.

Bart

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


Re: [Lazarus] Can not run in debug mode for WinCe

2013-04-23 Thread GREP
Thanks very much Sven

the eval-command worked, I have no more problems of storage
memory. ( I do  not remenber this in my previous Lazarus installation, but 
it is almost 2 years that I did not use it)
However, when I ran the app (frrm Lazarus) I got

http://free-pascal-lazarus.989080.n3.nabble.com/file/n4030949/debug5.gif 

I inspected the code.
The project file and all my unit files are in d:\hd

I have this options

http://free-pascal-lazarus.989080.n3.nabble.com/file/n4030949/debug1.gif 
(I got same results with Automatic)

and this in the object insoector
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4030949/debug2.gif 

and I do have unit101.pas in the Procject uses clause.
When I clicked the line to mark the break-point
it put a quesitonmark  on its left
http://free-pascal-lazarus.989080.n3.nabble.com/file/n4030949/debug3.gif 

and the  View-Breakopints Window shows:

http://free-pascal-lazarus.989080.n3.nabble.com/file/n4030949/debug4.gif 

and the debugger output says:

info line D:\hd\unit101.pas:162
info line \D:\\hd\\unit101.pas\:162\n
No source file named D:\\hd\\unit101.pas.\n

Do you know why it sys so when I do have
Directorio de D:\hd

   18/04/2013  05:57 AM 5,284 unit101.pas






--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Can-not-run-in-debug-mode-for-WinCe-tp4030869p4030949.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

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


Re: [Lazarus] GetAllFilesMask / AllFilesMask

2013-04-23 Thread Bart
On 4/24/13, Bart bartjun...@gmail.com wrote:

 So for any file searching function on Windows, this needs adjusting in
 userland.

Turns out Windows is a bit odd:

Dir *. will show files without extension, but also files like .ext,
but then not files like .test.ext

How are we ever going to emulate that using MatchesMask?

Dir .* will show only files starting with a dot (as expected)

Bart

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


[Lazarus] FPC 2.6.2 + Thread.Queue?

2013-04-23 Thread silvioprog
Hi,

In FPC 2.7.1+ you've the Queue method, but it doesn't exists in FPC 2.6.2.
So, what you uses instead it? The Synchronize method does not works in this
case.

I'm implementing a small unit with some interfaces to use of sockets with
TCP/IP protocol easily, and I need to set compatibility with stable FPC
too. The temporary repository of it is:
https://bitbucket.org/silvioprog/tcpipcomp

Thank you,

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to create a listbox that can be shifted

2013-04-23 Thread Jürgen Hestermann


Am 2013-04-23 19:11, schrieb Howard Page-Clark:

On 23/04/13 5:20, Jürgen Hestermann wrote:


I am stuck again. How can I make long (wide) text visible in a
restricted window?


Use a TMemo, and set its ScrollBars property to ssAutoBoth?


Okay, yet another approach. I will try it. Thanks.
Though each change of object type requires me to apply all the anchor settings 
of all visible objects in the form again, because most of them are anchored to 
the list. Quite a lot of work.

Still I am wondering why nobody seems to miss a horizontal shift for TListBox 
and TStringGrid (especially because a slider is shown for TStringGrid but does 
not work). Are these bugs which nobody discovered since years? I can't believe 
it.

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


Re: [Lazarus] GetAllFilesMask / AllFilesMask

2013-04-23 Thread Jürgen Hestermann


Am 2013-04-24 00:48, schrieb Bart:

Turns out Windows is a bit odd:

Dir *. will show files without extension, but also files like .ext,
but then not files like .test.ext


If a file starts with a dot, it is *not* considered to separate name and 
extension on Windows. In this case the dot is part of the name and there is no 
extension (unless a second dot exists). A file *must* have a name part, only 
the extension can be omitted (on Windows).


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