Re: [Lazarus] WriteLn back to the GUI

2013-10-24 Thread Graeme Geldenhuys
On Wednesday 23/10/2013 at 19:41, ListMember wrote: As I wrote in my post: See the CRT unit. It does exactly that. You need maybe 20 lines of code to do as you want. If I used the CRT unit, would I need to add it to every single unit in the project that uses WriteLn? Please read the

Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-24 Thread Reinier Olislagers
On 24/10/2013 03:38, silvioprog wrote: 2013/10/23 Marco van de Voort mar...@stack.nl mailto:mar...@stack.nl On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: I'm trying to compila Lazarus in Linux Mint 15 (http://www.linuxmint.com/), but: Try adding

Re: [Lazarus] WriteLn back to the GUI

2013-10-24 Thread Sven Barth
Am 23.10.2013 23:08, schrieb ListMember: On 2013-10-23 22:36, Sven Barth wrote: I've attached my own version of EditText which I just adjusted. It works very similar to the original version I linked, but allows to use any TCustomEdit descendant (TMemo is one of them). Thank you. But, I am

Re: [Lazarus] WriteLn back to the GUI

2013-10-24 Thread Hans-Peter Diettrich
Sven Barth schrieb: Am 23.10.2013 23:08, schrieb ListMember: Did you read (and understand) what I wrote? You need to store the old value of Output and restore it afterwards. IMO it's not a good idea to change Input and Output on the fly. Problems can result e.g. from unprocessed characters

Re: [Lazarus] WriteLn back to the GUI

2013-10-24 Thread Sven Barth
Am 24.10.2013 09:58, schrieb Hans-Peter Diettrich: Sven Barth schrieb: Am 23.10.2013 23:08, schrieb ListMember: Did you read (and understand) what I wrote? You need to store the old value of Output and restore it afterwards. IMO it's not a good idea to change Input and Output on the fly.

Re: [Lazarus] WriteLn back to the GUI

2013-10-24 Thread Lukasz Sokol
On 23/10/13 20:16, ListMember wrote: On 2013-10-23 21:11, Marco van de Voort wrote: On Wed, Oct 23, 2013 at 09:59:04AM +0300, ListMember wrote: My ultimate goal, after finding where it is declared, is to locally modify that part of the sources so that (instead of writing to the console) it

[Lazarus] Source Editor toolbar not in action list

2013-10-24 Thread FreeMan
Hello, Lazarus Revision 43315 Source Editor toolbar items not in Actionlist I think. While sourcecode is edited mode, on toolbar, save and save all button is enable, I was added that buttons to source aditor toolbar too. When save source code, on IDE toolbar button been disable, but on Source

[Lazarus] LCL_Key_Handling wiki page incorrect?

2013-10-24 Thread Torsten Bonde Christiansen
Hi List. I was reading through the KeyDown section of the LCL_Key_Handling wiki page (http://wiki.lazarus.freepascal.org/LCL_Key_Handling) while debugging my code. The page state the the TCustomForm.IsShortCut is called during a LM_KEYDOWN/LM_SYSKEYDOWN event (through DoRemainingKeyDown),

Re: [Lazarus] Source Editor toolbar not in action list

2013-10-24 Thread zeljko
Citiram FreeMan freema...@delphiturkiye.com: Hello, Lazarus Revision 43315 Source Editor toolbar items not in Actionlist I think. While sourcecode is edited mode, on toolbar, save and save all button is enable, I was added that buttons to source aditor toolbar too. When save source code,

[Lazarus] How to use TRegExpr class (in synregexpr.pas)

2013-10-24 Thread FreeMan
Hello, Lazarus Revision 43315 TRegExpr class in /opt/lazarus/components/synedit/synregexpr.pas I need check IP address, my IP4OK function for this. If I sent variable result is false, but sent parameter like '127.0.0.1' result is true, what is wrong? EDT_IP: TMaskEdit; ..

Re: [Lazarus] How to use TRegExpr class (in synregexpr.pas)

2013-10-24 Thread Mark Morgan Lloyd
FreeMan wrote: Hello, Lazarus Revision 43315 TRegExpr class in /opt/lazarus/components/synedit/synregexpr.pas I need check IP address, my IP4OK function for this. If I sent variable result is false, but sent parameter like '127.0.0.1' result is true, what is wrong? EDT_IP: TMaskEdit;

Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-24 Thread silvioprog
2013/10/24 Sven Barth pascaldra...@googlemail.com Am 24.10.2013 03:39 schrieb silvioprog silviop...@gmail.com: 2013/10/23 Marco van de Voort mar...@stack.nl On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: I'm trying to compila Lazarus in Linux Mint 15 (

[Lazarus] [resulved] How to use TRegExpr class (in synregexpr.pas)

2013-10-24 Thread FreeMan
Yes Mark, you rigth. This code is working now, Problem was space char in EDT_IP.Text, it comes from format. This is normal, but at this time, why Trim function NOT DELETE space char ? is this bug ? var Q : String; Const WhiteSpace = [#0..' ']; function My_Trim(S : string): String;

Re: [Lazarus] [resulved] How to use TRegExpr class (in synregexpr.pas)

2013-10-24 Thread Reinier Olislagers
On 24/10/2013 16:15, FreeMan wrote: Yes Mark, you rigth. This code is working now, Problem was space char in EDT_IP.Text, it comes from format. This is normal, but at this time, why Trim function NOT DELETE space char ? is this bug ? http://bit.ly/jilew --

Re: [Lazarus] [resulved] How to use TRegExpr class (in synregexpr.pas)

2013-10-24 Thread Mark Morgan Lloyd
FreeMan wrote: Yes Mark, you rigth. This code is working now, Problem was space char in EDT_IP.Text, it comes from format. This is normal, but at this time, why Trim function NOT DELETE space char ? is this bug ? var Q : String;Const WhiteSpace = [#0..' ']; function My_Trim(S :

Re: [Lazarus] WriteLn back to the GUI

2013-10-24 Thread ListMember
On 2013-10-24 06:45, Hans-Peter Diettrich wrote: I'd suggest that you write an file driver first, to get familiar with the functions to implement. Play around using an file buffer, or with direct file I/O. Then it should be easier to replace the file by another (GUI) component, in the next

Re: [Lazarus] WriteLn back to the GUI

2013-10-24 Thread ListMember
On 2013-10-24 10:46, Sven Barth wrote: Did you read (and understand) what I wrote? I did, of course, read; but, apparently, I didn't understand it the way you meant. Sorry. You need to store the old value of Output and restore it afterwards. This means for your button click event: Got

Re: [Lazarus] WriteLn back to the GUI

2013-10-24 Thread Sven Barth
On 24.10.2013 20:14, ListMember wrote: On 2013-10-24 10:46, Sven Barth wrote: Did you read (and understand) what I wrote? I did, of course, read; but, apparently, I didn't understand it the way you meant. Sorry. You need to store the old value of Output and restore it afterwards. This

Re: [Lazarus] WriteLn back to the GUI

2013-10-24 Thread ListMember
On 2013-10-24 21:49, Sven Barth wrote: And if you'd now be so kind to explain please why you compile the compiler into your application? (I'm just curious ^^) Curiousity, really. And, there are several. First, I wanted to see if it's possible/hard to work with compiler sources under