Re: [Lazarus] importing program into lazarus project

2008-07-21 Thread Graeme Geldenhuys
On Mon, Jul 21, 2008 at 12:38 AM, Marc Santhoff [EMAIL PROTECTED] wrote: I have a program written using fpc only that I'd like to import into a lazarus project. How can this be done the easiest way? Simply load Lazarus with a blank Lazarus project. Then open the main unit (program) of your fpc

Re: [Lazarus] [Fwd: Re: DisplayFormat property of dbgrid?]

2008-07-21 Thread Luca Olivetti
En/na Howard Lee Harkness ha escrit: Just went looking for the Zeos components. Found a collection on SourceForge that was over 8 years old. I went to the Zeos forum, and found mention of a 'beta' that was nearly 2 years old. Is there a Zeos library that is actually current? If so, where do

[Lazarus] synedit, and moving the cursor during automated operations

2008-07-21 Thread Martin Friebe
See also: http://bugs.freepascal.org/view.php?id=11716 http://bugs.freepascal.org/view.php?id=11474 Sometimes Synedit moves the cursor around to perform replace, search or other operations, and in the end returns it to the original location, (or a new location that may have been visible

Re: [Lazarus] synedit, and moving the cursor during automated operations

2008-07-21 Thread Mattias Gärtner
Zitat von Martin Friebe [EMAIL PROTECTED]: See also: http://bugs.freepascal.org/view.php?id=11716 http://bugs.freepascal.org/view.php?id=11474 Sometimes Synedit moves the cursor around to perform replace, search or other operations, and in the end returns it to the original location, (or

Re: [Lazarus] Create transparency

2008-07-21 Thread Marc Weustink
Valdas Jankūnas wrote: Hello, My code loads a PNG image from resource, modifies it, and then paints on canvas: var png: TPortableNetworkGraphic; img: TLazIntfImage; bmp: TBitmap; begin // load from resource png:=TPortableNetworkGraphic.Create;

Re: [Lazarus] TStringList error

2008-07-21 Thread Cesar Romero
This is not a error, as you can see is a warning. The erros that you are not creating a instance of TStringList. Before use list you should create the object. List:= TStringList.Create; try // your code here finally List.Free; end; Bob K. escreveu: I'm getting the error: *unit1.pas(48,3)

Re: [Lazarus] TStringList error

2008-07-21 Thread Vincent Snijders
Bob K. schreef: I'm getting the error: *unit1.pas(48,3) Warning: Local variable List does not seem to be initialized* Here's the code (which used to work): Then you were unbelievable lucky. list := TStringList.Create is missing. If it used to work, then you the uninitialized variable

Re: [Lazarus] TStringList error

2008-07-21 Thread Bob K.
Thank worked. Thank you Cesar. bob k. -- From: Cesar Romero [EMAIL PROTECTED] Sent: Monday, July 21, 2008 10:02 AM To: General mailing list lazarus@lazarus.freepascal.org Subject: Re: [Lazarus] TStringList error This is not a error, as you can

Re: [Lazarus] TStringList error

2008-07-21 Thread Bob K.
Thank you Vincent. -- From: Vincent Snijders [EMAIL PROTECTED] Sent: Monday, July 21, 2008 10:22 AM To: General mailing list lazarus@lazarus.freepascal.org Subject: Re: [Lazarus] TStringList error Bob K. schreef: I'm getting the error:

Re: [Lazarus] importing program into lazarus project

2008-07-21 Thread Marc Santhoff
Am Montag, den 21.07.2008, 08:45 +0200 schrieb Graeme Geldenhuys: On Mon, Jul 21, 2008 at 12:38 AM, Marc Santhoff [EMAIL PROTECTED] wrote: I have a program written using fpc only that I'd like to import into a lazarus project. How can this be done the easiest way? Simply load Lazarus with

Re: [Lazarus] Create transparency

2008-07-21 Thread Valdas Jankūnas
Marc Weustink rašė: A faster way, (which might work in most cases) is when you have a 24bit depth description with a 32bits per pixel image. How retrieve image description from TBitmap? Then you can simply add an alpha description (precision=8, shift=24 or 0) to the rawimage. How i

[Lazarus] Questions about Lazarus

2008-07-21 Thread Peter Williams
Hi All, I have a few questions about Lazarus, in particular for my OS, Linux Ubuntu 8.04 { Hardy Heron }: (1) Does Lazarus (or should I say Free Pascal) support Virtual Keycodes e.g. constants for keyboard trapping events etc. (2) How can I ensure that I have the latest versions of Lazarus and

Re: [Lazarus] Linker error recompiling Lazarus on Mac OS X

2008-07-21 Thread Mattias Gaertner
On Sat, 19 Jul 2008 05:06:45 +0200 Tobias Giesen [EMAIL PROTECTED] wrote: Hello, I want to go back to gtk. But I get a linking error, and the Carbon IDE does not show any command line outputs. How can I solve this problem? Have you tried messages windows/ popup menu / save all messages?

Re: [Lazarus] Questions about Lazarus

2008-07-21 Thread Mattias Gaertner
On Tue, 22 Jul 2008 03:43:21 +1000 Peter Williams [EMAIL PROTECTED] wrote: Hi All, I have a few questions about Lazarus, in particular for my OS, Linux Ubuntu 8.04 { Hardy Heron }: (1) Does Lazarus (or should I say Free Pascal) support Virtual Keycodes e.g. constants for keyboard

