Re: [lazarus] ColorToRGB in console app
Quoting Giuliano Colla [EMAIL PROTECTED]: Knowing a bit Redmond people, I'm afraid it's MSDos based! ;-) All things old become new again ;-) _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Linux Journal Poll: Pascal does not exist
Quoting Marco Alvarado [EMAIL PROTECTED]: Working with an underground language gives a cool feeling :D Please see attached image ;-) Cheers (with a tequila) mramirez attachment: Black-T-Shirt-Lazarus.JPG
Re: [lazarus] FPC compiler for virtual machines?
Quoting Marco Alvarado [EMAIL PROTECTED]: I've been investigating, and came to the conclussion that the best compiler I can do IS NOT a compiler, BUT an specialiced translator. I The guys at mhccorp, did the same: http://www.mhccorp.com/java.shtml But, its a closed source project. In their pages, they said, they made an Object Pascal To Java translator, and later a Object Pascal to JVM assembler translator. One thing is the compiler, and another the development environment. If you want to extend the Free Pascal Compiler to work as a translator for Free (Object) Pascal to Java (Programming Language), you are welcome. If you achieve this, and later want to extend the Lazarus development environment for your FPC extension, you are also welcome. Visual Studio has a .NET mobile emulator where you can make a mobile application, and run it in the emulator. We don't want to discourage you of your idea, but seems complicated, and some of us think, there are other ways of doing the same. But, how knows ? Maybe the games you want to migrate to JVM-based phones, can be fun and even profit !!! ;-) Good Luck mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPC compiler for virtual machines?
Quoting Felipe Monteiro de Carvalho [EMAIL PROTECTED]: My experience with Symbian makes me think I should have instead started a Java port. The Symbian is such a mess that a Java port would I read somewhere that Symbian was rebuilding its OS from scratch, because of the mess. There is even a Java assembler out there. I'm not 100% convinced that it can't be abstracted just like if it was just another platform. There is a JVM assembler: http://en.wikipedia.org/wiki/Jasmin_%28Java_assembler%29 But, the main problem with the Java ENVIROMENT/FRAMEWORK (Virtual Machine + Standard Library + Programming Language + else), is that is 100% CLASS/OBJECT oriented. Even the JVM assembler works with objects and classes, you can't work with global functions, records, or variables like many of the LCL functions does. As mentioned in other replies, you'll have to mutilate the object pascal version of the language to make it run in a JVM. Trying to migrate the Free Pascal Compiler (FPC) used by the Lazarus could be possible, but with weird, unexpected, poor performance results... Borland/CodeGear make an experimental Pascal for JVM compiler, and both this version and its .NET compiler had pitfalls. Anyway, virtual machines are slow, don't matter how much optimization they have, and require more resources. And mobile devices don't have as many resources that a P.C. does. I suggest you should go for the native development, whether is FPC+Lazarus or other development set of tools. Just my 2 cents... mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Linux Journal Poll: Pascal does not exist
Quoting Alexsander Rosa [EMAIL PROTECTED]: http://www.linuxjournal.com/node/1006101 18. What is your favorite programming language? OBJECT Pascal. Not your parents' pascal ;-) Cheers. mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Linux Journal Poll: Pascal does not exist
Quoting Marco Alvarado [EMAIL PROTECTED]: Nice shirt heheh :D Thanks. Alexsander said that he liked use an underground programming language. Found a T-Shirt for that underground attitude ;-) _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPC compiler for virtual machines?
Quoting Marco Alvarado [EMAIL PROTECTED]: I'm building right now a translator of Object Pascal to ECMAscript. Good Luck ;-) mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] GamePack 1.0 Released
Quoting A.J. Venter [EMAIL PROTECTED]: I added some screenshots to the wiki page: Cool. Good work ;-) Cheers (With a Tequila) mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Distro Wiki
Quoting Felipe Monteiro de Carvalho [EMAIL PROTECTED]: Obviously both pages can be improved. Thanks. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Distro Wiki
Quoting Graeme Geldenhuys [EMAIL PROTECTED]: It all sounds a lot more complicated than it really is. :) With Ubuntu, which uses the 'apt' package management tool you only need to specify a few packages to install and 'apt' will resolve all the other dependencies for you. Thanks. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Distro Wiki
Hi. Most of my development with Delphi/Lazarus is done under windowze. Altought, I have use Linux. Instead of asking you, AGAIN, with the BORING what is your favorite/suggested linux distribution for Lazarus? question, I was wondering, if there is already some kind of guide or wiki, about installing on specific distros ? Something like: In Suse, there is a problem with the fonts, In Fedora, you have to setup this file, etc One of the things, that dumped Kylix (Delphi for Linux), was that the O.S. required extra configuration, compared to windowze. We don't want Lazarus newbies (and potential, involved, developers), to be disappointed because they can't setup Lazarus in their Linux-running computers, don't we ? ;-) Cheers (with a tequila). mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] why do delphi users hate lazarus so much?
Quoting A.J. Venter [EMAIL PROTECTED]: I don't want to flame delphi, I want to state to all who flame lazarus that frankly lazarus puts bread on my plate, and delphi could not have Well said. mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] why do delphi users hate lazarus so much?
Quoting Florian Klaempfl [EMAIL PROTECTED]: Nobody needs compiler building knowledge to push this matter. I read somewhere (mail-list/Lazarus web site) that there wasn't that problem. - provide an ftp.freepascal.org mirror (requires approx. 1TB/month traffic) to reduce the matter of download size - take care of the installer building and provide patches, it takes me usually several days before a release till the installer works again because of changed memory locations etc. so we know that we can make a more complicated build and install process because somebody takes care of it Can't help with that right now. - make a proposal for a dyn. package naming scheme taking different OSes, file systems, release and snapshot versions into account. I remember, CodeGear, had the same problem with kylix. Let see if I could think on something. combination of rtl, fcl, lcl needs its own set of dyn. packages DLL hell, yes I got it. - code in dyn. packages is slower You have to load the Dynamic Package (DLL/Shared Object) before, use pointers, and so on... - even commercial seem not to be able to provide stable debugger support for dyn. packages Is there a way, NOT TO DEBUG THEM,as a temporal fix ? The only valid reason for dyn. packages is that someone don't want to publish its IDE sources I think dyn. packages have other benefits as well, but you have made a point. There are several things that has to been made before can be implemented. Cheers. mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Why do Delphi users hate Lazarus so much?
Quoting zaher dirkey [EMAIL PROTECTED]: I Delphi programmer too (10 years) , and i like FPC/Lazarus too match, than Delphi. Same here. This day (before i see this comments), my co worker ask me if some day we see some people try to make fight Lazarus, i have no answer for him, and i hope no. Not necessarily. It seems to me, that many of the Lazarus ACTIVE developers were Delphi users (and cu$tomer$) until Borland/Inprise/CodeGear drop the quality of their products, services, and updates. It's NOT like My Lazarus IDE is better than you Delphi IDE, childish fighting attitude, BUT, rather, you no longer treat me well as a customer, I'll rather look somewhere else..., and that somewhere else is LAZARUS ;-) (OK bad english :P ) Seim jir, I mean, Same here ;-) Most of the people on this Lazarus mail-list, are non english-speakers. One of the reasons some people are interested in (Free as Free-Speech) Open Source Projects, its not to have the software we use AND PAID, available in the language we speak. Cheers (with a tequila !!!) mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Why do Delphi users hate Lazarus so much?
Quoting John Stoneham [EMAIL PROTECTED]: entire threads with subjects like Quit talking about Lazarus here or Its their company, and they forum. It's normal to diminish any of their products' competition (such as Lazarus). If you think you need cross-platform you don't need Delphi or some I heard that before, it may work for them. But not for us. Lazarus may help as a cross-platform tool, but also to replace a single platform, paidware tool, that didn't get updated by their providers... other nonsense. Why do they hate Lazarus so much?? CodeGear employees try to protect their business and jobs. Some customers/users think that if Lazarus performs better, CodeGear will stop improving/developing Delphi, and they will lost the software they STILL USE in their daily jobs... the last version I purchased -- which was some 6 or 7 years ago -- and My employers paid for their licenses, wanted updates, and get none. I tried to bought a professional version of Delphi 7, but the local Borland Representatives didn't care about mISV's, or bother to send the pricing info I request. swore I'd never purchase another Delphi product. Same here. Something that trills me, is that the Lazarus community is one of the Open Source communities, where people get involved because THEY REALLY NEED THE SOFTWARE, EVEN IF THEY COULD PAID FOR, NOT BECAUSE IT'S FREE AS A T-SHIRT !!! I just hope the Lazarus community isn't discouraged by those Some people may do, but I don't think that really affects Lazarus. When I hear about Lazarus in DELPHI NEWSGROUPS, and I discover Lazarus web site, I found at that time, that it was still at an very early stage, unsuitable for applications. That didn't discouraged me. I was interested on participate, but my job, didn't allow me. Today, other developers had the time, and Lazarus is a full-grown application ;-) So, if I where you, I care more about trying to help the project (if you have time, or the resources), than what Delphi users/developers think... Cheers (with a Tequila) mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Making things clear
Quoting Alexsander Rosa [EMAIL PROTECTED]: Free Pascal with LCL = C/C++ with wxWidgets Free Pascal with fpGui = C/C++ with FLTK Am I right? -- Atenciosamente, Alexsander da Rosa Linux User #113925 Sort of. Lazarus Framework and IDE = (Object) Free Pascal Language + (Object) Free Pascal Compiler + Lazarus Component Library + (optional) Libraries such as fpGUI, GTK, or else I've been following the posts about comparison of Lazarus and other frameworks, and developing with C/C++. If you want to start developing NATIVE, new applications, Lazarus FRAMEWORK is a good choice, and (Object) Free Pascal is for me, a better programming language than C/C++. If for some reason, you still have to work with other C/C++ libraries, some of the other C/C++ frameworks/IDE's you mention, may help. I would like to see a CppBuilder version of Lazarus ;-) But, I recommend you Lazarus IDE above any C/C++ IDE. Just my 2 cents... mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Making the IDE work with C/C++
Quoting Maxim Ganetsky [EMAIL PROTECTED]: There is CodeBlocks too (see http://www.codeblocks.org ). Code Blocks its an excellent tool, for those of us who sometimes need to work with C/C++ instead of our beloved object pascal ;-) Its a C/C++ cross-platform IDE, but works with source files, NOT a visual RAD !!! It's like working with Delp, I mean, Lazarus in console mode ;-) Cheers. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Making the IDE work with C/C++
Hi. One of the things I think It may be considered to do a Lazarus C++ IDE, instead of a Lazarus Free Pascal IDE, is that C/C++ uses header files. So you'll have to work with both the header and the source file, instead of a single file. Another, will be the data types. By example, I once had to migrate a delphi component to a CBuilder component, and discover that delphi/lazarus set of type didn't exist. I had to use an existing generic template instead. Altought, Lazarus is a Free Pascal related project, the truth is that, the need to share the same software libraries, modules or packages, using different programming languages for the same project is required. Many talented programmers/developers don't use the same programming language, many companies doesn't have the resources to migrate the payroll DLL to a new programming language (example C - Free Pascal). So the idea of Lazarus supporting other programming languages, may sound bizarre, at first, but realistic, at last... I always try to avoid confusing the programming language term, with the programming environment, instead. That's why M$ got right it's .NET framework v.s. SUN's Java. .NET uses the same library, same development environment, different programming language (VB, C#, COBOL, etc). And was designed by an OBJECT PASCAL DEVELOPER ;-) Just my 2 cents... _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] C++ libraries
Hi. I was wondering if C++ classes binary *.obj files could be accessed from a Free Pascal application. I did my homework and check at the Free Pascal site, BEFORE bothering this list with a boring same question, but didn't found anything. Any updates ? Thanks. mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] HowTo increase developer contributions
Hi. Long time, not posting about Lazarus. Vincent Snijders wrote: So what we need it users that are willing to become contributors, not Of course, there are many, a lot of people, people that use open (or free) source software like Lazarus, and many of them request things to be done, and return nothing. Quoting Al Boldi [EMAIL PROTECTED]: in the beginning, and support them to start walking on their own, then maybe they will start to contribute, but only when you have been nice and supportive to them. But, sometimes a few of them, start getting involved, with few stuff, and eventually, get more involved. I don't expect either that a new developer builts a whole new IDE in a few days ;-) Cheers !!! mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Delphi/Lazarus comparison by Codegear
Quoting Giuliano Colla [EMAIL PROTECTED]: I stumbled, by chance, into a rather fair comparison of Delphi and Lazarus in the Delphi Wiki: http://delphi.wikia.com/wiki/The_Business_Case_For_Delphi#FreePascal.2FLazarus_.28FP.2FLZ.29 I wonder if there should be a The case against Delphi by the Lazarus community article ;-) Seems the CodeGear guys forgot that many people start getting interested in Lazarus, as plain users or active developers, because they where previous Delphi users, and when Borland (now CodeGear) crap the quality of the product, the people turn into open source... Just my 2c !!! mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] What about a Lazarus church to raise money?
Quoting Giuliano Colla [EMAIL PROTECTED]: My company badly needs Lazarus. Mine too. Therefore it could pay some money in I one of the guys that propose a foundation to organize several things, some time ago, like a Summer of Code, and else. Still, think Its a good idea. Marco Ramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Doing the Delphi 6 Text Editor Tutorial in Lazarus?
Quoting Graeme Geldenhuys [EMAIL PROTECTED]: I don't really know what a ActionManager is supposed to do, but under An Action Manager is replacement for an ActionList, with some additional goodies like an improved component editor, and a runtime add actions to toolbar dialog, like the Customize... option in M$ Office applications... The freeware RX Components included this component, before Delphi did. I don't know if CodeGear remake this component or actually took the RX source code. It's very useful, altought It can be very easy to build. platform RichEdit component? Maybe it's only possible when you have I started to do something similar, and NO, It's NOT AS DIFFICULT, AS IT DOES, but It takes time for a lone developer to do it. Cheers. maramirezc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Doing the Delphi 6 Text Editor Tutorial in Lazarus?
Quoting Graeme Geldenhuys [EMAIL PROTECTED]: kinds of components, but nobody every bothers to write a RichEdit component from scratch. I started to do something like that, in Delphi, and I didn 't get any far due to my job workload. And It was a single line editor, not the whole multiline. The main problem with this component is that it shows not just text in different colors or styles (bold, underlines, etc), but also in different sizes and it suppouse to show pictures, which makes development difficult. Cheers !!! maramirezc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] resource strings in constants
Quoting Graeme Geldenhuys [EMAIL PROTECTED]: Is it possible to use resource strings in constants and be able to translate them with 'gettext' unit at runtime? TRASLATE THEM AT RUNTIME ? Then what you need are variables, not constants. Resources, (strings, images, or else), where intended to be changed USING THE EXECUTABLE, WITHOUT ANY SOURCE CODE and BEFORE the application runs. I have used the gettext utilities and its *.po files a few times, but, I do remember, that the developer could change the locale or culture of the resources. cGenderGUI: array[TGender] of string = ( rsGenderMale, rsGenderFemale ); cGenderDB: array[TGender] of string = ( 'M', 'F' ); Whenever I reference the cGenderGUI[xxx] I always get the original resource string value instead of the translated one. I'll double You can use functions, instead of constants, something similar to properties: - ... interface type TGender = (gMale, gFemale); function GenderToStr(const Value: TGender): string; implementation function GenderToText(const Value: TGender): string; begin // assign locale or language or culture to gettext // call the getText function for your strings end; ... - check tomorrow if I'm doing something stupid. No, your code is right. Just my 2 bee, I mean, 2 cents... mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] WikiHelp
Quoting Christian Ulrich [EMAIL PROTECTED]: 1. Is nobody intrested that the lazarus help gets better ? I think this is an good step to have primary descriptions and tuturials. 2. How is it possible to make the fcl,lcl help multilanguage ? I dont see any way at time ! My humble suggestion: Well, buddy, in open source comunnities, if you don't find what you want, you start to build it by yourself ;-) And, you may get help from others, later... Comment: I have my own Delphi/Lazarus controls, and need it to make a help system for them. And started to make a MULTILINGUAL HELP EDITOR, but, there is too much things to do. (My native language is spanish) It was XML/HTML based system, not any special format like windowze *.hlp or *nix man. Question: Do you need something particular, like an especific tutorial or help for a particular unit or class ? Just my 2 cents... _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Looking for experience using Lazarus in programming education
Quoting Tom Verhoeff [EMAIL PROTECTED]: We have been using FreePascal for many years in our programming Hi, I have work both as a Programming teacher and a Software Developer. We are not so happy with the direction that Delphi is going, especially Many developers/teachers here have the same feeling... difficult to move to Lazarus. Is true that The project doesn't grow as fast as others, but the people that makes contributions, have make it use useful. Since some features are not fully implemented, compared to Delphi (c) is possible that your student/coworkers find it difficut to use. I have many personal projects products made in Delphi, that I need to migrate to Lazarus. Since some controls/components aren't available in Lazarus, I understand the difficulty you mention... In my opinion, the multi-platform support of Lazarus is a big pro. And also its open-source character. Many of the features features that aren't available in commercial IDES, are available in Lazarus, thru Open Source. Example, English ISN'T our native language, and in both commercial education area, this is a problem. Many program development tools are still in english. But many Open Source applications allow us to change that, such: Lazarus I am interested in collecting experiences with using Lazarus in education, in particular as a tool of primary choice for programming. Let me hear those success stories, so I convince others ... My comment It may not be what you expect, but, I hope it helps. Let me tell you more about (Free) Pascal than Lazarus (IDE). We have the opposite situation. I learn programming in Turbo Pascal/Delphi. Many schools here, are following the C#/Java hype, or using the Pascal is obsolete paradigm used by C/C++ developers . Schools people are avoiding any use of other tools except C#/Java. At my job, I currently work with both C#/Java, and many of my younger coworkers DOESN'T HAVE THE PROBLEM SOLVING AND PROGRAMMING SKILLS requiered for the job. When I ask them which programming languages AND Methodologies, ALL OF THEM mention Java or C#, or C/C++. Lazarus (IDE) Delphi are built from people who knew Object Pascal. It's weird to see software developers that just finish school, know things like Unified Modeling Language, X.M.L., Rational Unified Process, BUT when they struggle to to make an application to work... Niklaus Wirth, they guy that invented Pascal, created the language in order to make developers adquire solving problem skills. It isn't about using { and } instead of begin and end. It's about having a programming language that allow you to solve a solution by building an application... In Lazarus, may be things under construction, but don't let your students/coworkers migrate to other tools that doesn't allow them to develop the skills THEY WILL NEED IN THE JOB MARKET, EVEN IF LATER THEY HAVE TO WORK IN C# OR JAVA !!! Good Luck ;-) Marco Ramirez lazarus-mramirez-at-star-dev-com [-mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Font names shown in the respective font
Quoting Mattias Gaertner [EMAIL PROTECTED]: I'm not an font expert, so I don't know, what properties are needed by TFont to make it cross platform (if this is possible). Mattias Hope it helps: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsicat_id=FontDownloads http://www.openfontlibrary.org/ http://unifont.org/fontguide/ mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] running preprocessor from lazarus
Quoting Michael Van Canneyt [EMAIL PROTECTED]: The problem is not so easy: the fpc commandline has only the project file on it. a simple pre-compile command without additional IDE functionality. A potential solution is that instead of calling the commandline fpc, he uses its own fpc compiler, actually a batch file or an executable program that calls the preprocessor, and in case of not an error, then call fpc. example: $ fpcpp /? My FreePascal Preprocessor for Lazarus 2006 (c) $ fpcpp myproject.pas (0) errors found. Just my 2 cents... _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] running preprocessor from lazarus
Quoting Marc Santhoff [EMAIL PROTECTED]: The goal in doing so would be using a specialized macro processor I'm surprise for your question, because I started been interested in language/compiler design because I wanted a preprocessor for Turbo Pascal, like Turbo C++ ;-) Let me understand, you already have the preprocessor to transform your Pascal with Tags into a Pascal without tags source code file ? Something like: - program PreprocessorExample; #define Pi 5 begin Write('Pi value is ', Pi); end. - Into something like : - program PreprocessorExample; begin Write('Pi value is ', 5); end. - replacing tags in the source code before feeding through fpc. Based on my experience, I have 3 ideas. Idea 1: Consider your Lazarus Free Pascal with preprocessor project something different than a standard Lazarus Free Pascal project. And by that, I MEAN, USE A DIFFERENT FILE EXTENSION. *.pas - *.mpas M stands by macroprocessor Later, you may add a plug-in or menu option to Lazarus IDE, for that, you'll need help for the rest of the Lazarus community. That plug in will first call the preprocessor library, and if there is not any error, later call FreePascal Compiler (PFC) included in Lazarus IDE Idea 2: Let your project keep the standard extension and project type, and add a plug-in to Lazarus IDE, that calls your preprocessor. Idea 3: No preprocessor at all. Pardon my curiosity, but what do you need a preprocessor for ? Since including a preprocessor or other tool may have some complexity, you may consider solving your problem using another tool. Just my THREE cents. Marco Ramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus and DOT Net
Quoting David Mears [EMAIL PROTECTED]: The only two things Pascal really misses for me are think ability to natively link with C++, and keyword level associative arrays. The later What do you mean by keyword level associative arrays ? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TFileStream - File Type?
Quoting Kris Leech [EMAIL PROTECTED]: is create something for FPC/Lazarus which is similar to a SFS (Single File System) so all files are stored as a byte stream in a single file. Micro$oft call this Structured Access instead of Virtual File System. Other people use the words Virtual File System for other similar stuff, but the one you are using is OK. then how to use that byte stream with other functions etc. that do not take TStream as input. OK. Standard file operations (Reset, Rewrite, Close) are easier to learn than stream classes. BUT, doesn't allow to extend or customize file access, so, forget about File Of MyType. Streams are better to customize for custom situations, like Virtual FileSystems. A third option, would be to create your own File type record and create its own functions. I DID THIS. Any ideas you have or have previously implimented would be great to hear. OK, I wanted to do the same thing. Any O.S. has its own standard libraries to access its Standard File System. In windowze, it's called O.S - A.P.I. (Operating System - Aplication Program Interface) To get to the point, I DID THAT, a set of libraries/functions, for a custom Virtual File System. Let me tell you how I started: 1. Create a custom System unit: -- unit MyVFS; interface ... implementation ... end. -- 2. Add the standard functions/procedures, and make the wrappers first, and the internal code, later: -- function FileExists(const Path: string): Boolean; begin Result := false; // to-do... end; function DirExists(const Path: string): Boolean; begin Result := false; // to-do... end; procedure CreateDir(const Path: string); begin // to-do... end; procedure DeleteDir(const Path: string); begin // to-do... end; procedure DeleteFile(const Path: string); begin // to-do... end; procedure RenameDir(const Source, Dest: string); begin // to-do... end; procedure RenameFile(const Source, Dest: string); begin // to-do... end; procedure CopyDir(const Path: string); begin // to-do... end; procedure CopyFile(const Path: string); begin // to-do... end; -- There is more things to do. For example, how are you going to write a path ? MS-DOS/Windowze style: c:\mydocs\myhomework.txt Unix style: /public/mydocs/myhomework.text Do you want to continue with the code ideas I sending you ? Do you want to try another stuff by your self ? driver for Win32 and Linux to allow proper OS access to the SFS... Then they would work like native files. I think the drive aproach is VERY difficult. Anyway, A.P.I. libraries encapsulate/hide drivers... Just my 2 cents... maramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TFileStream - File Type?
I have done something similar in windowze and delphi... which accept a path/filename to use the files in the VFS, for example loading a DLL. I have a suggestion, but first I need to know. How do you regularly access (open, read, write) O.S. files ? As streams (MyStream.Open, MyStream.Close) ? As File pointers (FileAssign, Reset, Rewrite) ? Just my 2 cents... maramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TFileStream - File Type?
Quoting Kris Leech [EMAIL PROTECTED]: Is it possible to convert a memory byte stream (eg. TFileStream) in to a File pointer for use with normal file routines? Quick-Easy Answer: No. Any class (like TFileStream) is stored different in memory that a File type. Long-Difficult-Boring Answer: We call, sometimes, a File variable a pointer in terms of a concept. But, a File variable, speaking technically, isn't a pointer but a record. Suggestion: Why don't you use a TFileStream and its methods instead ? Or if you prefer, you may make your own unit, in order to use a TFileStream variable/object as it was a File variable and the methods you are use to. Example: --- Unit MyFileUnit; interface type TMyFile = TFileStream; procedure Assign(var F: TMyFile; FullPath: string); procedure Reset(var F: TMyFile; RecordSize: Integer); procedure Rewrite(var F: TMyFile; RecordSize: Integer); procedure Append(var F: TMyFile; RecordSize: Integer); procedure Close(var F: TMyFile); implementation procedure Assign(var F: TMyFile; FullPath: string); begin ... end; procedure Reset(var F: TMyFile; RecordSize: Integer); begin ... end; procedure Rewrite(var F: TMyFile; RecordSize: Integer); begin ... end; procedure Append(var F: TMyFile; RecordSize: Integer); begin ... end; procedure Close(var F: TMyFile); begin ... end; end. --- Just my 2 cents. maramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Free Pascal widget set
Using C++ libraries from other languages is either bloat or hard to use. In theory, many C++ libraries should be faster, in practice they're not. This is due to the fact that many C++ developers are just to desperate to start programming, skipping the design process. Remember that Pascal was originaly designed to help students to learn programming, wheter structured programming or object oriented programming... I haven't try the libraries you want to use for your custom widgetset, but if you think they're good, and want to migrate them from C++ to Free Pascal, well, Good Luck !!! - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] FPC/Lazarus propaganda scheme
KDE RSS. They would be talking about the use of QT and the pascal language at the same time. The KDE programmers are mostly c++ guys but all use QT. Of course there must be a similar RSS for Gnome programmers. John After all, Kylix was QT based. I don't have time or skills to work with QT at the moment. But I already wonder what about making a Object Pascal to QT-C++ traslator, in order to use QT/KDE classes ? Just my 2 cents - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] pascal is obsolete?
1. class that can have more then one object as it's parent (at this Multiple Inheretance. Difficult to understand, difficult to implement, but I have a problem where multiple inheretance was the solution, instead of multiples interfaces. 2. Powerful containers for class usage such as class X requires class Same as templates/generics. 3. Better/Faster IO usage ;) Better designed I/O libraries/classes ? 4. The amount of classes that comes with Java as part of the compiler :P Can live with them. Make your own libraries. 5. Associative/anonymous classes (like in script language). Not recomemnded. Dificult to control. 6. inline code inside class (like in C++/Java). Not recommended. Bad design. 7. Build in regex syntax like in Perl, Ruby Javascript. Replace it, by a library. 8. Templates. (there is something that is cooking) OK. This one is right. We reealy need templates/generics support. 9. Hashes (associative arrays) - Yes there are classes that mimic Classes with indexed properties work and look like associative arrays. 10. The infamous support of ... for infinite' parameters (You can Open arrays. And I had more things on my list I just don't remember all of them at the moment ... 1. operator overloading type X: TMyType; operator +(A, B: TMyType): TMyType; 2. Property type overloading. type TA = class ... end; TB = class(TA) ... end; TC = class ... property X: TA; end; TD = class(TC) ... property X: TA as TB; end; NOW, TD.X property is TB class not TA. If you declare a TD variable, with this feature, you no longer need to cast the X property to TB type each time you need it. There is the D language and other mutant of that language that suppose I think D IS BETTER. But not enough. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: c faster than pascal? was: Compiling GlScene ...
guess C is still faster to run, but definitely not for readability and friendliness. ;-) C is still faster to run, or faster to compiler ? Depends on the compiler and generated code ;-) Cheers. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TToolButton
The AutoSize doesn't work at all, not even in the Win32 widgetset. If I remember correctly, you need to manually (in code) set AutoSize := False and set the ToolButton Width in the ToolBar, which will then resize all buttons on the bar. If you don't come right, I can have a look in my code, to see what I did as a work-around. Regards, - Graeme - I made a component in win32 that autosizes win32 dependant TControlBar. Since I don't have Lazarus in this machine, I cannot check if Lazarus has this component... - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] (Off Topic) Dvorak keyboard layout
Hi. Do any of you type on a Dvorak layout keyboard? No, but some days ago I was checking ergonomic keyboards and found some pages about Dvorak, interesting. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] (Off Topic) Dvorak keyboard layout
For those that have never heard of Dvorak follow the white rabbit. http://www.kaufmann.no/roland/dvorak/ I followed a black rrabit and found this: http://www.dvortyboards.com/ - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Another TDateEdit Question
Might be a Dvorak issue, period. :) I never encountered someone using that. It sounded great 3 years ago when I've read about it, but I never found one in French. :) I guess it's better like that too (me without having to learn that). http://www.language-keyboard.com/languages/french.htm - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] converting delphi components to lazarus?
Hi. I wrote some components for use in delphi, Im also starting to migrate my delphi components to Lazarus. is there any special things to note in conversions? First, of all, by components do you mean Visual controls or just drag and drop non visual components ? The first thing you may encounter is that the packages where the components are stored, in Lazarus are STATICALLY compiled, that means there're NOT DLL (shared libraires) like windowze. That means you have to compile Lazarus IDE with your component's packages in order to use them in Lazarus. As they are visual and do respond mostly to lots of windows messages? Yes, windowze messages doesn't exist in Linux. You will have to change the message handlers procedures in your control's code to be message-independent. Example: Original code: type TMyControl = class procedure WMSize; message WM_Size; end; procedure TMyControl.WMSize; begin // ... // my stuff to answer to WM_Size message. end; To temporal new code: type TMyControl = class procedure WMSize; message WM_Size; procedure DoSize; end; procedure TMyControl.WMSize; begin DoSize; end; procedure TMyControl.DoSize; begin // ... // my stuff to answer to WM_Size message. end; Try this first, in your DELPHI code. When you have this modifications, working in Delphi, then you can make your code platform independent. Example: Temporal new code: type TMyControl = class {$ifdef Windowze} procedure WMSize; message WM_Size; {$endif} {$ifdef QT} procedure QTSize; {$endif} procedure DoSize; end; {$ifdef Windowze} procedure TMyControl.WMSize; begin DoSize; end; {$endif} {$ifdef Windowze} procedure TMyControl.QTSize; begin DoSize; end; {$endif} procedure TMyControl.DoSize; begin // ... // my stuff to answer to WM_Size message. end; It's not exactly, but it's the general idea. You'll have to check Lazarus and FPC documentation, to find each winzowze message equivalent. and if i just wanted it to be working on win32 also should i change things? Yes, I started to migrate my components in Kylix, and it was the same problem. Just my 2 cents. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Request for PR noise !
Nice to hear that not all users believe into the imo stupid idea to change the name. I don't think either that the board of directors of lazarus Hi. I have start some message threads that finish in flame wars, like foundation one, which wasn't my intention. But I didn't start the message thread about changing name, I'll prefer Lazarus to get more mature, before changing name. I one of the ones who think that a new name is MUST, Lazarus seems fine for a project name, but I share the idea that taking the project to corporate world, will require a new name. And for the board of directors, what can I say, I just respect their work ;-) Just my 2 cents. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Request for PR noise !
For anybody who still insists to this name changing idea, I believe you're still allowed to build a new project based on Lazarus source codes and I DIDN'T START THE TOPIC, but even that I think it's a good idea to change the name (in time), I would like to wait to see Lazarus more mature, and of course, ( MYSELF ) make some significant contributions or bug fixes before bothering other users ;-) Just my 2 cents. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Help Framework proposal
We could use the principle of interfaces yes, but I don't think it Wait, Delphi Help system is supported by interfaces, but Lazarus still doesn't, by the moment, right ? - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Help System Requirements
one. For the moment I'm sticking on my SQLite+html idea. The html format Ça va. What about a SQLLite database that stores the help info, and a php script that calls that database... Just my 2 cents. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Who needs Unicode controls.
UTF-16 is multibyte. There are more unicode characters than 2 byte numbers, so you won't find a complete 2 byte unicode encoding. I read somewhere that there was a previous Unicode format that ALWAYS uses 2 bytes for each character, but DOESN'T support all languages. If I'm right, we can use that as a start to design a Unicode L.C.L., and eventually change to other format that support other languages. Just my 2 cents. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Who needs Unicode controls.
AFAIK you can't choose the Bidi of a font. Bidi is defined by the characters. An 'a' is always left-to-right, while an arabic character is always RTL, no matter what the font is called or setup. Can you define, what a BIDI property should do? I remember a post of a user that wanted to write (english) messages, right-left, but you're right, BIDI property dependes on the locale/font... - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] GTK/Linux vs QT/Linux Lazarus Support
Hi. Im currently making some tests with Lazarus/Win, and since I going to install it on *Linux I have some questions. Speaking of GUI Interface and Lazarus Visual Controls. 1. We have 2 main Linux platforms: - GTK based Linux with Gnome interface - QT based Linux with KDE interface right ? (unless there other support like xfce or *linux mobile devices...) I check the Lazarus roadmap, and looks a little updated, so: 2. How much progress there is in this platforms ? 3. Which distribution/platform do you recommend to install WITH LAZARUS? (I have use Ubuntu, Suse and Red Hat) I don't want to start a *Linux Distribution flame war, just a distribution in which Lazarus works. Thanks. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Who needs Unicode controls.
utf-16 doesn´t have the same number of bytes for all characters. There are also 32 bit characters on utf-16 I read somewhere in the Unicode page that there is a format with 2 bytes for all characters (monobyte/ utf-16? ) and another that the number of bytes changes changes (multibyte / UCS-2 ?) - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Who needs Unicode controls.
Take TEdit for example, which has been extended to contain properties like the Font property. Ok, you were making reference to the controls design, not the character enconding... Yes, I get, I know about OOP principles. Actually once I try to make a TFont descendant in a visual control, but It didn't allow me to replace. Actually, the Font property in visual controls, as an example of composition wasn't very well design it. Properties like BiDi should be in the Font property, maybe. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Who needs Unicode controls.
But I would like to see that implemented via composition rather than extension. I have read the Unicode Standard docs. But What do you mean by composition rather than extension. As I remember, each (Unicode) character like Arabic, are stored a as a sequence of data that a S.O. rendering engine merge into a single visual glyph. Important OOP rule: always compose when you can, only extend when you must. Good O.P.P. principle... - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Who needs Unicode controls.
The question is: should the LCL use the 'native' string type and let the applications write three times the code. Or should the LCL use UTF-8 and map internally in the interfaces and let the applications write once and compile anywhere. Maybe BOTH STUFF. There are some O.S.'es that support some kind of Unicode, others no. The ideal scenario will be that Unicode was supported by the O.S. (files, functions A.P.I.) and that programs just use that support. Maybe we could have 2 sets of libraries, one for native support and other for non-native support and wrapped them in a library: - MyProgram.pas - program MyProgram; uses (* System, *) Unicode, Crt; {#define NativeUnicode} var F: File of WideString; S, D: WideString; begin AssignFile(F, 'MyUnicodeFile.txt'); Reset(F); while (not EoF(F)) do begin ReadLn(F, S); D := Unicode.Uppercase(S); WriteLn(Crt, D); end; Close(F); end. - - Unicode.pas - unit Unicode; interface (* type WideString = ...; // defined by compiler *) implementation uses {#ifdef NativeUnicode} Native, {#else} NonNative, {#endif} (*NativeUnicode*) ; function Uppercase(const Value: widestring); begin {#ifdef NativeUnicode} Native.ToUpper(pchar(Value), pchar(Result), SizeOf(Value)); {#else} Result := NonNative.Uppercase(Value); {#endif} (*NativeUnicode*) end; end. - Any toughts. - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Re: Who needs Unicode controls.
Well the only solution i see is something like tnt componenets. Maybe, and have an especial property editor for those wide properties, since the text property cannot be used directly. using encoded string you have to decode them and then use those functions! Some applications on windowze require encoding/deconding functions as well. You see, some documents are stored in a multibyte Unicode format (UCS-16, some letters use several bytes others use 1 or 2 bytes), and in application uses same byte count Unicode format (UTF-16, all letters use the same numbers of bytes). Just my 2 cents. - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Who needs Unicode controls.
But I would like to see that implemented via composition rather than extension. Composition means something like this ? : a href=http://www.unicode.org/reports/tr17/index.html#CharacterEncodingModel; http://www.unicode.org/reports/tr17/index.html#CharacterEncodingModel/a - Marco Aurelio Ramirez Carrillo lazarus dot mramirez at star-dev dot com [dot mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] why there is no win32 component tab?
richedit components,and answers was it is not availble on other platforms? RichEdit format is a file format like HTML or PDF, uses tag and its difficult to implement. win32-lazarus?and same for other oses or interfaces? The is a Lin32 tab I think. - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Help System Requirements
1 - We cannot just get dependent on Open Office. It´s a huge dependency, and won´t work on wince for example. Open Office format it's too complicated for a help file. a lot of stuff ready. - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Help System Requirements
more productive route ATM, if the coder doesn't care anyway. Micha It seems that the one that implements it's proposal wins... - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Help System Requirements
Conclusion: The .po format is not designed/meant for large pieces of continuous text. The cool thing about *.po files are One text file for a set of messages, each message with a string ID. What about a BINARY replacement of text files such as: - Binary Help Index table (*.hidx): - Identifier|Offset - 1.|0 2.|5 - -- Binary Help Message table (*.hmsg): -- RecordNumber|Message -- 0...|Hello 5...|World -- -- Pascal file that uses resources (*.pas): -- const resHello = 1; // for Binary Index file resWorld = 2; // for Binary Index file ... function _(const Identifier: Integer): string; // function that loads a resourcestring, guven its identifier var S: string; ... S := _(resHello) + ' ' + _(resWorld); -- And use it to make a help system. My 2 cents... - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Who needs Unicode controls.
Hi, I have a question. Who of you need Unicode support in visula controls. What non Latin languages (such as Arabic, Chinese) do you need to be supported ? Just curious. - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Help System Requirements
Source file must be thought to be easy for nationalization (i. e. use .po files in the source). Maybe a source format file combination of *.po files and a XML file: xml title path= title.po / contents path= contents.po / /xml So IMHO: source file: several .po chapters merged into an xml/docbook file output file: HTML primary then PDF, txt, CHM, hlp, etc. Sounds fine. -- Marco Ciampa - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Help System Requirements
XML is fine , we only need : 1. a tool to export to various formats (HTML,PDF,CHM - all with index if possible) 2. a tool to index XML (full text search-help index) - for IDE usage (context help and others) It's seems we're getting to something similar to a html source file format and an open source chm destination file format that supports indexes... - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus Help System Requirements
Overview Hi, I started a new thread in order to summarize the comments about a Help System or Help File Format for Lazarus, or even FPC. Sorry, but I think the Re: [lazarus] New help doc format? thread was getting to big, and focused in how to implement a help system, and forgot the what does a help system has to do. I already have the same problems with Delphi or Kylix, AS WELL AS MANY OF YOU and have to deal with the same topics: Lazarus Help System Requirements 1. Cross Platform - Windowze has 2 help system versions (*.hlp files and *.chm files). Un*x based systems have man (doesn't have links, discarted, sorry). I heard that *Linux (GNU/Linux, and others) doesn't have one. It seems to me that many of you use Lazarus as a Delphi Just for Linux, instead of Alternative to Delphi available in several platforms. But the point is that there are several ports (Mac, mobile, *BSD), amd also, several of us HAVE TO WORK WITH Windowze and Linux, at the same time, and that ALSO APPLIES to the help system. A true Cross-Platform Help System must be available in SEVERAL PLATFORMS AT THE SAME TIME. A fast and dirty solution could be to use a source file format, (HTML, XML, perhaps ?) and compile it into an existing destination native file format (*.hlp or database file) that it's displayed in existing, maybe propertary, help viewers. The other (slow and clean) solution, create a whole new file format (Small Database/XML based ?) and built new help viewers. 2. Offline -- Many of us doesn't have or can't have Internet on the work or school. Wiki pages and HMTL files on the web are great, but we still need to have a help system that can be used on our home PC. Yes, I know we can have local HTML files. In case we use HTML or XML files for the help system, we need to take this on consideration. 3. Localization --- Some of us doesn't use English as our every day work language or even have to work with several languages at the same time... So the help system have to be localizated. Quick and fast solution, use a source help file and traslated to other languages. 4. Open Standard and Open Source I found, once, a help system that worked on Linux, (http://www.helpblocks.com/), but was proprietary, and doesn't solve the other requirements problems. Third-Party modules (librarys, units) may be necessary, even if they're difficult to use, but they must be open source also. So, the file format must be an Open Standard. Comments Please feel free to add any missing requirement. Just my 2 cents. - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Pascal as a pro language, was Lazarus vs Patents
This was Lazarus vs Patents thread... Here in Mexico, a lot of universities, collegues or schools doesn't known about Pascal either... I ALSO have to explain, many times, a lot of professors, students or developers, that the same way that C++, Java and C# evolve from ANSI C, the same goes for Object Pascal that evolved from Pascal... The saddest part is not that in some schools teach programming with Visual Basic, but with C++ as their first programming language :-S Just my 2 cents... - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Foundation pros
Is this enougth to buy Trolltech and make them switch to pascal? -- Felipe Monteiro de Carvalho You give good suggestions about what a foundation could do for each amount. And for Trolltech, i don't think they would leave C++ and its MOC metacompiler, but adding an Object Pascal language option maybe, like it happen with C#... - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Foundation pros
Hi. What they need is people. They (we?) don't need a foundation to make a better website, but we need someone to make a better website. Obviously the core developers don't care much about that. They have other interests. Your idea of, making some improvements to the community as an alternative of a foundation, sounds good... some programmer himself, to do the job? Just like Redhat does? I thing I got misunderstood on this. First I didn't tought of a foundation just as way of getting money, but of providing serveral resources (not just money). If you have a software-development company, and you need something in Lazarus/FPC, you can just develop it yourself, instead of giving money. Just if I have time... By example, I have a message dialog component in Delphi, that can be localizated, and it's better to use in code, example: Standard message function: uses Dialogs; ... if (Application.MessageBox('Title', 'Message', [mbOk, mbCancel] = mrOK) then And my replacement uses sdvMsgBox; ... if (MessageBox('Title', 'Message', [moOK, moCancel] = moOK)) then And the message box appears in a desidered language. But need some time in order to ported to Lazarus. documentation. Maybe. time instead. That's far more usefull. Personally, im working on that... ;-) Since 2 years ago, I already have some projects that have to migrate from Windoze to Linux, libraries, components and so on, but at that time Lazarus was too inmature, and I didn't time to help. Luckily, Lazarus have get better, (thanks to the developers that supported). Unless you have more then about 50.000 to spend, offcourse... Wish I had ;-) - mramirez [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus vs Patents
Hi, I have a question for the Lazarus/FPC community, that I got from a another thread in the mailing list (Lazarus Foundation). Does someones knows if there's a potential problem with Lazarus or FPC due to patents ? Borland, usuallys has an open mind with open source communities. But, I remember Borland sued M$ for the use of Delegation (Event pointers) as a patent... Just remember, I want to avoid a flame war, like it happen with my other comment... - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Foundation pros
Hi. I think they have a way bigger userbase that we have. Sure, they do :-) But, just because pascal-related communities are smaller than c#, c++ or Java ones, doesn't mean we have to switch to those languages, and forget about pascal... There are 10-20 messages everyday there. Then, I have to take another look... I prefer mailinglist I think forums, wiki or mailinglist, depends on the subject. Lazarus (as an IDE) topics are better in the mailing list. Starting a foundation isn't a big deal overhere. It only cost you a few eur a year. But I don't see the need for it. Maybe. The latter is more important. Time, or the will to make time. Or the boss/employer/company allows to do so... I have check the roadmap, since a year ago, and there a few things I would like to contribute, but same problem with time like other developers. Im not a troll or guy just trying to make trouble, but have the same problems of time that many of you around, here. I was thinking that a foundation with a core of developers, among other things, may help improve the project, but it seems I WAS WRONG... what will a foundation offer for those outside the us ? The foundation, not directy, but by providing more resources to the project, other poeple's work will improve, like documentation, unicode support and so on. Just my 2 cents... - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Foundation pros
Hi. Lazarus or FPC do not have administration, leadership, control, resources, etc. Wait, this isn't a flame war Lazarus does administration and the other stuff, but I think there's a point where all this stuff may get slower, if you get the idea. Metaphor: The same way there's a limit to a person running speed, and a car can surpass that limit, the same way, a foundation may surpass a community... incorporate or create a legal organization it will get totally complex. I understand and Im agree with that, but still, if the foundation is well strutured, may get more benefits over the difficulties of the complexity. Of course, a foudation may be difficult thing to start. does that mean? Maybe I should rephrase that, forums are updated, the website is fine, but many guys prefer to reply or ask into the mailing list. The relation to the foundation, is that maybe a foundation may coordinate the developers to promote the website, the forums, the wiki page, and the mailing list in way that developers may use each tool better. So why don't you have it in the forums? Because I have seen that previous questions of mine, and question from other guys, didn't get a reply... This is not the webmasters fault, this is a thing in the Lazarus community. What makes your think Lazarus is any more complex then the FPC compiler that I don't mean that crafting a compiler is a trivial task !!! Actually, I have make some compiler stuff, I know its DIFFICULT, but since Lazarus uses the compiler plus other stuff, well, it adds complexity to that... it. Im not taking of selling Lazarus, Im talking about providing more resources to the project (time, developers, tools). Im interested in Lazarus both as a hobbie and work. In my case, I use programming tools, because Im a programmer, I pay the rent from that ;-) But most of the projects you mention don't even have full time developers. They do. Maybe just 2 or 3, that help coordinate the work of volunteers... (Confirmed in the websites, but dont have the info right now) How? You make this global statement but don't give specifics. How exactly does it help? Sorry, Im just trying to start the idea, I dont have all the info by myself right now ;-) That's why also post this on the mailing list... Thanks for your critics. I hope my answers help the project, even if there's not a foundation ;-) - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Foundation pros
Mensaje original Asunto: Re: [lazarus] Lazarus Foundation pros De: Flávio Etrusco [EMAIL PROTECTED] Fecha: Mie, 26 de Abril de 2006, 4:35 pm Para: lazarus@miraclec.com -- Hi I guess the discussion is more about letting someone who the main developers trust to work on such thing, not about programmers/hackers doing annoying-irritative-pita burocratic work ;-) Its, more like that, check my last answer to Michael, one of Lazarus founders. Neither do I. Again, my mistake, forums are updated, but many developers doesn't participate on them :-( I guess he's not a CS bachelor student ;-) (Nor is he very interested in compilers...) Ops, Im thinking about thinking well my comments before writing them. Actually my degree thesis WAS ABOUT COMPILERS, I have made some traslators and interpreters (XML, HTML, C++), I know how dificult job is it. Lazarus (a developer framewok, GUI) adds more complexity to the existing complexity of the FPC compiler. Some guys (3, I think) reply to me that FPC project DIDN'T NEED a foundation, so I reply that a foundation may help Lazarus. The guy at miraclec has done a great job on keeping the project alive, (thanks Michael), but, projects like Lazarus are difficult to maintain, they not a trivial task, neither a compiler does... Metaphor: Fathers sometimes worry about their children independence, mua get them into trouble, I think Michael does cares about Lazarus ;-) I can't reply to every message, but yours and Michael was a MUST. Thanks - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [Fwd: Re: [lazarus] Lazarus Foundation pros]
This means we need more people who do not necessarily need to write code (patches) or documentation, but do have knowledge about all kinds of lazarus features (by using it themselves regularly for example), and can help users with their problems. Micha Hi. By developers, I don't mean developers that update Lazarus IDE, or Lazarus Control Library (LCL), but, developers that use Lazarus for their own programs. I think wiki and mailing list should be aimed more to Lazarus and LCL developers (that modify Lazarus), altought Lazarus users (developers that use Lazarus) are welcome. I also think that forums should be aimed to Lazarus users (developers that use Lazarus) to help themselves, and again, Lazarus and LCL developers (that modify Lazarus) are welcome. Borland's Delphi documentation mentions Delphi developers, which are VCL users (use controls but doesn't develop them) and VCL developers (develop controls), as well. Just my 2 cents. - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus Foundation pros
Lazarus Foundation (pros) advantages and disadvantages I think that the 2 main reasons that support a Lazarus/FPC foundation are: - Organization - Donations Before I continue, let me say that I thanks all the guys in this community for their work, and any comment I make, it will be as a positive critic. I want to get Lazarus To get better, no to start a flame war... Organization. By organization, I mean administration, leadership, control, resources. I see a foundation as a natural evolution of a open source community, examples: -Open Office -Apache -GNU There's a lot of things where a legally established foundation can do, that a community may lack. For example, I surprised that Lazarus forums aren't updated as it happens to Borland's groups (Delphi and others) or M$ groups... I find the mailing list/wiki very useful for bugs and improvements, but not good for common questions, (like what do I need to install it in certain Linux distribution), which I think it's better in a forum. In fact, this topic, I think it should be in a working forum ;-) I understand also that making a foundation work is not a trivial task, and it needs several things, in order to make it work. Many guys think that the FreePascal project doesn't need a foundation, but the complexity of Lazarus does. Donations. Money is required for several things. Money serves a wildcard for several things like time (hiring developers time), material resources (like cpus, servers, merchandising/publicity) As an example, a few months ago, Open Office development (version 2), a wide used open source software, has halted by lack of developers, until Google make a donation. Personally, my participation in Lazarus development, is very poor, due to my work and lack of time. I guess that some of the guys around here have the same problem, and a set of full-time core developers could help a lot. Other. Lazarus was a must for me (not in US), since a few years ago, due to the high price of Delphi, lack of localization, and dificulty to port to other OSs like Linux, BSD or mobile, not just for cheaper OSs or money, but for technical reasons. Just check how many post are from people from outside US. A foundation can help on this and more matters. Just my 2 cents... - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] [.mx] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus in Google summer of code 2006 ?
Hi. http://code.google.com/soc/mentorfaq.html Ops, no money, sorry. If yes, what project would you like to see done for lazarus ? Dynamic package linking ? Would you be interested in a whole ressource editor intégrated into the ide or in a separate tool ? (icons/xpms/bmp/windows ressources/etc...) Separate tool, It's better it's development at start. You may added to Lazarus IDE later, or create a lite version. You may also add a menu shorcut to the IDE, as it happens to the Database Explorer Program in Delphi. Good Luck !!! _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus/FPC Foundation
Hi, everyone. I read a post about Google Summer of Code 2006 and Lazarus project resources, and I wonder, is there a Lazarus Foundation or FreePascal Foundation ? I have check both websites, and we have both (open source) communities, but legally speaking, I haven't found any foundation. In case there, isn't. What do you think of making one ? - Marco Aurelio Ramirez Carrillo [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Where can I find information about creating a new widget set?
Hi. Peter, I suggest to add characters to your answers, it seems that 2 persons reply to this message but I couldn't check which one was you answer... Is this similar what Intraweb does in Delphi/Kylix? I don't know about Intraweb, but I have seen similar frameworks on the net. A completely new IDE can be an overkill for the project (at least for now) imo. The component editors acceptable (like IW does that). Actually, a new IDE or a new component Editor doesn't matter, right know, because new components start by code ;-) Thanks. ;-) What license is acceptable for you? Protective opensource like GPL, LGPL or you prefer some other license? I think you should use the same license as Lazarus does, but I think tha LGPL is preferable. Have you ever made components for Lazarus/Delphi before ? I suggest you to start with the Browser component. I ussually start with the TCustomPanel control as a base for a new control, and later add properties, methods etc. --- type TMyBrowserPage = class(TPanel) private { private declarations } protected { protected declarations } public { public declarations } published { published declarations } end; --- First, start with your TMyBrowserPage control, just pretend you already have it and you have one on you Browser form. What properties should have, which of those properties and events are in your object inspector, which ones are not but you can access by code ? Make a list on a paper or an text editor. I dont have Lazarus on my job pc right now, later I will see how can I help. I have done new visual controls for Delphi, and working on migrating to Lazarus. cheers. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Pascal and CGI-bin
I didn't write that webpage, otherwise it wouldn't have used tables. I did write http://tdbf.sf.net though. Micha Hi, are you involve in the tdbf component development ? In case you are, I downloaded a copy of that component sometime ago and made a descendant with some improvements... lazarus.mramirez |at| star |minus| dev |dot| com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Some questions about TForm.Height
Hi. minus title bar height. Actually, in Lazarus TForm.Height is equal to TForm.ClientHeight in Delphi. The CLX (QT) form in delphi had a similar problem, I need it to simulate MDI forms with independent windows/forms, and need it to known the height of title bar... So, ones more - I can't find any info about that. This problem is very If it's not posible to calculate a title bar*s height in GNU/Linux, due to the different windows managers, why don't CREATE YOUR OWN TITLE BAR WITH YOUR OWN HEIGHT ? Let me explain, if is possible to create not title forms in GNU/Linux windows managers, then a workaround could be to create a form with no titlebar, and then emulate your own titlebar with your own custom close, minimize, maximize (zoom) buttons, where you can obtain the height of the bar... *Best regards, Alexey.* Cheers. [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] HELP: getting started
Hi, I have tried to install lazarus in windoze, without success. The lazarus web page seems abandon, and I didn't allow me to download sources... Does anybody knows where I can get updated stable binaries or sources of lazarus for windowze ? Or any manual to work with fpc and sources ? Thanks. [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Re: A new marketing strategy
Microsoft bought a big piece of Borland. Maybe they taught Borland guys how to do propaganda?? Maybe, but the problem is that it cause to stop Kylix (Delphi for Linux) development, and further support of Delphi. -- Marco Aurelio Ramirez Carrillo star-dev.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] TRadioGroup and TStringList Error
Hi, I just downloaded lazarus 2.0 version for windoze, but when I try to add a TRadioGroup to a form and add some items and edit them on the TString Editor, it doesn't work. 1. What version of FPC (windowze) should I download ? 2. What version of Lazarus (windowze) should I download ? 3. Is it a TRadioGroup error or TString error ? I also read somewhere in lazarus page that TStrings descendant where not finished. (Like TMemoStrings for TMemo component) 4. I HAVE MADE some customs components for delphi, in fact I MADE A NEW TStrings descendant FROM THE GROUD, that uses 2 byte characters instead of 1 byte ASCII character, something like a TUnicodeStringList, including it's own property editor. So does anyone knows if TStringList isn't finished ? I may help in my spare time... -- Marco Aurelio Ramirez Carrillo star-dev.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus Registration
Lazarus Registration Hi, I tried to register to Lazarus Forums, a week ago, but didn't get any reply. Is something wrong with my account, or the lazarus page administrator, just had a bussy week ? ;-) -- Marco Aurelio Ramirez Carrillo star-dev.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives