Re: [Lazarus] (Source) in hint boxes

2014-01-08 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: Possibly CommentStr:=ExtractCommentContent(CommentCode.Source,CommentStart, NestedComments,true,true,true); if CommentStr '' then Result:=Result+'span class=comment'+TextToHTML(CommentStr) +'

Re: [Lazarus] Lazarus Release Candidate 1 of 1.2

2014-01-08 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: == Why should everybody (including you) test the release candidate? == I've just compiled 1.2 RC1 for GTK2 on a clean x86 Linux system using 2.6.2, running an older version of Debian (lenny). I notice that the icons on the toolbar don't appear until either the

Re: [Lazarus] Optimize DBGrid speed

2014-01-08 Thread Petr Kristan
On Mon, Jan 06, 2014 at 03:21:56PM +0200, Juha Manninen wrote: On Mon, Jan 6, 2014 at 2:29 PM, Petr Kristan petr.kris...@epos.cz wrote: I'am trying to minimize whole DBGrid redraw. Where I can discuss my steps to avoid my pointless work. Most of code what I plan to change was commited by

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-08 Thread Michael Schnell
On 01/07/2014 06:11 PM, Mark Morgan Lloyd wrote: IMHO, the Pascal way of handling such task is using a thread. That's in the main code, not a background thread, and I have good reasons for wanting to do it like that. OK. There are decent reasons in certain projects. But Generally the

Re: [Lazarus] Is there a separate mailing list for Lazarus developers?

2014-01-08 Thread Lukasz Sokol
On 07/01/14 23:16, Juha Manninen wrote: On Tue, Jan 7, 2014 at 11:12 AM, Lukasz Sokol el.es...@gmail.com wrote: ...well here I disagree - go see [briefly] https://lwn.net - (one of) their editors (semi)regularly posts interesting topics dug out on lkml. That's 1000s% more press coverage

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-08 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 01/07/2014 06:11 PM, Mark Morgan Lloyd wrote: IMHO, the Pascal way of handling such task is using a thread. That's in the main code, not a background thread, and I have good reasons for wanting to do it like that. OK. There are decent reasons in certain projects.

Re: [Lazarus] Optimize DBGrid speed

2014-01-08 Thread Martin Frb
On 08/01/2014 08:39, Petr Kristan wrote: On Mon, Jan 06, 2014 at 03:21:56PM +0200, Juha Manninen wrote: The choices are this list or private mails with Jesus (jesus...@gmail.com). It depends on how interesting the discussion is for other people. (See the related thread about private

Re: [Lazarus] Using Lazarus for non-graphical apps

2014-01-08 Thread Michael Schnell
So this seems to be a project that can be done in a no-GUI way by manually calling *CheckSynchronize* and implementing *WakeMainThread*, so that the event queue can be managed and feed the queue by TThread.Synchronize and/or TThread.Queue. Let us know when you get it working. -Michael --

Re: [Lazarus] Optimize DBGrid speed

2014-01-08 Thread Hans-Peter Diettrich
Petr Kristan schrieb: In the beginning of Grid paint is Canvas.GetClipRect called to obtain area which wee must redraw. This function directly calls WidgetSet.GetClipBox. I find out difference betwen Win32 and gtk2 bahaviour of this func. In gtk2 TGtk2WidgetSet.GetClipBox returns previously

Re: [Lazarus] Optimize DBGrid speed

2014-01-08 Thread Petr Kristan
On Wed, Jan 08, 2014 at 02:35:08PM +0100, Hans-Peter Diettrich wrote: Petr Kristan schrieb: In the beginning of Grid paint is Canvas.GetClipRect called to obtain area which wee must redraw. This function directly calls WidgetSet.GetClipBox. I find out difference betwen Win32 and gtk2

Re: [Lazarus] Getting and setting the x numbered word in a sentence

2014-01-08 Thread John Landmesser
On 07.01.2014 19:04, Richard Mace wrote: Hi, Is there an existing routine in Lazarus that will get and set effectively the x numbered word in a sentence without actually knowing what the actual word is? E.g with the string the cat sat on the mat You could say replace word 3 with string stood

Re: [Lazarus] Optimize DBGrid speed (Maybe win-widgetset paint specific)

2014-01-08 Thread Martin Frb
On 08/01/2014 16:55, Petr Kristan wrote: On Wed, Jan 08, 2014 at 02:35:08PM +0100, Hans-Peter Diettrich wrote: Petr Kristan schrieb: In the beginning of Grid paint is Canvas.GetClipRect Have you checked if it applies to other grids too? If it is generic then mailing with the subject dbgrid

Re: [Lazarus] Optimize DBGrid speed

2014-01-08 Thread Jesus Reyes
El Miércoles, 8 de enero, 2014 2:41:07, Petr Kristan petr.kris...@epos.cz escribió: On Mon, Jan 06, 2014 at 03:21:56PM +0200, Juha Manninen wrote: On Mon, Jan 6, 2014 at 2:29 PM, Petr Kristan petr.kris...@epos.cz wrote: I'am trying to minimize whole DBGrid redraw. Where I can discuss my

Re: [Lazarus] Optimize DBGrid speed

2014-01-08 Thread Jesus Reyes
I'm sorry, I seldom check the gmail account, now I checked and there is your msg. If somebody want to write me, please use jesusrmx at yahoo.com Thanks. Jesus Reyes A.   Oops, sorry again. It is yahoo.com.mx Jesus Reyes A. -- ___