Re: [Lazarus] Questions about Lazarus

2008-07-21 Thread Vincent Snijders
Peter Williams schreef: Hi All, I have a few questions about Lazarus, in particular for my OS, Linux Ubuntu 8.04 { Hardy Heron }: (1) Does Lazarus (or should I say Free Pascal) support Virtual Keycodes e.g. constants for keyboard trapping events etc. Maybe: see the VK_

Re: [Lazarus] Synedits TokenAccu, uing move()

2008-07-21 Thread Mattias Gaertner
On Sun, 20 Jul 2008 21:45:08 +0100 Martin Friebe [EMAIL PROTECTED] wrote: In Synedit's PaintLines is a functioin called AddHighlightToken. At one point it copies the current token to the end of the TokenAccu. At this point a remark can be found: // Don't use AppendStr because it's more

Re: [Lazarus] Create transparency

2008-07-21 Thread Marc Weustink
Valdas Jankūnas wrote: Marc Weustink rašė: A faster way, (which might work in most cases) is when you have a 24bit depth description with a 32bits per pixel image. How retrieve image description from TBitmap? IntfImage.DataDescription Then you can simply add an alpha description

Re: [Lazarus] TCombobox major failure :(

2008-07-21 Thread Mattias Gaertner
On Sat, 19 Jul 2008 23:05:43 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Luiz Americo Pereira Camara wrote: Gtk2 is handled in an different callback function. Unlike gtk1 the LM_SELCHANGE message is sent inside the 'changed' event. At first

Re: [Lazarus] DBGrid Picklist

2008-07-21 Thread Jesus Reyes
Sure. Jesus Reyes A. --- El lun 21-jul-08, Bob K. [EMAIL PROTECTED] escribió: De:: Bob K. [EMAIL PROTECTED] Asunto: [Lazarus] DBGrid Picklist A: General mailing list lazarus@lazarus.freepascal.org Fecha: lunes, 21 julio, 2008, 3:54 pm Jesus, How can I send you the test project we

Re: [Lazarus] Incompatible types for OnChange?

2008-07-21 Thread Mattias Gaertner
On Mon, 21 Jul 2008 22:52:02 +0200 Marc Weustink [EMAIL PROTECTED] wrote: Martin Friebe wrote: I noticed something, which I can't explain. Here is the question in ide/editoroptions is procedure: procedure GeneralCheckBoxOnChange(Sender: TObject; Index: integer); This is

Re: [Lazarus] TCombobox major failure :(

2008-07-21 Thread Marc Weustink
Mattias Gaertner wrote: On Sat, 19 Jul 2008 23:05:43 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Luiz Americo Pereira Camara wrote: Gtk2 is handled in an different callback function. Unlike gtk1 the LM_SELCHANGE message is sent inside the

[Lazarus] Using extensions for text file names .

2008-07-21 Thread Mehmet Erol Sanliturk
Dear Sirs , In \fpc\ and \lazarus\ directories , some text file names do not have an extension such as *.TXT . This situation is causing difficulty in MS Windows because when I ( or best , all of Windows users ) click on any one of these file names Windows Explorer ALWAYS asking to select a

Re: [Lazarus] TCombobox major failure :(

2008-07-21 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Sat, 19 Jul 2008 23:05:43 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: - ListBox.CreateHandle calls Assign that calls Clear, so there's no widgetinfo at this time. I added a check to widgetinfo. No big issue here, but i added some options in the

Re: [Lazarus] Create transparency

2008-07-21 Thread Luiz Americo Pereira Camara
Valdas Jankūnas wrote: I found another solution to not use a proxy image, but load resource from stream directly to LazIntfImage (created with Init_BPP32_B8G8R8A8_BIO_TTB description). Now i always got alpha channel and code is flexible to various image types (need just change image

Re: [Lazarus] Using extensions for text file names .

2008-07-21 Thread Lord Satan
On Mon, 21 Jul 2008 16:45:37 -0700 Mehmet Erol Sanliturk [EMAIL PROTECTED] wrote: Renaming here is not solving the problem because every new build is coming without text file name extensions . Creating a script that automatically renames them for you after an update may help. Opening them

Re: [Lazarus] importing program into lazarus project

2008-07-21 Thread Marc Santhoff
Am Montag, den 21.07.2008, 17:52 +0200 schrieb Vincent Snijders: Marc Santhoff schreef: Am Montag, den 21.07.2008, 08:45 +0200 schrieb Graeme Geldenhuys: On Mon, Jul 21, 2008 at 12:38 AM, Marc Santhoff [EMAIL PROTECTED] wrote: I have a program written using fpc only that I'd like to import

Re: [Lazarus] smart tabs but 2 spaces tab width

2008-07-21 Thread Marc Santhoff
Am Dienstag, den 22.07.2008, 00:33 +0200 schrieb Mattias Gaertner: On Sat, 19 Jul 2008 06:01:43 +0200 Marc Santhoff [EMAIL PROTECTED] wrote: [ ... long explanation ... ] Can someone follow me? Yes. Smart tabs jumps to next word start of previous lines. Is this behaviour possible with