Re: [Lazarus] Lazarus, Jedi etc.

2013-07-18 Thread Reimar Grabowski
On Wed, 17 Jul 2013 11:17:29 +0200
Reinier Olislagers reinierolislag...@gmail.com wrote:

 Regardless, I don't think prolonging this thread is very useful.
+1

R. 

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Firefox OS

2013-07-18 Thread Reimar Grabowski
On Wed, 17 Jul 2013 09:44:35 +0200
Sven Barth pascaldra...@googlemail.com wrote:

  On Tue, 16 Jul 2013 19:19:34 +
  Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote:

  Yes, but asm.js is usually used as an intermediate language akin to 
  Java bytecodes. cf Emscripten etc.
 
 Nevertheless you are free to call normal JS code without problems. 
 asm.js is a subset of JS after all. How do you think the emscripten 
 libraries are implemented?
 asm.js can run on any JS interpreter that supports a certain JS 
 standard. The only difference is that interpreters with special support 
 for asm.js can optimize that code more than usual JS code.
 Also CPUs don't know strings either, nevertheless you can see them on 
 your screen. It's all about interpreting the memory in the correct way 
 and writing to the correct location.

You ruined my fun, Sven. Shame on you.
That's what I wanted the very polite Mark to find out for himself. All hints 
were there.
And now you just told him how the 'magic' works. :(
At least this thread can hopefully die now.

R.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Memo for touchscreen

2013-07-18 Thread Koenraad Lelong

Hi,

For a touchscreen-application  (so no real keyboard) I need something 
like a memo.
I first tried a memo, but how do I enter text at the caret ? And the 
caretpos is readonly.
Next I tried synMemo, but if I move the caret, the caret disappears. How 
can I show it ?

How do I send a BackSpace, Delete ?
How do I hide the rightedge of the synMemo ? Just set it to the 
backgroundcolor ?


Is there a better component ?

B.T.W. it will run on linux.

Regards,

Koenraad Lelong.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus, Jedi etc.

2013-07-18 Thread Kenneth Cochran
On Thu, Jul 18, 2013 at 6:23 AM, Reimar Grabowski reimg...@web.de wrote:

 On Wed, 17 Jul 2013 11:17:29 +0200
 Reinier Olislagers reinierolislag...@gmail.com wrote:

  Regardless, I don't think prolonging this thread is very useful.
 +1


I invoke Godwin's law.

You're all a bunch of Hilter lovin' Nazis.

There, that should kill the thread.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus, Jedi etc.

2013-07-18 Thread Paulo Costa

On 18/07/2013 14:31, Kenneth Cochran wrote:

On Thu, Jul 18, 2013 at 6:23 AM, Reimar Grabowski reimg...@web.de
mailto:reimg...@web.de wrote:

On Wed, 17 Jul 2013 11:17:29 +0200
Reinier Olislagers reinierolislag...@gmail.com
mailto:reinierolislag...@gmail.com wrote:

  Regardless, I don't think prolonging this thread is very useful.
+1


I invoke Godwin's law.

You're all a bunch of Hilter lovin' Nazis.

There, that should kill the thread.


Unfortunately, no...

From wikipedia:
http://en.wikipedia.org/wiki/Godwin%27s_law

It is considered poor form to raise such a comparison arbitrarily with 
the motive of ending the thread. There is a widely recognized corollary 
that any such ulterior-motive invocation of Godwin's law will be 
unsuccessful.[8]


I apologize for going so much off topic,

Paulo Costa



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Memo for touchscreen

2013-07-18 Thread Kostas Michalopoulos
AFAIK this depends on the widgetset and OS configuration. In Windows 7 and
8 (desktop) for example you get a small icon/button at the bottom right of
side of the screen that shows a virtual keyboard you can use to type
stuff.


On Thu, Jul 18, 2013 at 1:54 PM, Koenraad Lelong
lazar...@de-brouwerij.bewrote:

 Hi,

 For a touchscreen-application  (so no real keyboard) I need something like
 a memo.
 I first tried a memo, but how do I enter text at the caret ? And the
 caretpos is readonly.
 Next I tried synMemo, but if I move the caret, the caret disappears. How
 can I show it ?
 How do I send a BackSpace, Delete ?
 How do I hide the rightedge of the synMemo ? Just set it to the
 backgroundcolor ?

 Is there a better component ?

 B.T.W. it will run on linux.

 Regards,

 Koenraad Lelong.

 --
 __**_
 Lazarus mailing list
 Lazarus@lists.lazarus.**freepascal.orgLazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarushttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Memo for touchscreen

2013-07-18 Thread waldo kitty

On 7/18/2013 07:54, Koenraad Lelong wrote:

Hi,

For a touchscreen-application (so no real keyboard) I need something like a 
memo.
I first tried a memo, but how do I enter text at the caret ? And the caretpos is
readonly.
Next I tried synMemo, but if I move the caret, the caret disappears. How can I
show it ?
How do I send a BackSpace, Delete ?
How do I hide the rightedge of the synMemo ? Just set it to the 
backgroundcolor ?

Is there a better component ?

B.T.W. it will run on linux.


whatever you choose, you appear to need at least some sort of on-screen keyboard 
component like some (so-called) smartphones have...


--
NOTE: No off-list assistance is given without prior approval.
  Please keep mailing list traffic on the list unless
  private contact is specifically requested and granted.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Problem with TSQLScript

2013-07-18 Thread Paul

Hello,

I have problem with TSQLScript (?)
Script looks like that

SET TERM ^ ;
CREATE PROCEDURE GET_USER_PRIVILEGES (
USER_ACCOUNT VARCHAR(10))
RETURNS (
RESULT CHAR(1))
AS
BEGIN
 FOR
 SELECT DISTINCT RDB$PRIVILEGE
 FROM RDB$USER_PRIVILEGES
 WHERE (RDB$USER = :USER_ACCOUNT)
 INTO :RESULT
 DO
 BEGIN
  SUSPEND;
 END
END
^
SET TERM ; ^

and the error message looks like that
{...}PrepareStatement
-Dynamic SQL Error
-SQL Error Code = -104
Token unknown - line 11, column 11
-?

line 11 -INTO :RESULT
column 11- :

FlameRobin does not have any problems with this piece of code

Any hints ?
Paul

I use Lazarus 1.0.10, Firebird 2.5 on Ubuntu 32bit
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Memo for touchscreen

2013-07-18 Thread Malcolm Poole

On 18/07/13 12:54, Koenraad Lelong wrote:

For a touchscreen-application  (so no real keyboard) I need something
like a memo.
I first tried a memo, but how do I enter text at the caret ? And the
caretpos is readonly.
Next I tried synMemo, but if I move the caret, the caret disappears. How
can I show it ?
How do I send a BackSpace, Delete ?
How do I hide the rightedge of the synMemo ? Just set it to the
backgroundcolor ?

Is there a better component ?


TMemo should work - just use SelStart instead of CaretPos.

Try the code below to get you started: Form with a Memo and 2 buttons, 
named LetterAButton and DeleteButton.


Regards,

Malcolm

//

procedure TForm1.LetterAButtonClick ( Sender: TObject ) ;
var
  testcaretpos: Integer;
begin
  testcaretpos := Memo1.SelStart;
  Memo1.Text := Copy(Memo1.Text, 1, testcaretpos) + 'A'
+ Copy(Memo1.Text, testcaretpos+1, MaxInt);
  Inc(testcaretpos);
  Memo1.SelStart := testcaretpos;
  Memo1.SetFocus;
end;

procedure TForm1.DeleteButtonClick ( Sender: TObject ) ;
var
  testcaretpos: Integer;
begin
  testcaretpos := Memo1.SelStart;
  Memo1.Text := Copy(Memo1.Text, 1, testcaretpos)
+ Copy(Memo1.Text, testcaretpos+2, MaxInt);
  Memo1.SelStart := testcaretpos;
  Memo1.SetFocus;
end;



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] old problem on FreeBSD: ld cannot find -lc_r

2013-07-18 Thread Marc Santhoff
Hi,

after unpacking the brand new lazarus 1.0.10 and compiling it anything
works fine. The next step was to install the lazreport package into the
IDE. Compilation worked up to the linking process:

  /usr/bin/ld: cannot find -lc_r
  lazarus.pp(135) Error: Error while linking
  lazarus.pp(135) Fatal: There were 1 errors compiling module, stopping

This is pretty old and I had this once while FreeBSD was swapping one
threading library for another. Nowadays -lc_r is unsupported AFAIK and
one should use -lpthread instead.

I have searched lazarus' Makefiles, my personal configuration in
.lazarus and checked there is no mapping file for the linker messing
things up. The fpc.cfg seems to be fine (an unaltered by me) too.

Where does this come from?
Where should I search to find the error?

TIA,
Marc


FreeBSD 9.1-STABLE amd64
fpc 2.6.0
lazarus 1.0.10

-- 
Marc Santhoff m.santh...@web.de


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus