[Lazarus] Drawing memo text in DBGrid - tried but stuck

2011-09-16 Thread Reinier Olislagers
Hi all, I'm trying to draw text from DBF memo fields on a dbgrid instead of the standard (Memo). The memo fields contain text data that is probably not that long (about a couple of thousand characters max), which I'd like to display in a read-only dbgrid. I've come up with some code that: 1.

[Lazarus] Help needed with a SynEdit patch please - Tab char indicator

2011-09-16 Thread Graeme Geldenhuys
Hi, When you enable show special characters or show hidden characters (eg: spaces and tab characters), most editors place the tab character indicator exact where the tab character actually occurs in the text. The beginning of the tab width. Lazarus IDE place the tab character indicator at the

Re: [Lazarus] The color of special characters in the Source Editor

2011-09-16 Thread Martin
On 16/09/2011 01:02, Paul Ishenin wrote: 15.09.2011 20:03, Martin wrote: I probably fix it for comment, but comments only. Comments should stay comments. Space in a commect is not the same as a space in other parts of code. If I were you I would not implement it at all. The only missing

Re: [Lazarus] Help needed with a SynEdit patch please - Tab char indicator

2011-09-16 Thread Graeme Geldenhuys
I fixed the problem. Attached image is now how my tab characters are displayed. I also attached the new fixed synedit.pp patch file. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ attachment: fixed.pngIndex: synedit.pp

Re: [Lazarus] The color of special characters in the Source Editor

2011-09-16 Thread Graeme Geldenhuys
On 16/09/2011 09:52, Martin wrote: I myself used (past tense) to have that on all the time, for #9 detection. But then every space is a dot. So I set the space foreground color, near the background, and all the special chars are faded out. Only in comments and strings, it looks like hell.

Re: [Lazarus] The color of special characters in the Source Editor

2011-09-16 Thread Martin
On 16/09/2011 09:11, Graeme Geldenhuys wrote: On 16/09/2011 09:52, Martin wrote: I myself used (past tense) to have that on all the time, for #9 detection. But then every space is a dot. So I set the space foreground color, near the background, and all the special chars are faded out. Only in

Re: [Lazarus] Help needed with a SynEdit patch please - Tab char indicator

2011-09-16 Thread Graeme Geldenhuys
On 16/09/2011 10:22, Martin wrote: OpenOffice writer puts the symbol in the middle (centered) Notepad++ has a continues arrow over the whole tab eclipse show them at start syn (editor also based on SynEdit) puts symbol in the middle EditPad Pro - symbol at the beginning. Midnight

Re: [Lazarus] 68K

