Re: [Lazarus] OpenBSD 5.8 64bit - lazarus - exception

2015-10-28 Thread Tomaž Žveglič
On 28.10.2015 13:42, Zeljko wrote: On 10/28/2015 01:36 PM, Tomaž Žveglič wrote: I did as you suggest and I also did similar changes to FontIsMonoSpaceFont. Ok, seem that there's no more help from trial error. I'll check it when I install OpenBSD in virtual machine. zeljko --

Re: [Lazarus] OpenBSD 5.8 64bit - lazarus - exception

2015-10-28 Thread Zeljko
On 10/28/2015 01:48 PM, Tomaž Žveglič wrote: Thanks Željko for your help. I owe you beer. Do you have bitcoin address? No, but thanks for good will :) zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Zeljko
On 10/28/2015 01:06 PM, Gabor Boros wrote: 2015.10.28. 11:51 keltezéssel, Zeljko írta: Ok, then go to QtWSForms, TQtWSCustomForms.UpdateWindowFlags and comment if csNoStdEvents . leave only Flags := Flags or QtX11BypassWindowManagerHint; in this case form will not take focus in any case,

Re: [Lazarus] OpenBSD 5.8 64bit - lazarus - exception

2015-10-28 Thread Tomaž Žveglič
On 28.10.2015 11:41, Zeljko wrote: ... Seem that nil params kills openbsd 64. Go to FontIsDoubleByteCharsFont() in gtk2proc.inc and add dummy integers to null params. var SingleCharLen, DoubleCharLen, DummyCharHeight {added}: integer; begin

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Gabor Boros
2015.10.28. 11:51 keltezéssel, Zeljko írta: Ok, then go to QtWSForms, TQtWSCustomForms.UpdateWindowFlags and comment if csNoStdEvents . leave only Flags := Flags or QtX11BypassWindowManagerHint; in this case form will not take focus in any case, but must see what happens with parenting

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Gabor Boros
2015.10.28. 13:06 keltezéssel, Gabor Boros írta: with out without with or without -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Zeljko
On 10/28/2015 01:06 PM, Gabor Boros wrote: 2015.10.28. 11:51 keltezéssel, Zeljko írta: Ok, then go to QtWSForms, TQtWSCustomForms.UpdateWindowFlags and comment if csNoStdEvents . leave only Flags := Flags or QtX11BypassWindowManagerHint; in this case form will not take focus in any case,

Re: [Lazarus] OpenBSD 5.8 64bit - lazarus - exception

2015-10-28 Thread Zeljko
On 10/28/2015 01:36 PM, Tomaž Žveglič wrote: I did as you suggest and I also did similar changes to FontIsMonoSpaceFont. Ok, seem that there's no more help from trial error. I'll check it when I install OpenBSD in virtual machine. zeljko --

Re: [Lazarus] TSynMemo + TSynXMLSyn: How format a XML after load it?

2015-10-28 Thread Marcos Douglas
On Wed, Oct 28, 2015 at 10:32 AM, Mattias Gaertner wrote: > On Wed, 28 Oct 2015 09:43:23 -0200 > Marcos Douglas wrote: > >> [...] >> ...automatically, by set a property or use a method. >> Is it possible? > > You have to define what to do with text

Re: [Lazarus] TSynMemo + TSynXMLSyn: How format a XML after load it?

2015-10-28 Thread Mattias Gaertner
On Wed, 28 Oct 2015 10:57:35 -0200 Marcos Douglas wrote: >[...] > You suggest use fpc xml writer to: > 1- load the original XML without spaces > 2- save the XML after with automatically spaces > > Like that? Yes. > I don't know the fpc xml write yet, so I'm asking how use

Re: [Lazarus] TSynMemo + TSynXMLSyn: How format a XML after load it?

2015-10-28 Thread Mattias Gaertner
On Wed, 28 Oct 2015 09:43:23 -0200 Marcos Douglas wrote: > On Wed, Oct 28, 2015 at 6:48 AM, Mattias Gaertner > wrote: > > On Wed, 28 Oct 2015 01:17:23 -0200 > > Marcos Douglas wrote: > > > >> Hi, > >> > >> I'm using TSynMemo and

Re: [Lazarus] TSynMemo + TSynXMLSyn: How format a XML after load it?

