Re: [Lazarus] How to find position in TMemo.lines

2008-04-23 Thread Felipe Monteiro de Carvalho
Could you post a bug report? http://wiki.lazarus.freepascal.org/How_do_I_create_a_bug_report -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] How to find position in TMemo.lines

2008-04-23 Thread Jon Foster
I'm using the default GTK widgets.It would seem to me that the widget has to already be aware of this information. Is there some way to get it to give it up? I'm ignorant of the interactions between GTK and Pascal or even how GTK functions. It would take me considerable time to trace through th

Re: [Lazarus] How to find position in TMemo.lines

2008-04-23 Thread Jon Foster
Henry Vermaak wrote: > On 16/04/2008, Jon Foster <[EMAIL PROTECTED]> wrote: > >> I'm trying to determine where the which line in a TMemo the cursor is >> on. [...] > err, this is probably a hack, but you can use pos(lineending, > memo.lines.text) in a loop to count how many newlines before you

Re: [Lazarus] How to find position in TMemo.lines

2008-04-16 Thread Henry Vermaak
On 16/04/2008, Jon Foster <[EMAIL PROTECTED]> wrote: > I'm trying to determine where the which line in a TMemo the cursor is > on. In Delphi I could use CaretPos. I didn't find anything in the > documentation for TMemo that indicated there was any way to do this. Is > there some way to determine

Re: [Lazarus] How to find position in TMemo.lines

2008-04-16 Thread Felipe Monteiro de Carvalho
also: it's declared in TCustomMemo in delphi -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] How to find position in TMemo.lines

2008-04-16 Thread Felipe Monteiro de Carvalho
You can submit a bug report asking for CaretPos to be implemented. In delphi it's a public property declared like this: property CaretPos: TPoint; Which widgetset are you using? -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.