Re: [Lazarus] Regex expressions

2010-09-07 Thread Dave Coventry
Hi Maik, On 8 September 2010 08:04, Maik Wojcieszak wrote: > I've tried some regex units implemented in pascal but they are > either not complete or buggy or slow. > The best I've found was PCRE which is kind of a standard in many > scripting languages. > I'm not sure if there is a lazarus wrappe

Re: [Lazarus] Regex expressions

2010-09-07 Thread Maik Wojcieszak
Dave, I've tried some regex units implemented in pascal but they are either not complete or buggy or slow. The best I've found was PCRE which is kind of a standard in many scripting languages. I'm not sure if there is a lazarus wrapper but I'm using it with delphi. http://www.renatomancuso.com/s

[Lazarus] Regex expressions

2010-09-07 Thread Dave Coventry
Hi, Is there a simple method of searching a string for a unicode substring and replacing it with the correct character? At this stage, I'm not really worried about the unicode itself but I have substrings within my string like '\U+00B0' which I'd like to replace with chr(176). Is there a simple

Re: [Lazarus] TStringList : how should it behave on Delimiter = ' ' ?

2010-09-07 Thread Vincent Snijders
2010/9/7 Lukasz Sokol : > Hi Group, > > How should the TStringList behave when > > Delimiter := ' '; > QuoteChar := '"'; > > ? > > On my > > Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64 > > when reading a line like this > > Sep  3 16:27:32 router_ip src="internal IP:46987" dst="external

Re: [Lazarus] String Grid MouseToCell seems inconsistent when deleted some columns

2010-09-07 Thread Lukasz Sokol
On 07/09/2010 16:16, Jesus Reyes wrote: > > > --- El mar 7-sep-10, Lukasz Sokol escribió: > >> De: Lukasz Sokol >> Asunto: Re: [Lazarus] String Grid MouseToCell seems inconsistent when >> deleted some columns >> A: "Lazarus mailing list" >> Fecha: martes, 7 de septiembre de 2010, 10:01 >> He

Re: [Lazarus] String Grid MouseToCell seems inconsistent when deleted some columns

2010-09-07 Thread Jesus Reyes
--- El mar 7-sep-10, Lukasz Sokol escribió: > De: Lukasz Sokol > Asunto: Re: [Lazarus] String Grid MouseToCell seems inconsistent when deleted > some columns > A: "Lazarus mailing list" > Fecha: martes, 7 de septiembre de 2010, 10:01 > Hello faber, > > On 07/09/2010 15:45, faber wrote: > [.

Re: [Lazarus] String Grid MouseToCell seems inconsistent when deleted some columns

2010-09-07 Thread Lukasz Sokol
Hello faber, On 07/09/2010 15:45, faber wrote: [...] > > try with StringGrid1.MouseToCell(ScreenToClient(Mouse.CursorPos)) Oh... yes that solved the issue. Sorry for the noise :) i was searching for the ScreenToClient, but $Deity knows why I was looking for it as procedure of the StringGrid itsel

Re: [Lazarus] String Grid MouseToCell seems inconsistent when deleted some columns

2010-09-07 Thread faber
2010/9/7 Lukasz Sokol : > procedure TForm1.StringGrid1Click(Sender: TObject); > var gridcell : TPoint; > begin > gridcell := StringGrid1.MouseToCell(Mouse.CursorPos); > > StringGrid1.Cells[gridcell.x,0] := IntToStr(gridcell.x); > {what text do you get in fixed row of the visible column you've ju

[Lazarus] TStringList : how should it behave on Delimiter = ' ' ?

2010-09-07 Thread Lukasz Sokol
Hi Group, How should the TStringList behave when Delimiter := ' '; QuoteChar := '"'; ? On my Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64 when reading a line like this Sep 3 16:27:32 router_ip src="internal IP:46987" dst="external_ip:64880" msg="Traffic Log" note="Traffic Log

[Lazarus] String Grid MouseToCell seems inconsistent when deleted some columns

2010-09-07 Thread Lukasz Sokol
Hi Group, would there be a problem with StringGrid on Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64 that is preventing MouseToCell from working correctly if some columns have been deleted ? (snippet) { put a StringGrid1 on the form } {have one row fixed FixedRows := 1} {hook this to

[Lazarus] TSynedit usage

2010-09-07 Thread Bogusław Brandys
hi I'm slowly investigating lazarus TSynedit component, but I cannot find where to put code repsonsible for reacting to Ctrl+Click on keyword.I need it to use as a pascal script sources editor and I'd like to implement similiar feature to Lazarus Ctrl+Click on keyword to jump to prototype or

Re: [Lazarus] How do I get the default path and filename for the user's HTML browser???

2010-09-07 Thread Sven Barth
Am 07.09.2010 09:19, schrieb Michael Van Canneyt: There is no failsafe way. It really depends on the user, distribution. My solution would be: - Let user select one - If none was selected, search a few of the default browsers in the PATH. Michael. While Michael's advice is valid you might w

Re: [Lazarus] How do I get the default path and filename for the user's HTML browser???

2010-09-07 Thread Michael Van Canneyt
There is no failsafe way. It really depends on the user, distribution. My solution would be: - Let user select one - If none was selected, search a few of the default browsers in the PATH. Michael. On Tue, 7 Sep 2010, Peter E Williams wrote: Hi All, I am writing a procedure called OpenHTML

[Lazarus] How do I get the default path and filename for the user's HTML browser???

2010-09-07 Thread Peter E Williams
Hi All, I am writing a procedure called OpenHTMLFile. It works fine with HTML_Browser_file (which is the command to run) set to 'firefox' on my Linux Ubuntu 10.04 system. My question is this... what do I need to change to make HTML_Browser_file default to the default application (path and filena