2015-10-28 Thread Marcos Douglas
On Wed, Oct 28, 2015 at 6:48 AM, Mattias Gaertner wrote: > On Wed, 28 Oct 2015 01:17:23 -0200 > Marcos Douglas wrote: > >> Hi, >> >> I'm using TSynMemo and TSynXMLSyn. >> How format a XML after load it? > > Please define "format". Ok, sorry. I meant

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Zeljko
On 10/28/2015 01:06 PM, Gabor Boros wrote: 2015.10.28. 11:51 keltezéssel, Zeljko írta: Ok, then go to QtWSForms, TQtWSCustomForms.UpdateWindowFlags and comment if csNoStdEvents . leave only Flags := Flags or QtX11BypassWindowManagerHint; in this case form will not take focus in any case,

Re: [Lazarus] fpcdoc 2.6.4 does not parse "otherwise" clause of "case" statement (though the compiler does.)

2015-10-28 Thread AlanCanon
Thanks, I'll go to the proper channel, and patch it myself if I can. I'm working for Richard Dawkins (resuscitating his "Blind Watchmaker" software so that it can run on modern computers) and I'm highly motivatedif I can contribute to the function of the Free Pascal project I will be very

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Zeljko
On 10/28/2015 03:05 PM, Gabor Boros wrote: 2015.10.28. 14:12 keltezéssel, Zeljko írta: Please check with attached patch (same name as previous one). Seem that our C bindings does not have all attributes translated since they did not exist in Qt-4.5, but sometime later. I've added strict X11

[Lazarus] fpcdoc 2.6.4 does not parse "otherwise" clause of "case" statement (though the compiler does.)

2015-10-28 Thread AlanCanon
It appears that FPDoc Version 2.6.4 [2015/08/14] doesn't support the "otherwise" clause in Pascal "case" statements (though the compiler supports "otherwise" just fine.) I'm a self-starter, and I'd be motivated to patch FPDoc myself, if it's under active development.program_brand_new.pas Lines

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Gabor Boros
2015.10.28. 15:25 keltezéssel, Zeljko írta: Report as a bug in the tracker? Yes please, attach there example and my latest patch :) Done. http://bugs.freepascal.org/view.php?id=28922 A previous fix... Please add commit 50139 to merge requests for fixes_1_4. Done. I see it. Thank you!

Re: [Lazarus] fpcdoc 2.6.4 does not parse "otherwise" clause of "case" statement (though the compiler does.)

2015-10-28 Thread Mattias Gaertner
On Wed, 28 Oct 2015 07:16:13 -0700 (MST) AlanCanon wrote: > It appears that FPDoc Version 2.6.4 [2015/08/14] doesn't support the > "otherwise" clause in Pascal "case" statements (though the compiler supports > "otherwise" just fine.) FPDoc is maintained by the FPC

Re: [Lazarus] TSynMemo + TSynXMLSyn: How format a XML after load it?

2015-10-28 Thread Anthony Walter
uses Codebot.Text.Xml; function PrettyXml(const Xml: string): string; var D: IDocument; begin D := DocumentCreate; D.Xml := Xml; D.Beautify; Result := D.Xml; end; { TForm1 } procedure TForm1.Button1Click(Sender: TObject); begin Memo1.Text := PrettyXml(Memo1.Text); end; Result:

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Gabor Boros
2015.10.28. 14:12 keltezéssel, Zeljko írta: Please check with attached patch (same name as previous one). Seem that our C bindings does not have all attributes translated since they did not exist in Qt-4.5, but sometime later. I've added strict X11 attribute and now it does not steal activation

Re: [Lazarus] TSynMemo + TSynXMLSyn: How format a XML after load it?

2015-10-28 Thread Marcos Douglas
On Wed, Oct 28, 2015 at 12:37 PM, Anthony Walter wrote: > uses > Codebot.Text.Xml; > > function PrettyXml(const Xml: string): string; > [...] Thank you! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] TSynMemo + TSynXMLSyn: How format a XML after load it?

2015-10-28 Thread Anthony Walter
Marcos, here are a few notes when working with Codebot.Text.Xml: * You can use IDocument.Load/Save to load and save Xml to and from files. * If the Xml text is in an invalid state, the IDocument will be empty. * Attempts to read an empty IDocument Text or Xml property return an empty Xml

Re: [Lazarus] is scrypt available?

2015-10-28 Thread wkitty42
On 10/28/2015 06:33 AM, taazz wrote: On 27/10/2015 16:18 μμ, wkitt...@windstream.net wrote: On 10/26/2015 11:59 PM, taazz wrote: On 26/10/2015 22:56 μμ, wkitt...@windstream.net wrote: On 10/26/2015 03:31 PM, mic...@gmail.com wrote: Am Monday 26 October 2015 20:13:49 schrieb

Re: [Lazarus] How write a proper Type declaration with procedures?

2015-10-28 Thread Anthony Walter
type TURLTable = class(TStringlist) private FTable: LinkArray; function GetTable: LinkArray; public procedure Insert(const s: string); property Table: LinkArray read GetTable; end; function TURLTable.GetTable: LinkArray; begin Result := FTable; end; procedure

