Re: [lazarus] Bug/feature deletes unit1 file.

2007-05-25 Thread Павел Ишенин
Dave Coventry wrote: Gentlemen, I'm using 0.9.20 on windows XP. (lurking here and watching the error reports coming out on the latest release has made me a bit chary of upgrading!). If I want to test some code and I use File->New and select a new project application(to test whether a partic

[lazarus] Bug/feature deletes unit1 file.

2007-05-25 Thread Dave Coventry
Gentlemen, I'm using 0.9.20 on windows XP. (lurking here and watching the error reports coming out on the latest release has made me a bit chary of upgrading!). If I want to test some code and I use File->New and select a new project application(to test whether a particular control is going

Re: [lazarus] Store a utf-16 file in a lazarus resource file

2007-05-25 Thread Luiz Americo Pereira Camara
Paul Ishenin wrote: Luiz Americo Pereira Camara wrote: I want to store a utf-16 encoded file in a Lazarus resource file and than load as a Stream. I already did the first step (create the lrs file with lazres) now i want to load the file in a stream. Does someone know how i can do that? m

Re: [lazarus] Once Code Compile Anywhere .... ????

2007-05-25 Thread Lee Jenkins
Allies Xposs wrote: Thanks all... Im confuse .. How to di This ? (Once Code Compile Anywhere).. Im Use LAzarus under WIndows, but... i want compile my code can RUN IN LINUX... How...?? In addition to what the others said, consider using cvs to manage your cross platform project/sou

RE: [lazarus] Once Code Compile Anywhere .... ????

2007-05-25 Thread Sergio Samayoa
If you have cross platform in mind of course you MUST not use platform specific APIs, use only standard API and standard components. If you don't want to do worry about this issue, write your applications in Java which uses a virtual machine. Regards. _ De: Darmawan Sugiarto [m

RE: [lazarus] Once Code Compile Anywhere .... ????

2007-05-25 Thread Darmawan Sugiarto
Don't use Win API programming... maybe not supported in Linux Is it Right ??? Sergio Samayoa <[EMAIL PROTECTED]> wrote:v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} st1\:*{behavior:ur

Re: [lazarus] Problem with carbon apps

2007-05-25 Thread Павел Ишенин
Felipe Monteiro de Carvalho wrote: Hi, I created a trivial carbon-lcl app (just an empty form), compiled it successfully, but when I run it from the command line, it will refuse to receive focus. I mean, I click on it, but it doesn' t go to the top of z order, and doesn' t act like if it receiv

Re: [lazarus] Problem with carbon apps

2007-05-25 Thread Felipe Monteiro de Carvalho
On 5/25/07, Mattias Gärtner <[EMAIL PROTECTED]> wrote: See http://wiki.lazarus.freepascal.org/Carbon_Interface#Your_first_native_Carbon_app Ah ok thanks ... I had already read this, but I missed the part where the resource file is obligatory. I thougth I could create one, but that wasn' t

Re: [lazarus] Problem with carbon apps

2007-05-25 Thread Mattias Gärtner
Zitat von Felipe Monteiro de Carvalho <[EMAIL PROTECTED]>: > Hi, > > I created a trivial carbon-lcl app (just an empty form), compiled it > successfully, but when I run it from the command line, it will refuse > to receive focus. > > I mean, I click on it, but it doesn' t go to the top of z order,

[lazarus] Problem with carbon apps

2007-05-25 Thread Felipe Monteiro de Carvalho
Hi, I created a trivial carbon-lcl app (just an empty form), compiled it successfully, but when I run it from the command line, it will refuse to receive focus. I mean, I click on it, but it doesn' t go to the top of z order, and doesn' t act like if it received focus. The maximize button works,

Re: Compiling software on Mac OS X

2007-05-25 Thread Felipe Monteiro de Carvalho
I think the most common way to execute apps as root on mac os x is calling "sudo", like it' s done in ubuntu -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subjec

[lazarus] Different node text color in Treeview

2007-05-25 Thread Graeme Geldenhuys
Hi, I need to paint certain nodes (Node Text only) in a different color based on some criteria. Blue or Black text. I used the OnCustomDrawItem event. When the tree is loaded the text will appear correctly. Then while expanding other nodes, the previous Blue text becomes Black text. Covering th

Re: Compiling software on Mac OS X

2007-05-25 Thread Christian Budde
Graeme Geldenhuys schrieb: <[EMAIL PROTECTED]> wrote: It wasn' t really recompiling LCL. Apparently with the default package one must be Root to recompile Lazarus. Everything working now =) Oh, has Mac OS X also got a Root account? I know it's built on top of FreeBSD, but thought they hid all

Re: Compiling software on Mac OS X

2007-05-25 Thread Graeme Geldenhuys
On 5/25/07, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: It wasn' t really recompiling LCL. Apparently with the default package one must be Root to recompile Lazarus. Everything working now =) Oh, has Mac OS X also got a Root account? I know it's built on top of FreeBSD, but though

Re: Compiling software on Mac OS X

2007-05-25 Thread Felipe Monteiro de Carvalho
On 5/25/07, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: By the way, I can' t actually beliave it really recompiled LCL. It was instantaneous!!! o.O I've never seen lcl recompile so fast Found the problem myself! It wasn' t really recompiling LCL. Apparently with the default package

Re: Compiling software on Mac OS X

2007-05-25 Thread Felipe Monteiro de Carvalho
I rebuild LCL for carbon and tryed a carbon app, but same error: Free Pascal Compiler version 2.1.4 [2007/05/08] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Darwin for i386 Compiling testapp.lpr PPU Loading /usr/local/share/lazarus/lcl/units/i386-darwin/carbon/Interfaces.ppu P

[lazarus] Compiling software on Mac OS X

2007-05-25 Thread Felipe Monteiro de Carvalho
Hi, I installed sucessfully fpc 2.1.4 beta, fpc-src 2.1.5 from yesterday's snapshot and lazarus from yesterday' s snapshot. Running on a Intel Mac, lazarus starts ok, so I created a trivial LCL application and tryed to compile it. It gives a unable to find unit Interfaces error, so I tryed with l

Re: [lazarus] TUTF8Char declaration

2007-05-25 Thread Marc Weustink
Mattias Gaertner wrote: On Thu, 24 May 2007 22:48:05 +0200 Marc Weustink <[EMAIL PROTECTED]> wrote: Mattias Gaertner wrote: On Thu, 24 May 2007 12:40:39 +0200 "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote: Hi, TUTF8Char is declared as: TUTF8Char = string[8]; Why not string[4]?