Re: [Lazarus] about DBGrid from hfiandor 31 oct 2012

2012-11-01 Thread Sven Barth
Don't reply to an existing thread, but write directly to the mailing 
list instead as otherwise your message might get ignored as others 
(especially those that might be able to help you) might ignore the 
message thread where you answered to.


Regards,
Sven

On 31.10.2012 13:30, Héctor F. Fiandor Rosario wrote:

Dear colleagues:
i have a BD with 20 fields. In a form i want to fill the data for three
of then only, using a DBGrid.
the first columns is the Id that is AutoInc and the others are ftString.
Please, i don´t know how to fix the name of the columns with the name of
the fields selected to be filled.
thanks in advance,
yours truly,
Ing. Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu mailto:hfian...@infomed.sld.cu


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://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] fpdoc download

2012-11-01 Thread Reinier Olislagers
On 31-10-2012 21:01, Marco Aurelio Ramirez Carrillo wrote:
 Hi. I have some libraries in Lazarus, that I want to generate documentation.
 
 I don't have internet at home. I found this link:
 
 http://lazarus-ccr.sourceforge.net/fpcdoc/fpdoc/fpdoc.html
 
 Is there a url where I can download the same manual ?
 
 Thanks.
 
More of an FPC than Lazarus question ;)
http://www.freepascal.org/
link at the right to Documentation gives
http://www.freepascal.org/docs.var
where you can download that guide and more in PDF format

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


Re: [Lazarus] 2do: about DBGrid from hfiandor 31 oct 2012

2012-11-01 Thread Luca Olivetti

Al 31/10/2012 17:02, En/na Héctor F. Fiandor Rosario ha escrit:

dear colleagues:
i have found how to fix the name of columns with the field´s name, and i
have found how to fix the width of each colum. It works in a pretty way.
as i have 20 fields with data about projects, the last ones scroll the
screen to the right and the PC´operator lost the project´s name and i am
thinking to put and edit box in the upper place of the DBGrid to show
the project´s name (one of the firsts fields of the record) for the
active row. If i used a simple edit box, it can be programmed in the
OnKeyPress Event, but I don´t know how to do it in the case of a dbGrid.


Just use a TDBText (ot TDBEdit) connected to the same data source as the 
dbgrid.
IF you want to know if the current record has changed, you can use the 
AfterScroll event of the dataset.


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004  Fax +34 935883007

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


Re: [Lazarus] 2do: about DBGrid from hfiandor 31 oct 2012

2012-11-01 Thread Héctor F . Fiandor Rosario
Dear colleagues:

I want to thanks to Luca Olivetti for his help. Really, it work very well.

thanks to all

Ing. Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu



--

Este mensaje le ha llegado mediante el servicio de correo electronico 
que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem
a Nacional de Salud. La persona que envia este correo asume el compromiso de
 usar el servicio a tales fines y cumplir con las regulaciones establecidas


Infomed: http://www.sld.cu/


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


[Lazarus] returning the stop execution dialog

2012-11-01 Thread ik
Hello,

After I executed a code from the IDE, I pressed by mistake on Do not
show this dialog anymore, of the finish dialog.
How can I make Lazarus to display it again (so it will be clearer when
the execution ended) ?

Thanks,
Ido

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


[Lazarus] Displaying Xterm does not allow to debug

2012-11-01 Thread ik
Hello,

If I set in Run Parameters to display XTerm, Lazarus does not allow
me to debug the code.
For example setting a break point does not have an effect (but if you
do not display the terminal, then it does stop at the break point).

Is this a bug, or a feature ?

I'm using: Lazarus 1.1 r39183M FPC 2.6.0 x86_64-linux-gtk 2

Thanks,
Ido

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


Re: [Lazarus] Displaying Xterm does not allow to debug

2012-11-01 Thread Martin

On 02/11/2012 00:34, ik wrote:

Hello,

If I set in Run Parameters to display XTerm, Lazarus does not allow
me to debug the code.
For example setting a break point does not have an effect (but if you
do not display the terminal, then it does stop at the break point).

Is this a bug, or a feature ?

I'm using: Lazarus 1.1 r39183M FPC 2.6.0 x86_64-linux-gtk 2



If you put xterm (or any other) in run params, then gdb gets to debug 
xterm, instead of your app (xterm forks a process for your app, and gdb 
does not follow that)


1) If it is for the console only, the IDE (on linux) has a console 
window (view / debug windows) It does input to, focus it and type


2) If you need to run it in xterm, you can start it outside the IDE, and 
attach (svn trunk only)


3) No idea if it will work, never tried it is said to be limited to some 
platforms only. ( http://www.delorie.com/gnu/docs/gdb/gdb_26.html )

  set follow-fork-mode child
you can put it in the debugger_startup_param (the OI grid on the 
debugger options page) using

  -ex 'set follow-fork-mode child'

4) you can run a xterm, and get the pty for it. you can enter that pty 
on the debugger options (oi grid) ConsoleTty
You should run something else in the xterm, so the shell is not reacting 
to keystrokes (input)

|


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


Re: [Lazarus] Displaying Xterm does not allow to debug

2012-11-01 Thread ik
On Fri, Nov 2, 2012 at 2:56 AM, Martin laza...@mfriebe.de wrote:
 On 02/11/2012 00:34, ik wrote:

 Hello,

 If I set in Run Parameters to display XTerm, Lazarus does not allow
 me to debug the code.
 For example setting a break point does not have an effect (but if you
 do not display the terminal, then it does stop at the break point).

 Is this a bug, or a feature ?

 I'm using: Lazarus 1.1 r39183M FPC 2.6.0 x86_64-linux-gtk 2


 If you put xterm (or any other) in run params, then gdb gets to debug xterm,
 instead of your app (xterm forks a process for your app, and gdb does not
 follow that)

 1) If it is for the console only, the IDE (on linux) has a console window
 (view / debug windows) It does input to, focus it and type

That's what I need, thanks


 2) If you need to run it in xterm, you can start it outside the IDE, and
 attach (svn trunk only)

 3) No idea if it will work, never tried it is said to be limited to some
 platforms only. ( http://www.delorie.com/gnu/docs/gdb/gdb_26.html )
   set follow-fork-mode child
 you can put it in the debugger_startup_param (the OI grid on the debugger
 options page) using
   -ex 'set follow-fork-mode child'

 4) you can run a xterm, and get the pty for it. you can enter that pty on
 the debugger options (oi grid) ConsoleTty
 You should run something else in the xterm, so the shell is not reacting to
 keystrokes (input)




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


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