Re: [Lazarus] OpenBSD 5.8 64bit - lazarus - exception

2015-10-28 Thread Zeljko
#6 0x00a1bae4 in CREATEFORMCONTENTS (AFORM=0x2c31ef530, FORMWIDGET=0x2887b8500, AWIDGETINFO=0x282a0bb20) at gtk2proc.inc:7485 ah, maybe lineinfo is invalid (not like in trunk), so pls. in that function of gtk2proc add gtk_adjustment_new where crash occurs...there are 2 places

[Lazarus] Easily Create a Screen Magnifier

2015-10-28 Thread Anthony Walter
Tonight I quickly created a simple cross platform screen magnifier utility. http://www.getlazarus.org/videos/magnify/ I don't know if any of you like to examine your pixels, but I was tweaking my CPU meter graphing desktop widget when I wanted a faster way to check my line stippling patterns

Re: [Lazarus] How write a proper Type declaration with procedures?

2015-10-28 Thread leledumbo
> When I come to write the implementation part of the unit, what's the syntax to refer to the property Table? If I use > ... > I get the error 'No member is provided to access property.' That should be correct. It's something else that bugs. At least the following compiles for me: unit Simple;

Re: [Lazarus] OpenBSD 5.8 64bit - lazarus - exception

2015-10-28 Thread Zeljko
#6 0x00a1bae4 in CREATEFORMCONTENTS (AFORM=0x2c31ef530, FORMWIDGET=0x2887b8500, AWIDGETINFO=0x282a0bb20) at gtk2proc.inc:7485 huh ?!? There's simple pointer assignment at this point FormWidget := Result ... definitelly must install openbsd and see what's up. zeljko --

Re: [Lazarus] Easily Create a Screen Magnifier

2015-10-28 Thread Aradeonas
Hi Anthony, Nice one and I want to check it but the last version of CodeBot will not compile in windows and also it seems you forget Quality in implementation of surface copy rext > procedure CopyTo(const Source: TRectF; Surface: ISurface; > const Dest: TRectF; Alpha: Byte = $FF; Quality:

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Zeljko
On 10/27/2015 05:07 PM, Gabor Boros wrote: 2015.10.27. 16:16 keltezéssel, Zeljko írta: csNoFocus does not work for Qt ? Can you provide example ? For Qt: before example try to include qt4 and qtwidgets into your unit and then in CreateWnd of your custom form (or after form handle is created)

Re: [Lazarus] How to create a non focusable DBGrid?

2015-10-28 Thread Gabor Boros
2015.10.27. 19:09 keltezéssel, Gabor Boros írta: Hi All, I want a non focusable DBGrid on a non focusable form. (I asked form thing earlier in "How to create a non focusable form?" thread.) I tried to solve the task with csNoFocus but not working. See the attached example. If click on the

Re: [Lazarus] is scrypt available?

2015-10-28 Thread Mark Morgan Lloyd
wkitt...@windstream.net wrote: the above link is the license URL... the stuff about patents is off putting to say the least... Apologies for chopping the bulk of that message, but it's coming over unformatted. The patents issue relating to zlib etc. is way out of date, see

Re: [Lazarus] is scrypt available?

2015-10-28 Thread wkitty42
On 10/28/2015 01:00 PM, Mark Morgan Lloyd wrote: wkitt...@windstream.net wrote: the above link is the license URL... the stuff about patents is off putting to say the least... Apologies for chopping the bulk of that message, but it's coming over unformatted. no problem... i do take steps

Re: [Lazarus] is scrypt available?

2015-10-28 Thread taazz
On 28/10/2015 17:29 μμ, wkitt...@windstream.net wrote: On 10/28/2015 06:33 AM, taazz wrote: On 27/10/2015 16:18 μμ, wkitt...@windstream.net wrote: On 10/26/2015 11:59 PM, taazz wrote: On 26/10/2015 22:56 μμ, wkitt...@windstream.net wrote: On 10/26/2015 03:31 PM, mic...@gmail.com wrote: Am

Re: [Lazarus] is scrypt available?

2015-10-28 Thread Mark Morgan Lloyd
wkitt...@windstream.net wrote: On 10/28/2015 01:00 PM, Mark Morgan Lloyd wrote: wkitt...@windstream.net wrote: the above link is the license URL... the stuff about patents is off putting to say the least... Apologies for chopping the bulk of that message, but it's coming over unformatted.

Re: [Lazarus] How write a proper Type declaration with procedures?

2015-10-28 Thread Joe Shepherd
Thank you both - another case of not seeing the wood for the trees.   Joe       -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] is scrypt available?

2015-10-28 Thread wkitty42
On 10/28/2015 03:32 PM, Mark Morgan Lloyd wrote: wkitt...@windstream.net wrote: On 10/28/2015 01:00 PM, Mark Morgan Lloyd wrote: wkitt...@windstream.net wrote: the above link is the license URL... the stuff about patents is off putting to say the least... Apologies for chopping the bulk of

[Lazarus] Linux Window Manager Enhancements

2015-10-28 Thread Anthony Walter
Does anyone have experience or interest in enhancing window management support for Linux with Lazarus? I was reading up on the window management systems for Linux like Compiz, KWin, Xcfe and found they and many other support a common protocol for doing things like: * altering window z-order *

Re: [Lazarus] is scrypt available?

2015-10-28 Thread taazz
On 28/10/2015 23:02 μμ, wkitt...@windstream.net wrote: On 10/28/2015 03:32 PM, Mark Morgan Lloyd wrote: wkitt...@windstream.net wrote: On 10/28/2015 01:00 PM, Mark Morgan Lloyd wrote: wkitt...@windstream.net wrote: the above link is the license URL... the stuff about patents is off putting

[Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

2015-10-28 Thread Michael Ring
I today realized that current trunk does not work anymore after Rev 50151, Lazarus starts and when I load a project I get a Range Check Error and after this I cannot open source files. Is this a known issue? Michael -- ___ Lazarus mailing list

Re: [Lazarus] Linux Window Manager Enhancements

2015-10-28 Thread Anthony Walter
Actually XLib does provide control over layering windows, input focus, z-order, virtual desktops. It's the window manager (KWin, Compiz, Metacity, IceWM, and so on) which handles this. As such, with some tookits and window manager combinations it's not possible to do certain things without

Re: [Lazarus] Linux Window Manager Enhancements

2015-10-28 Thread Anthony Walter
Actually XLib does NOT provide control over layering windows, input focus, z-order, virtual desktops. It's the window manager (KWin, Compiz, Metacity, IceWM, and so on) which handles this. As such, with some tookits and window manager combinations it's not possible to do certain things without

Re: [Lazarus] TSynMemo + TSynXMLSyn: How format a XML after load it?

2015-10-28 Thread Mattias Gaertner
On Wed, 28 Oct 2015 01:17:23 -0200 Marcos Douglas wrote: > Hi, > > I'm using TSynMemo and TSynXMLSyn. > How format a XML after load it? Please define "format". Mattias -- ___ Lazarus mailing list

Re: [Lazarus] OpenBSD 5.8 64bit - lazarus - exception

2015-10-28 Thread Tomaž Žveglič
On 28.10.2015 8:22, Zeljko wrote: #6 0x00a1bae4 in CREATEFORMCONTENTS (AFORM=0x2c31ef530, FORMWIDGET=0x2887b8500, AWIDGETINFO=0x282a0bb20) at gtk2proc.inc:7485 ah, maybe lineinfo is invalid (not like in trunk), so pls. in that function of gtk2proc add gtk_adjustment_new where

Re: [Lazarus] is scrypt available?

2015-10-28 Thread taazz
On 27/10/2015 16:18 μμ, wkitt...@windstream.net wrote: On 10/26/2015 11:59 PM, taazz wrote: On 26/10/2015 22:56 μμ, wkitt...@windstream.net wrote: On 10/26/2015 03:31 PM, mic...@gmail.com wrote: Am Monday 26 October 2015 20:13:49 schrieb wkitt...@windstream.net: scrypt

Re: [Lazarus] OpenBSD 5.8 64bit - lazarus - exception

2015-10-28 Thread Zeljko
On 10/28/2015 11:28 AM, Tomaž Žveglič wrote: at /usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c:1083 #1 0x000253822306 in pango_fc_font_map_load_fontset () from /usr/local/lib/libpangoft2-1.0.so.3600.0 #2 0x0002498afb7b in itemize_state_process_run ()

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Gabor Boros
2015.10.28. 10:59 keltezéssel, Zeljko írta: Please test with attached patch and give feedback. Note that this patch is tested under Qt X11 only. zeljko With the original example works but... Modified the example... procedure TForm1.Button1Click(Sender: TObject); var MyForm:TMyForm;

Re: [Lazarus] How to create a non focusable form?

2015-10-28 Thread Zeljko
On 10/28/2015 11:43 AM, Gabor Boros wrote: 2015.10.28. 10:59 keltezéssel, Zeljko írta: Please test with attached patch and give feedback. Note that this patch is tested under Qt X11 only. zeljko With the original example works but... Modified the example... procedure