2011-09-16 Thread Michael Schnell
On 09/15/2011 09:59 PM, Sven Barth wrote: Some TVs are running on MIPS with Linux now... just as a sidenote (I personally own a TV with an ARM and a Linux :P ) I was very disappointed to find that the settop box from Deutsche Telekom I have uses WinCE :(. -Michael --

Re: [Lazarus] The color of special characters in the Source Editor

2011-09-16 Thread Graeme Geldenhuys
On 16/09/2011 10:27, Martin wrote: just delete the block, with no replacement. (the space is already copied, the block overwrites the space) Awesome, thanks for the tip. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Re: [Lazarus] Help needed with a SynEdit patch please - Tab char indicator

2011-09-16 Thread Martin
On 16/09/2011 09:54, Graeme Geldenhuys wrote: On 16/09/2011 10:22, Martin wrote: OpenOffice writer puts the symbol in the middle (centered) Notepad++ has a continues arrow over the whole tab eclipse show them at start syn (editor also based on SynEdit) puts symbol in the middle EditPad

[Lazarus] Synedit Gutter - current line number a different color

2011-09-16 Thread Graeme Geldenhuys
Hi, Attached is a screenshot of how my Lazarus editor now looks. I used to have the current line in the editor source code with a slightly dulled background color, but that interfered (made it hard to see) the Special Characters (tab characters) I now have enabled. I couldn't see an option for

Re: [Lazarus] Help needed with a SynEdit patch please - Tab char indicator

2011-09-16 Thread Graeme Geldenhuys
On 16/09/2011 11:03, Martin wrote: I put an option in synedit. Excellent, thanks. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list

Re: [Lazarus] Synedit Gutter - current line number a different color

2011-09-16 Thread Martin
On 16/09/2011 10:11, Graeme Geldenhuys wrote: Hi, Attached is a screenshot of how my Lazarus editor now looks. I used to have the current line in the editor source code with a slightly dulled background color, but that interfered (made it hard to see) the Special Characters (tab characters) I

Re: [Lazarus] 68K

2011-09-16 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 09/15/2011 09:59 PM, Sven Barth wrote: Some TVs are running on MIPS with Linux now... just as a sidenote (I personally own a TV with an ARM and a Linux :P ) I was very disappointed to find that the settop box from Deutsche Telekom I have uses WinCE :(. Fixing

Re: [Lazarus] SynEdit and autocomplete

2011-09-16 Thread Martin
On 16/09/2011 11:48, silvioprog wrote: Hi, I try to open the list of options for auto-complete with Ctrl+Space, but does not work, and after using Ctrl+Space need to type the letter twice, eg: 1. Try auto complete the word select; (the list does not appear) 2. Type s (of 's'elect), nothing

Re: [Lazarus] RE : RE : RE : Convert assembler to Pascal

2011-09-16 Thread Marco van de Voort
On Tue, Sep 13, 2011 at 05:42:48PM +0200, Ludo Brands wrote: {$asmmode intel} procedure XorMemPrim(var Mem1; const Mem2; Count : Cardinal); register;assembler; and the assembler routine works also in fpc. Or simply change to mode Delphi for delphi compat code? --

Re: [Lazarus] 68K

2011-09-16 Thread Marco van de Voort
On Thu, Sep 15, 2011 at 09:59:02PM +0200, Sven Barth wrote: It used to be fairly easy, since on mac fairs they gave them away for free. Easier than Sparc or Mips that never made consumer hardware. Some TVs are running on MIPS with Linux now... Yeah yeah, I got a Linksys wrt too :-)

Re: [Lazarus] Creating dbexport component: no icon

2011-09-16 Thread Vincent Snijders
2011/9/16 Reinier Olislagers reinierolislag...@gmail.com: Hi list, I'm trying to create a button/component for the new fpXMLXSDexport unit in FPC 2.6.x. What I did in the Lazarus\components\dbexport directory: 1. I've modified regdbexport.pp to include registering the TXMLXSDExporter

Re: [Lazarus] Creating dbexport component: no icon

2011-09-16 Thread Reinier Olislagers
On 16-9-2011 14:55, Vincent Snijders wrote: 2011/9/16 Reinier Olislagers: Hi list, I'm trying to create a button/component for the new fpXMLXSDexport unit in FPC 2.6.x. What I did in the Lazarus\components\dbexport directory: 1. I've modified regdbexport.pp to include registering the

Re: [Lazarus] Creating dbexport component: no icon

2011-09-16 Thread Vincent Snijders
2011/9/16 Reinier Olislagers reinierolislag...@gmail.com: Next question: this button/component will only work from FPC 2.6.x onwards (due to dependency on fpxmlxsdexport.pp). What is the best way to get this into Lazarus? Conditional compilation with FPCVER or upload it as a patch in Mantis

Re: [Lazarus] Creating dbexport component: no icon

2011-09-16 Thread Reinier Olislagers
On 16-9-2011 15:27, Vincent Snijders wrote: 2011/9/16 Reinier Olislagers reinierolislag...@gmail.com: Next question: this button/component will only work from FPC 2.6.x onwards (due to dependency on fpxmlxsdexport.pp). What is the best way to get this into Lazarus? Conditional compilation

Re: [Lazarus] Creating dbexport component: no icon

2011-09-16 Thread Vincent Snijders
2011/9/16 Reinier Olislagers reinierolislag...@gmail.com: On 16-9-2011 15:27, Vincent Snijders wrote: 2011/9/16 Reinier Olislagers reinierolislag...@gmail.com: Use conditional compilation in the sqldb package: I wanted to says: Use conditional compilation *like* in the sqldb package:

Re: [Lazarus] Creating dbexport component: no icon

2011-09-16 Thread Reinier Olislagers
On 16-9-2011 16:31, Vincent Snijders wrote: This XML dataset export is only available in fpc 2.7.1, not in 2.5.1, is it? Yes, it's available in 2.7.1 but it was put in before the 2.6.0 cutoff:

Re: [Lazarus] Creating dbexport component: no icon

2011-09-16 Thread Vincent Snijders
2011/9/16 Reinier Olislagers reinierolislag...@gmail.com: On 16-9-2011 16:31, Vincent Snijders wrote: This XML dataset export is only available in fpc 2.7.1, not in 2.5.1, is it? Yes, it's available in 2.7.1 but it was put in before the 2.6.0 cutoff:

Re: [Lazarus] The color of special characters in the Source Editor

2011-09-16 Thread Martin
On 15/09/2011 15:00, Graeme Geldenhuys wrote: On 15/09/2011 15:51, Martin wrote: --- I do like 1, for the problem at hand, spaces in comment may still be blue-ish (or whatever your setting, but faded to background +1 I like your option (1) as well. Comments will still look like comments -

Re: [Lazarus] SynEdit and gutter behaviour

2011-09-16 Thread Bart
On 9/15/11, Martin laza...@mfriebe.de wrote: The line number(for the point is one based, so add one. The X pos is byte based. You should know at which byte in the string (again 1-based) the desired text starts e.g line with index 3 (4t line on screen: Foo Bar Some Bar is Point(5, 4) to

Re: [Lazarus] Creating dbexport component: no icon

2011-09-16 Thread Reinier Olislagers
On 16-9-2011 18:25, Vincent Snijders wrote: What new compiler constants? Why new inequalite operators? {$IF FPCFULLVERSION 20500 }, as mentioned earlier would work ok, don't you think? Oops, you're right. Sorry, had overlooked that part. This comment seems not completely correct: +//

[Lazarus] Lazarus from SVN and MySQL 5.1

2011-09-16 Thread David Copeland
I recently noticed that FPC 2.4.4 is being offered with the Lazarus snapshots, up from 2.4.2. So I downloaded it and rebuilt Lazarus with it. When I rebuilt an application that uses a Tmysql50connection I now get a client version mismatch error when the app tries to open the connection. I am

Re: [Lazarus] SynEdit and autocomplete

2011-09-16 Thread silvioprog
2011/9/16 Martin laza...@mfriebe.de: On 16/09/2011 11:48, silvioprog wrote: Hi, I try to open the list of options for auto-complete with Ctrl+Space, but does not work, and after using Ctrl+Space need to type the letter twice, eg: 1. Try auto complete the word select; (the list does not

Re: [Lazarus] SynEdit and autocomplete

2011-09-16 Thread Flávio Etrusco
Syn AutoComplete is not the drop down feature known from the IDE please have a look in the example folder OK, thx. I'll use a SynEdit ported from Delphi to Lazarus. It is a copy that a friend (Etrusco) will provide me and that is compatible with official SynEdit of Delphi. ;) The

Re: [Lazarus] SynEdit and autocomplete

2011-09-16 Thread silvioprog
Em 16 de setembro de 2011 19:00, Flávio Etrusco flavio.etru...@gmail.com escreveu: Syn AutoComplete is not the drop down feature known from the IDE please have a look in the example folder OK, thx. I'll use a SynEdit ported from Delphi to Lazarus. It is a copy that a friend (Etrusco) will

Re: [Lazarus] SynEdit and autocomplete

2011-09-16 Thread Martin
On 16/09/2011 22:15, silvioprog wrote: 2011/9/16 Martinlaza...@mfriebe.de: Syn AutoComplete is not the drop down feature known from the IDE please have a look in the example folder OK, thx. I'll use a SynEdit ported from Delphi to Lazarus. It is a copy that a friend (Etrusco) will provide

Re: [Lazarus] SynEdit and autocomplete

2011-09-16 Thread Martin
On 16/09/2011 23:00, Flávio Etrusco wrote: Syn AutoComplete is not the drop down feature known from the IDE please have a look in the example folder OK, thx. I'll use a SynEdit ported from Delphi to Lazarus. It is a copy that a friend (Etrusco) will provide me and that is compatible with