function CharLength(const S: string; Index: Integer): Integer;
begin
Result := 1;
assert((Index > 0) and (Index <= Length(S)));
if SysLocale.FarEast and (S[Index] in LeadBytes) then
Result := StrCharLength(PChar(S) + Index - 1);
end;
--
___
Laz
I have found the Delphi function, which does not work fine also. It is:
function WrapText(const Line, BreakStr: string; const BreakChars: TSysCharSet;
MaxCol: Integer): string;
const
QuoteChars = [, '"'];
var
Col, Pos: Integer;
LinePos, LineLen: Integer;
BreakLen, BreakPos: Integer;
You could try updating to the latest rev. We are already at rev27595
If it doesn't work, then I recommend Maxim's instructions. A bug
report + test project
For me wordwrap always worked.
--
Felipe Monteiro de Carvalho
--
___
Lazarus mailing list
Laza
Lazarus 0.9.29 r24105 FPC 2.4.0 i386-win32-win32/win64
Windows XP
Antônio
2010/10/7 Felipe Monteiro de Carvalho :
> On Wed, Oct 6, 2010 at 2:09 PM, Antônio wrote:
>> Is there any length limit to WrapText function?
>
> No there shouldn't be.
>
> Also, please always say which fpc, lazarus and oper
On Wed, Oct 6, 2010 at 2:09 PM, Antônio wrote:
> Is there any length limit to WrapText function?
No there shouldn't be.
Also, please always say which fpc, lazarus and operating systems
versions you are using in posts about problems.
thanks,
--
Felipe Monteiro de Carvalho
--
__
On Wednesday 06 October 2010 23:23, Mattias Gaertner wrote:
> On Tue, 5 Oct 2010 23:43:35 +0100
>
> Frank Church wrote:
> > On 5 October 2010 03:58, Frank Church wrote:
> > > I am trying to rebuild the IDE after installing new packages and I get
> > > this error message repeatedly.
> > >
> > > /h
On Thu, 07 Oct 2010 02:19:34 +, Mark Morgan Lloyd
wrote:
>waldo kitty wrote:
>
>> FWIW: there is probably a FORTRAN compiler for *nix... whether or not it
>> can take your existing FORTRAN code and compile it to a library for *nix
>> is another question... and, as noted above, there may not
On Thu, 07 Oct 2010 02:19:34 +, Mark Morgan Lloyd
wrote:
>waldo kitty wrote:
>
>> FWIW: there is probably a FORTRAN compiler for *nix... whether or not it
>> can take your existing FORTRAN code and compile it to a library for *nix
>> is another question... and, as noted above, there may not
On Thu, 07 Oct 2010 02:22:55 +, Mark Morgan Lloyd
wrote:
>Bo Berglund wrote:
>> On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund
>> wrote:
>>
>> I found this converter by googling (offered on several websites, but
>> basically the same everywhere):
>> http://sourceforge.net/projects/fortran2
On Thu, 07 Oct 2010 02:14:47 +, Mark Morgan Lloyd
wrote:
>> If I now close the port with my button and then try to open it again
>> there is an exception that forces the program to end.
>
>Check port ownership, the groups the current user is in, and look at
>dmesg output.
>
Hmm, what do you
Bo Berglund wrote:
On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund
wrote:
I found this converter by googling (offered on several websites, but
basically the same everywhere):
http://sourceforge.net/projects/fortran2pascal/
but unfortunately it only handles Fortran77 code, whereas our code is
Fo
waldo kitty wrote:
FWIW: there is probably a FORTRAN compiler for *nix... whether or not it
can take your existing FORTRAN code and compile it to a library for *nix
is another question... and, as noted above, there may not be any real
need to keep those routines in FORTRAN... it may be pretty
Bo Berglund wrote:
I'm sorry to bother you again but I can't grip the serial posrt
handling at all
I have installed 5dpo serial component in Lazarus on Ubuntu 10 (a
virtual machine in VMWare, which uses the host COM1 serial port) and
tried the following test:
- Created a form with an Open/Cl
Would you please change the default button in Project options dialog from
"Test" to "Ok" button.
Thanks in advance.
--
Zaher Dirkey
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/la
On 10/6/2010 17:34, Bo Berglund wrote:
I have a question that might be OT here, but I will try nevertheless:
i don't see anything OT about it but then again, i'm just a lowly user like you
:P
We have a Windows application written in Delphi for data analysis and
display.
It uses GLScene as th
On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund wrote about [Lazarus]
Converting Fortran to FPC?:
[snip]
> So my question now is if there is any experience of either porting
> Fortran code to FPC or of compiling Fortran code for a Windows DLL
> into the corresponding function in Linux?
I doubt yo
07.10.2010 0:26, silvioprog пишет:
Hi,
To reproduce the error, paste some dataset in a datamodule (or form),
and try double click to open the fields editor. The fields editor opens
and closes abruptly.
With right click in the component and using the "Edit Fields" option,
the fields editor open
On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund
wrote:
I found this converter by googling (offered on several websites, but
basically the same everywhere):
http://sourceforge.net/projects/fortran2pascal/
but unfortunately it only handles Fortran77 code, whereas our code is
Fortran90 syntax.
Tried
I have a question that might be OT here, but I will try nevertheless:
We have a Windows application written in Delphi for data analysis and
display.
It uses GLScene as the data rendering engine and it uses 3 Fortran
DLL:s to do the number crunching.
I want to port the whole thing to Lazarus/FPC a
On Tue, 5 Oct 2010 23:43:35 +0100
Frank Church wrote:
> On 5 October 2010 03:58, Frank Church wrote:
>
> > I am trying to rebuild the IDE after installing new packages and I get this
> > error message repeatedly.
> >
> > /home/rchurch/.programs/lazarus/0.9.29/lazarus_0929_27548/share/lazarus/id
I'm sorry to bother you again but I can't grip the serial posrt
handling at all
I have installed 5dpo serial component in Lazarus on Ubuntu 10 (a
virtual machine in VMWare, which uses the host COM1 serial port) and
tried the following test:
- Created a form with an Open/Close button, an edit b
It was to Leonardo M. Ramé. I had recently updated ImageMagick and I
vaguelly remembered having fixed something similar, but it seams that
it wasn't exactly this fix.
--
Felipe Monteiro de Carvalho
--
___
Lazarus mailing list
Lazarus@lists.lazarus.free
Thanks to all. ;)
2010/10/6 Sergei Gorelkin
> Sergei Gorelkin wrote:
>
>> Marcos Douglas wrote:
>>
>> Well, the problem was fixed.
>>> Bug reporter: http://bugs.freepascal.org/view.php?id=16884
>>> Solution: http://cia.vc/stats/project/fpc/.message/b8ef19
>>>
>>> Unfortuately, not. Issue #1688
06.10.2010 16:09, Antônio пишет:
Is there any length limit to WrapText function? I have used it to a 3
paragraphs text and have got an error. The final part of the text was
not wrapped.
Please make a bug report and attach test project to it.
--
Best regards,
Maxim Ganetsky ma
Hi,
To reproduce the error, paste some dataset in a datamodule (or form), and
try double click to open the fields editor. The fields editor opens and
closes abruptly.
With right click in the component and using the "Edit Fields" option, the
fields editor open normaly.
Again, the error appears on
On Wed, Oct 6, 2010 at 3:24 PM, Sergei Gorelkin wrote:
> Marcos Douglas wrote:
>
>> Well, the problem was fixed.
>> Bug reporter: http://bugs.freepascal.org/view.php?id=16884
>> Solution: http://cia.vc/stats/project/fpc/.message/b8ef19
>>
> Unfortuately, not. Issue #16884 was a race condition whic
Sergei Gorelkin wrote:
Marcos Douglas wrote:
Well, the problem was fixed.
Bug reporter: http://bugs.freepascal.org/view.php?id=16884
Solution: http://cia.vc/stats/project/fpc/.message/b8ef19
Unfortuately, not. Issue #16884 was a race condition which was causing
the thread to start executing b
Marcos Douglas wrote:
Well, the problem was fixed.
Bug reporter: http://bugs.freepascal.org/view.php?id=16884
Solution: http://cia.vc/stats/project/fpc/.message/b8ef19
Unfortuately, not. Issue #16884 was a race condition which was causing the thread to start executing
before it was completely
On Wed, Oct 6, 2010 at 11:23 AM, Sergei Gorelkin
wrote:
> Tobias Giesen пишет:
>>
>> Hi,
>>
>> I think you shouldn't create suspended threads anyway. The Windows
>> API docs say that suspend/resume is only for debuggers. To synchronize
>> threads or to delay the starting of a thread you should use
On 10/6/2010 08:44, Felipe Monteiro de Carvalho wrote:
Did you download the latest code from svn? If not, then you should
always do that before proposing a patch.
who is this reply to? with no quote, it is like a lost spirit caught between the
physical and spiritual realms...
--
2010/10/6 Michael Schnell
> On 09/27/2010 01:29 PM, Henry Vermaak wrote:
>
>
> I'd consider disks which firmware can't handle power failure to be broken.
> Luckily this hasn't happened to me (yet, heh).
>
> I found a comment on this in another forum:
>
> >
> You can use i
--- El mié 6-oct-10, Graeme Geldenhuys escribió:
>
> Clearing the columns also looses the rowcount. Is this a
> bug too?
>
Initially it supposed to work that way so in this case grid's mental lapses are
not a bug, but I'm open to change it if people need it.
>
> I tried your suggested pat
Tobias Giesen пишет:
Hi,
I think you shouldn't create suspended threads anyway. The Windows
API docs say that suspend/resume is only for debuggers. To synchronize
threads or to delay the starting of a thread you should use events,
WaitForMultipleObjects etc.
Creating a suspended TThread is a d
Hi,
I think you shouldn't create suspended threads anyway. The Windows
API docs say that suspend/resume is only for debuggers. To synchronize
threads or to delay the starting of a thread you should use events,
WaitForMultipleObjects etc.
Cheers,
Tobias
--
__
Thanks, applied in rev16088
--
Felipe Monteiro de Carvalho
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
On 2010-10-06 14:44:25 +0200, Felipe Monteiro de Carvalho wrote:
> Did you download the latest code from svn? If not, then you should
> always do that before proposing a patch.
>
> --
> Felipe Monteiro de Carvalho
>
> --
Yes, as I allways do.
--
Leonardo M. Ramé
http://leonardorame.blogspot.c
Did you download the latest code from svn? If not, then you should
always do that before proposing a patch.
--
Felipe Monteiro de Carvalho
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/list
On 2010-10-06 09:31:32 -0300, Leonardo M. Ramé wrote:
> Hi, I'm trying to compile the ImageMagick FPC pakgage from
> /packages/imagemagick/examples on Ubuntu 10.04 and found it looks for the
> library
> libWand, but this library is now called libMagickWand. Does anyone
> tested if the package stil
Hi, I'm trying to compile the ImageMagick FPC pakgage from
/packages/imagemagick/examples on Ubuntu 10.04 and found it looks for the
library
libWand, but this library is now called libMagickWand. Does anyone
tested if the package still works with the new library?.
Thanks in advance,
--
Leonardo
Is there any length limit to WrapText function? I have used it to a 3
paragraphs text and have got an error. The final part of the text was
not wrapped.
Antônio
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepa
On 09/27/2010 01:29 PM, Henry Vermaak wrote:
I'd consider disks which firmware can't handle power failure to be
broken. Luckily this hasn't happened to me (yet, heh).
I found a comment on this in another forum:
>
You can use in
On 6 October 2010 10:29, Joost van der Sluis wrote:
> On Mon, 2010-09-20 at 20:15 +0100, Frank Church wrote:
> >
> > Are there any non trivial fcl-web demos I can download to try out?
>
> Does there exist something like a 'non-trivial website demo'? Most
> websites out there are trivial?
>
> May
On 6 October 2010 11:44, Graeme Geldenhuys wrote:
>
> Did you know you spelled "Free Pascal" wrong it the header banner? :-)
> Free Pascal is two words, not one.
This page too in the content (but now you got the header image correct).
http://www.lazarussupport.com/lazarus/Compiler?section
On 6 October 2010 11:29, Joost van der Sluis wrote:
>
> Maybe somewhat late, but maybe look at http://www.lazarussupport.com.
Did you know you spelled "Free Pascal" wrong it the header banner? :-)
Free Pascal is two words, not one.
--
Regards,
- Graeme -
__
On Mon, 2010-09-20 at 20:15 +0100, Frank Church wrote:
>
> Are there any non trivial fcl-web demos I can download to try out?
Does there exist something like a 'non-trivial website demo'? Most
websites out there are trivial?
Maybe somewhat late, but maybe look at http://www.lazarussupport.com.
45 matches
Mail list logo