Re: [lazarus] I still have an ifdef request

2008-01-31 Thread Al Boldi
Mattias Gaertner wrote: Ok, then plan a. The IDE should add the -B automatically. Thanks a lot. Where should I start looking? Or it's the sort of things which is more readily done than explained? Yes. Implemented for packages and project. Can the codetools also detect changes in the

Re: [lazarus] I still have an ifdef request

2008-01-31 Thread Al Boldi
Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Ok, then plan a. The IDE should add the -B automatically. Thanks a lot. Where should I start looking? Or it's the sort of things which is more readily done than explained? Yes

Re: [lazarus] Making the IDE work with C/C++

2008-01-22 Thread Al Boldi
Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Exactly right! The best feature is find declaration/implementation, but this only works for pascal code. What is needed to make this work for c/c++? Maybe a plugin for ctags can be written. Yes, that may be the easiest way

Re: [lazarus] Making the IDE work with C/C++

2008-01-22 Thread Al Boldi
Mattias Gärtner wrote: Zitat von Al Boldi [EMAIL PROTECTED]: Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Exactly right! The best feature is find declaration/implementation, but this only works for pascal code. What is needed to make this work for c/c

Re: [lazarus] What is wrong with the Toolbar?

2008-01-22 Thread Al Boldi
Graeme Geldenhuys wrote: On 22/01/2008, Paul Ishenin [EMAIL PROTECTED] wrote: Moving implementation from LCL to widgetset is simply the WRONG way to go. Then use fpGUI or mseGUI. This is not wrong way, it is way selected by lazarus team long time ago. Custom controls cannot bring

Re: [lazarus] What is wrong with the Toolbar?

2008-01-22 Thread Al Boldi
Graeme Geldenhuys wrote: On 22/01/2008, Al Boldi [EMAIL PROTECTED] wrote: Before you do that, I just tried fpGUI and it didn't compile due to cursorfont unit missing. So I added {$include cursorfont.inc} from fpc/packages/extra/forms, then it compiles ok, but I get this crash on run using

Re: [lazarus] Making the IDE work with C/C++

2008-01-22 Thread Al Boldi
Mattias Gärtner wrote: Zitat von Al Boldi [EMAIL PROTECTED]: Exactly right! The best feature is find declaration/implementation, but this only works for pascal code. What is needed to make this work for c/c++? Maybe a plugin for ctags can be written. Yes

Re: [lazarus] Introduction

2008-01-22 Thread Al Boldi
Giuliano Colla wrote: I've been earning my bread and butter developing computer applications for 40 years now (my God, how old I've become! :-) ) Wow, that's impressive. Maybe you could share some of your experience regarding these question: What languages did you use? Which one is the best?

Re: [lazarus] What is wrong with the Toolbar?

2008-01-22 Thread Al Boldi
Vincent Snijders wrote: Al Boldi schreef: Is there any specific reason you are stuck with 2.0.2 and can't upgrade? If it's a good reason, I can consider adding a IFDEF in the code. Well, when Vincent starts posting incremental updates, I may actually be able to upgrade easily

Re: [lazarus] What is wrong with the Toolbar?

2008-01-22 Thread Al Boldi
Vincent Snijders wrote: IMHO zipped incremental updates are impossible, because you cannot zip file removals. I think you can, like this: diff -ruNp file.pas /dev/null file.diff patch file.diff This removes the file. Thanks! -- Al

Re: [lazarus] Introduction

2008-01-22 Thread Al Boldi
Giuliano Colla wrote: Al Boldi ha scritto: Giuliano Colla wrote: I've been earning my bread and butter developing computer applications for 40 years now (my God, how old I've become! :-) ) Wow, that's impressive. Maybe you could share some of your experience regarding these question

Re: [lazarus] What is wrong with the Toolbar?

2008-01-22 Thread Al Boldi
Vincent Snijders wrote: Ok. You can download your patch by (all on one line): svn diff http://svn.freepascal.org/svn/fpc/tags/release_2_0_2 http://svn.freepascal.org/svn/fpc/tags/release_2_2_0 ugrade.patch Thanks a lot! When will this be on sourceforge as .bz2? Thanks again for the great

[lazarus] Making the IDE work with C/C++

2008-01-21 Thread Al Boldi
Graeme Geldenhuys wrote: On 21/01/2008, Giuliano Colla [EMAIL PROTECTED] wrote: Without a mature IDE to work with, fpGUI isn't worth the trouble. It becomes much easier to learn C++ and use Qt Designer, or whatever. Umm... I don't know how I should take this! :-) fpGUI is by no means

Re: [lazarus] Rebuilding RTL and FCL inside LazIDE

2008-01-17 Thread Al Boldi
Peter Vreman wrote: Mattias, what is needed to add rebuilding RTL/FCL from within the IDE? I don't think this is a good idea to add to an IDE. Because recompiling the RTL means that you need to recompile all installed units. For fpc we are working on a package system that can help in this

[lazarus] Rebuilding RTL and FCL inside LazIDE

2008-01-16 Thread Al Boldi
Christian U. wrote: RTL and FCL are never build while building lazarus its a bit hard to add an option for this i think. Mattias, what is needed to add rebuilding RTL/FCL from within the IDE? Thanks! -- Al _ To

[lazarus] HowTo increase developer contributions

2008-01-15 Thread Al Boldi
Vincent Snijders wrote: So what we need it users that are willing to become contributors, not users that contribute nothing. They are welcome of course. But they are not *needed* for Lazarus to advance. Please, correct me, where I am making a mistake in my reasoning. Things start small like

[lazarus] Native debugger

2008-01-15 Thread Al Boldi
Cesar Liws Gmail wrote: We need a native debugger support for FPC/Lazarus programs on all platforms.That's the big issue everyone seems to avoid talking about... I agree with you, and this is the kind of Project that I want to participate. Check out

Re: [lazarus] Making GTK Thread Safe

2008-01-07 Thread Al Boldi
Giuliano Colla wrote: BTW could you refresh my memory? What kernel and libc are you running with? linux2.6.22/libc2.3.1 Here is threadbug.c which doesn't show any leaks: // gcc -lpthread threadbug.c -o threadbug #include pthread.h void *threadbug() { printf(.); } main(){ int i;

Re: [lazarus] Making GTK Thread Safe

2008-01-06 Thread Al Boldi
Giuliano Colla wrote: willem ha scritto: well I made 10 copy's of threadbug and run them in parallel. In my case libpthread does not allocate a 10 Mb memory block, because the 10 processes should allocate 100Mb of memory Top does show only a sligth increase in memory . On my kubuntu

Re: [lazarus] Making GTK Thread Safe

2008-01-05 Thread Al Boldi
Giuliano Colla wrote: Al Boldi ha scritto: For now, when you start a thread non-suspended, TThread.Execute(false), can you see the memory increase for your project1 app when checking with top? Then, when you TThread.WaitFor/TThread.Free, does it decrease? And by how much? Below

Re: [lazarus] Making GTK Thread Safe

2008-01-05 Thread Al Boldi
willem wrote: well I made 10 copy's of threadbug and run them in parallel. In my case libpthread does not allocate a 10 Mb memory block, because the 10 processes should allocate 100Mb of memory Top does show only a sligth increase in memory . On my kubuntu there are 145 processes allocated .

Re: [lazarus] Making GTK Thread Safe

2008-01-04 Thread Al Boldi
Giuliano Colla wrote: Al Boldi ha scritto: I played with this some more, and it turns out that not only is FreeOnTerminate completely broken but Free only frees the OS-thread memory if the thread is still running or is preceded by a WaitFor. This is on fpc2.0.2/linux. Maybe this has

Re: [lazarus] Making GTK Thread Safe

2008-01-01 Thread Al Boldi
Al Boldi wrote: Micha Nelissen wrote: Al Boldi wrote: I think the race comes in when you have two competing threads wanting to synchronize the the main thread. It just hangs. Are you sure? This should work properly. Can you provide example (in a bugreport)? Well, it's not easily

Re: [lazarus] Making GTK Thread Safe

2007-12-30 Thread Al Boldi
Micha Nelissen wrote: Al Boldi wrote: I think the race comes in when you have two competing threads wanting to synchronize the the main thread. It just hangs. Are you sure? This should work properly. Can you provide example (in a bugreport)? Well, it's not easily repeatable, and seems

Re: [lazarus] OnIdle event is effective only on last (last created?) form ?!

2007-12-17 Thread Al Boldi
Andrey Gusev wrote: With many forms have implements OnIdle event (TApplicationProperties) only one work really. Sample projects is attached. Debug output files must be identical, but for lazarus's project we only see output from 'bbb' form, whereas for delphi's - correct, intermittent from

Re: [lazarus] OnIdle event is effective only on last (last created?) form ?!

2007-12-17 Thread Al Boldi
Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Andrey Gusev wrote: With many forms have implements OnIdle event (TApplicationProperties) only one work really. Sample projects is attached. Debug output files must be identical, but for lazarus's project we only see

Re: [lazarus] A Thread in DLL

2007-12-17 Thread Al Boldi
melchiorre caruso wrote: Al Boldi wrote: I do not know how to do it, It turns out that you need an export trick to do this. Include the attached 'LibSyncMgr.inc' into your lib after your exports-line with this line: {$i LibSyncMgr.inc} Make sure there is no LCL

Re: [lazarus] A Thread in DLL

2007-12-15 Thread Al Boldi
Michael Van Canneyt wrote: On Sat, 15 Dec 2007, Al Boldi wrote: melchiorre caruso wrote: I found an article that explains why my code does not work on Windows: Actually, I had a closer look at synchronize, and it turns out to be dependent on the GUI, which probably means that you need

Re: [lazarus] A Thread in DLL

2007-12-15 Thread Al Boldi
Vincent Snijders wrote: Al Boldi schreef: Vincent Snijders wrote: WakeMainThread is just one way to make sure that the calling thread calls CheckSynchronize from time to time. Synchronize does not depend on how the main thread call CheckSynchronize, just that it is accomplished

Re: [lazarus] A Thread in DLL

2007-12-14 Thread Al Boldi
melchiorre caruso wrote: I found an article that explains why my code does not work on Windows: Actually, I had a closer look at synchronize, and it turns out to be dependent on the GUI, which probably means that you need to include 'Interfaces' in your library uses clause. Can you try this

Re: [lazarus] Making GTK Thread Safe

2007-12-13 Thread Al Boldi
Michael Van Canneyt wrote: On Wed, 12 Dec 2007, Razvan Adrian Bogdan wrote: The synchronize method is simple but inefficient, it pauses your thread until the main thread has time to execute your code and could take some time until it does, i personally also dislike the fact that one

Re: [lazarus] cross compile deb status and next problem

2007-12-13 Thread Al Boldi
Vincent Snijders wrote: Al Boldi schreef: Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Sam Liddicott [EMAIL PROTECTED] wrote: THAT much works; so merely installing a cross-compiler deb will let lazarus just pick it up and run Nice. Just

Re: [lazarus] cross compile deb status and next problem

2007-12-13 Thread Al Boldi
Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: It would be nice to only have the absolute minimum needed to enable cross-compile. The tools should be in another package. The tools are for example assembler and windres. Some tools like gprof are nice to have. True, but optional

Re: [lazarus] Making GTK Thread Safe

2007-12-13 Thread Al Boldi
Swen Heinig wrote: Hello Al Boldi, you are able to send emails from future? I would suggest to check the date settings on your computer. Thanks for pointing this out! This is a linux suspend-to-disk/ram problem. The bios clock is correct, it's the linux-system clock that gets sometimes

Re: [lazarus] Making GTK Thread Safe

2007-12-13 Thread Al Boldi
Graeme Geldenhuys wrote: On 13/12/2007, Martin Schreiber [EMAIL PROTECTED] wrote: Is there web gateway for this? No, use a news client, Mozilla Thunderbird for win32/Linux or KNode for Linux for example. You will probably like the conversation by NNTP, much more convenient than mailing

Re: [lazarus] cross compile deb status and next problem

2007-12-13 Thread Al Boldi
Mattias Gaertner wrote: To compile the binutils you need the c development packages for your system. That's quite a lot. Yes, that's why I think a precompiled binutils package containing only the 3-4 binaries for cross-compile could save a lot. Just like binutils-win32. And you need the FPC

Re: [lazarus] Making GTK Thread Safe

2007-12-13 Thread Al Boldi
Micha Nelissen wrote: Martin Schreiber wrote: Fourthly there is FPC synchronize with the problem that checksynchronize is called once in onidle of then main event loop. One can call application.wakeupguithread to enable processing but there is a race condition. AFAICS, these are all

Re: [lazarus] libview enhancement

2007-12-10 Thread Al Boldi
Roberto Padovani wrote: This helps me because I had some dll with many exported functions and with both call type. I hope someone will find it useful, as well. Neat, but this only works on windows. Can you make it cross-platform? Thanks! -- Al

Re: [lazarus] A Thread in DLL

2007-12-09 Thread Al Boldi
melchiorre caruso wrote: Al Boldi wrote: melchiorre caruso wrote: if I use in execute method the source if Assigned (FMethod) then FMethod; instead of if Assigned (FMethod) then Synchronize(FMethod); the method fMethod is called but not synchronized

Re: [lazarus] A Thread in DLL

2007-12-09 Thread Al Boldi
melchiorre caruso wrote: Al Boldi wrote: So it's either an fpc or windows issue. Can you statically link it on windows, and see if it make a difference? I have statically linked library to application with this results Library.MainBlock MainThreadID = 3496 Library.MainBlock

Re: [lazarus] A Thread in DLL

2007-12-09 Thread Al Boldi
melchiorre caruso wrote: Can You send to me the source that runs correctly on linux? I am using your source. Thanks! -- Al _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives

Re: [lazarus] A Thread in DLL

2007-12-08 Thread Al Boldi
melchiorre caruso wrote: Al Boldi wrote: melchiorre caruso wrote: procedure TTestLibrary.TestBtnClick(Sender: TObject); nbsp; LibHandle := LoadLibrary('thread2lib.dll'); CreateMyThreadFunc := GetProcedureAddress(LibHandle,'CreateMyThread'); Make sure your library actually loads

Re: [lazarus] A Thread in DLL

2007-12-07 Thread Al Boldi
melchiorre caruso wrote: procedure TTestLibrary.TestBtnClick(Sender: TObject);br beginbr nbsp; LibHandle := LoadLibrary('thread2lib.dll');br nbsp; CreateMyThreadFunc := GetProcedureAddress(LibHandle, 'CreateMyThread');br Make sure your library actually loads... nbsp; if

Re: [lazarus] A Thread in DLL

2007-12-07 Thread Al Boldi
melchiorre caruso wrote: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN Can you post text only messages? ttI try to use CheckSyncronize() in the application loop but without result;br The function synchronize appears to be broken and, br the event on-terninate not be called. I

Re: [lazarus] Search engine for Lazarus and Free Pascal concerned stuff

2007-11-24 Thread Al Boldi
Sam Liddicott wrote: Al Boldi wrote: Sam Liddicott wrote: I recommend xapian; www.xapian.org I've worked on it, I've used it and I've followed it's progress and when I worked at Orange we hired one of the developers to enhance it. It is based on a once-commercial search engine

Re: [lazarus] Search engine for Lazarus and Free Pascal concerned stuff

2007-11-23 Thread Al Boldi
Sam Liddicott wrote: Tom Gregorovic wrote: Hi, it crossed my mind that it would be convenient to have one search service for all the information about Lazarus and Free Pascal, which are in forums, mail list archives, documentation reference, wiki, Mantis, SVN repository, SVN log, blog

Re: [lazarus] Lazarus and InstantObjects ?

2007-11-10 Thread Al Boldi
Graeme Geldenhuys wrote: On 10/11/2007, Al Boldi [EMAIL PROTECTED] wrote: You don't need to do this. Eg: create a form without code or non-visual components, bind BO attributes and components in a single line, and the MVP will do the rest for you using informations from the model

Re: [lazarus] ParentWindow

2007-11-10 Thread Al Boldi
Mattias Gaertner wrote: I think ParentWindow is very widgetset specific (see below). Probably it will work cross platform very limited. See at end for an alternative solution. - AFAIK under winapi you can stack handles even of different processes. gtk does not allow this. I don't know about

Re: [lazarus] Lazarus and InstantObjects ?

2007-11-10 Thread Al Boldi
Joao Morais wrote: Al Boldi wrote: Oh, I meant the OPF design. Is it possible to isolate the OPF from the MVP? Ah yes, they are completely decoupled. You can: var VClient: TClient; VClientList: TPressProxyList; begin VClient := TClient.Create; // or VClient

Re: [lazarus] ParentWindow

2007-11-10 Thread Al Boldi
Mattias Gaertner wrote: Maybe my statement was not clear: The Parent/Child connection is the main problem. It would be easier to handle the child/parent relationship by the LCL and keep the 1:1 mapping between controls and handles. So, all that is needed is a TForeignHandleControl with a

Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Al Boldi
Joao Morais wrote: Al Boldi wrote: Joao Morais wrote: I am currently working in an IO-like project with a smarter, faster and more customizable OPF engine, decoupled frameworks (after all data type and opf aren't the same thing), no dbware or tdataset dependency, and the best item

Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Al Boldi
Joao Morais wrote: Al Boldi wrote: You see, trying to create an OPF as a separate layer that connects to the db via a broker is just broken by design, as this will introduce a tremendous overhead due to the dual caching problem. I agree with you that this will cause some overhead

Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Al Boldi
Joao Morais wrote: Al Boldi wrote: A small overhead do exist actually, I don't think it's small, unless you mean small apps which deal with textual data only. For large apps that deal with blobs, the overhead may bring down your system. No, small overhead even to applications

Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Al Boldi
Joao Morais wrote: Al Boldi wrote: Of course you are not caching any relational data, but you said that you are using a connection broker to the rdb, which caches the rdb data, which means extra overhead. Hmmm... the rdb or the suite that access the rdb caching data means extra resource

Re: [lazarus] Lazarus and InstantObjects ?

2007-11-08 Thread Al Boldi
Joao Morais wrote: I am currently working in an IO-like project with a smarter, faster and more customizable OPF engine, decoupled frameworks (after all data type and opf aren't the same thing), no dbware or tdataset dependency, and the best item: no backward compatibility to bother.

Re: Lazarus on one window (aka SDI)

2007-09-12 Thread Al Boldi
Well, I guess the screenshot was too big (87KB), so here is the text only. Graeme Geldenhuys wrote: Hi Victor, Could you explain how you managed the MDI look? Where the editor (synedit) gets created? I use the Toolbar Editor add-on package which creates a panel

Re: Lazarus on one window (aka SDI)

2007-09-12 Thread Al Boldi
Víctor R. Ruiz wrote: Hi: Hi 2007/9/12, Al Boldi [EMAIL PROTECTED]: I once posted A Studio IDE layout, which worked by re-parenting the ide windows inside a TStudio form. This meant that it did not require any changes to the original windows, which made it possible to easily switch

[lazarus] How to compile IDE for Windows platform

2007-09-05 Thread Al Boldi
I have the sources of FPC/Laz up and running on linux, and now I want to compile them on windows. Do I need to download the sources again, or is there a platform specific tools package that allows me to recompile with the same sources? Thanks! -- Al

Re: [lazarus] How to compile IDE for Windows platform

2007-09-05 Thread Al Boldi
Giuliano Colla wrote: Al Boldi ha scritto: I have the sources of FPC/Laz up and running on linux, and now I want to compile them on windows. Do I need to download the sources again, or is there a platform specific tools package that allows me to recompile with the same sources? There's

Re: [lazarus] New User Friendly BuildLazDialog patch

2007-07-25 Thread Al Boldi
Giuliano Colla wrote: Graeme Geldenhuys ha scritto: On 25/07/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: All in all I think it would be better to have a PageControl with 2 tabs Quick build and Custom. It's cleaner and more conform the other dialogs in the IDE. The jumping of the

Re: [lazarus] Form designer code inside .pas unit

2007-07-23 Thread Al Boldi
Graeme Geldenhuys wrote: Hi, What are the pros and cons for letting the form designer add code inside the .pas unit instead of a separate .lfm file? For example: Lazarus and Delphi uses external files (.lfm and .dfm) to save information about forms designed using the form designer. .dfm

Re: [lazarus] Form designer code inside .pas unit

2007-07-23 Thread Al Boldi
Michael Van Canneyt wrote: On Mon, 23 Jul 2007, Al Boldi wrote: Graeme Geldenhuys wrote: So again, what is the pros and cons between the two design choices when using the Object Pascal language? .dfm is good for beginners, who get confused looking at code they didn't write. .pas

Re: [lazarus] Making Configure Build Lazarus more user friendly

2007-07-23 Thread Al Boldi
Giuliano Colla wrote: The configure build lazarus IDE provides a lot of options which the majority of us don't use, but we're however forced to check/uncheck. Therefore I've added a small Group Box, named Quick Configure Options with thre buttons: All, LCL, and Custom. The first two cover (in

Re: [lazarus] Making Configure Build Lazarus more user friendly

2007-07-23 Thread Al Boldi
Mattias Gärtner wrote: Zitat von Al Boldi [EMAIL PROTECTED]: Giuliano Colla wrote: The configure build lazarus IDE provides a lot of options which the majority of us don't use, but we're however forced to check/uncheck. Therefore I've added a small Group Box, named Quick Configure

Re: [lazarus] Form designer code inside .pas unit

2007-07-23 Thread Al Boldi
Michael Van Canneyt wrote: On Mon, 23 Jul 2007, Al Boldi wrote: This really has nothing to do with resources. Resources should still be saved in its own .res file. Forms are stored in resources. A dfm is changed to resource and then compiled in the binary ? The .dfm is being used for two

Re: [lazarus] Form designer code inside .pas unit

2007-07-23 Thread Al Boldi
Mattias Gärtner wrote: Zitat von Al Boldi [EMAIL PROTECTED]: Michael Van Canneyt wrote: On Mon, 23 Jul 2007, Al Boldi wrote: Graeme Geldenhuys wrote: So again, what is the pros and cons between the two design choices when using the Object Pascal language? .dfm is good

[lazarus] Find in Files using an external Indexing Engine

2007-07-17 Thread Al Boldi
Al Boldi wrote: Michael Van Canneyt wrote: On Sun, 4 Jun 2006, Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Al Boldi wrote: The SourceEditor currently has the ability to search in files by searching a complete directory hierarchy

Re: [lazarus] form embedded in another form

2007-07-09 Thread Al Boldi
Cesar Romero wrote: And why do you think a form.OnCreate would fire at the right moment ? Well, using embedded forms at runtime... you create the form when you need the form. At which point the OnCreate fires. Frames are meant for usage at design time, so you have no control at runtime,

Re: [lazarus] CodeTools and a GUI Class Builder

2007-06-15 Thread Al Boldi
Graeme Geldenhuys wrote: On 15/06/07, Al Boldi [EMAIL PROTECTED] wrote: A good starting point would probably be a DBTable-To-Class importer. tiOPF already has something link this - well kinda. The tool is called tiSQLEditor. You write and execute you SQL statement and see the result screen

Re: [lazarus] Threads and Forms

2007-06-08 Thread Al Boldi
Luca Olivetti wrote: I wasn't actually interested in updating the counter, it was just a test to see if while I was sleeping ;-) the LCL became automagically thread safe :-D [*] (I still remember the shock when I wrote my first delphi 2.0 heavily multithreaded application only to discover

[lazarus] PHP IDE-plugin

2007-04-08 Thread Al Boldi
Cesar Romero wrote: Im already using here, dispite any other opinion, D4PHP is a very productive tool. Pieter Valentijn wrote: I just Bouth it as well. Even do its class herachie is not optimal it's mutch beter than notepad It sure is! But the real question is: How difficult would it be to

Re: [lazarus] History of the widget set design?

2007-04-03 Thread Al Boldi
Sergei Gorelkin wrote: And there are tons of similar issues, which make any fpGUI app feel extermely alien in Windows. As a programmer, I can say that fixing such issues is actually a much harder and boring job than what you had already done. Agreed. Nevertheless, you are on a really good

Re: [lazarus] AllocateHWnd

2007-04-03 Thread Al Boldi
Felipe Monteiro de Carvalho wrote: On 4/3/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Can someone give a short example or point me to the right mail, where AllocateHWnd is needed and why it must be implemented in all LCL interfaces instead of the LCL? At some point I thougth about

Re: [lazarus] Changing TObject

2007-03-21 Thread Al Boldi
Marco van de Voort wrote: On Wed, Mar 21, 2007 at 07:15:41AM +0300, Al Boldi wrote: (reserved in the VMT by the virtual directive), it doesn't create room. This is also why you can't override non virtual methods. Thanks for this very clear and to the point answer

Re: [lazarus] Changing TObject

2007-03-20 Thread Al Boldi
Antonio Sanguigni wrote: And, broadly speaking, it is not a good practice modifying an ancestor to suite these needs. Yes, as this would probably require a recompile of the ancestor. But, why is it not possible to override the ancestor? Thanks! -- Al

Re: [lazarus] Changing TObject

2007-03-20 Thread Al Boldi
Marco van de Voort wrote: On Tue, Mar 20, 2007 at 01:58:56PM +0300, Al Boldi wrote: Antonio Sanguigni wrote: And, broadly speaking, it is not a good practice modifying an ancestor to suite these needs. Yes, as this would probably require a recompile of the ancestor. But, why

Re: [lazarus] Changing TObject

2007-03-20 Thread Al Boldi
Marco van de Voort wrote: Marco van de Voort wrote: (reserved in the VMT by the virtual directive), it doesn't create room. This is also why you can't override non virtual methods. Thanks for this very clear and to the point answer. Would it be possible to implement virtual

Re: [lazarus] Illegal Expression -- Exit

2007-03-16 Thread Al Boldi
Bram Kuijvenhoven wrote: If Exit is a variable or field in the local scope, you actually get the 'illegal expression' error. But, it should at least give you a warning at the overriding variable then? Thanks! -- Al _ To

Re: [lazarus] Difference between TThread and BeginThread

2007-03-11 Thread Al Boldi
Sebastian Kraft wrote: I looked through fpc docs and found the function BeginThread( func) to execute the function func as a seperate thread. What are the (dis)advantages of this very easy usage compared to creating a TThread class? TThread is an oop-wrapper for BeginThread, and binds

Re: Ideas to implement AllocateHwnd

2007-02-25 Thread Al Boldi
Felipe Monteiro de Carvalho wrote: I started implementing this on LCLIntf, but I am having a lot of trouble with type declarations. AllocateHWnd needs a parameter of type TWndProc = procedure (var Message: TLMessage) of object; But TWndProc is declared on controls, and no basic lcl unit uses

Re: [lazarus] Copy 'n paste in the editor

2007-02-23 Thread Al Boldi
Vincent Snijders wrote: Kris Leech schreef: Ger Remmers wrote: Select some text (plain ascii) in a mail message (Kmail) or a news post (Knode) and copy it (CTRL-C or CTRL-Ins). Switch to Lazarus Editor Window and right-click. In the menu select Paste. Nothing visual happens ie, no

Re: [lazarus] Copy 'n paste in the editor

2007-02-23 Thread Al Boldi
Vincent Snijders wrote: Al Boldi schreef: Vincent Snijders wrote: Kris Leech schreef: Ger Remmers wrote: Select some text (plain ascii) in a mail message (Kmail) or a news post (Knode) and copy it (CTRL-C or CTRL-Ins). Switch to Lazarus Editor Window and right-click. In the menu

Re: [lazarus] add a timer?

2007-02-20 Thread Al Boldi
Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: 于野 wrote: I'm a Chinese OIer(which is short for someone who has intersts in 'Olympiad in Informatics'). Now I'm using Lazarus to debug. but every time when I want to know how much time it spend during the program runs, I have

Re: [lazarus] add a timer?

2007-02-15 Thread Al Boldi
于野 wrote: I'm a Chinese OIer(which is short for someone who has intersts in 'Olympiad in Informatics'). Now I'm using Lazarus to debug. but every time when I want to know how much time it spend during the program runs, I have to add something like this: var ta,tb:Tsystemtime; begin

Re: [lazarus] lazarus saves every time I compile

2007-02-06 Thread Al Boldi
Andrea Mauri wrote: My problem is, I have a big project, with many units, I make a lot of modifications daily, I want to test if everything works as I want, so I compile my project many times in a day. I don't want that lazarus saves my project every time I compile it and I don't want to

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-22 Thread Al Boldi
Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: TListBox: 10k rows in 73sec TTreeView: 100k rows in 50sec TMemo: 100k rows in 30sec TListView: 100k rows in 1.5sec TStringGrid: 100k rows in 0.5sec Here is the code

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-22 Thread Al Boldi
Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Preallocating the tree in TTreeView could improve its speed a lot. I doubt that. It already works with exponential growth. Preallocate in 16sec TreeView1.BeginUpdate; TreeView1.Items.Clear; for i:=1

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-22 Thread Al Boldi
Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Preallocating the tree in TTreeView could improve its speed a lot. I doubt that. It already works with exponential growth. Preallocate in 16sec

[lazarus] TThread help-doc example

2007-01-20 Thread Al Boldi
TThread.Create and TThread.Synchronize example: Under UNIX compile with -dUseCThreads. interface [...] { TMyThread } TMyThread=class(TThread) procedure Execute; override; procedure UpdateGUI; end; var Form1: TForm1; MyThread1:TMyThread; i:integer; implementation {

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-20 Thread Al Boldi
Jesus Reyes wrote: --- Mattias Gaertner [EMAIL PROTECTED] escribiَ: Can TStringGrid handle 30.000 rows? Because this is easily created by compiling with -vt and TListBox can not handle it fast enough. I think it can do it, though, atm it's not optimized to handle very huge number of

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-20 Thread Al Boldi
Mattias Gaertner wrote: TListBox speed depends on the widgetset implementation, so it's speed is always limited. The best speed you get by not talking to external libs. ;) I just tried TListView and it's super fast: 100k rows in 1.5 sec But it's really slow when free'ing the list. Thanks!

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-20 Thread Al Boldi
Jesus Reyes wrote: That means that we already have all those strings in some other place and only some strings are sent to the listbox? Yes. in this case another approach could be made, a drawgrid with custom scrollbar handling could do it. If the TreeView solution is not implemented by

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-20 Thread Al Boldi
Vincent Snijders wrote: Jesus Reyes schreef: --- Al Boldi [EMAIL PROTECTED] escribiَ: TListBox: 10k rows in 73sec TTreeView: 100k rows in 50sec TMemo: 100k rows in 30sec TListView: 100k rows in 1.5sec TStringGrid: 100k rows in 0.5sec Are you sure?, this doesn't match

Re: [lazarus] TXMLDocument from string

2007-01-19 Thread Al Boldi
Vincent Snijders wrote: Mattias Gaertner schreef: On Tue, 16 Jan 2007 19:42:32 +0100 Vincent Snijders [EMAIL PROTECTED] wrote: There is http://sourceforge.net/project/showfiles.php?group_id=92177package_id= 138755 It seems to be quite old: 2005-05-26. A new set is available on:

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-19 Thread Al Boldi
Mattias Gaertner wrote: Can TStringGrid handle 30.000 rows? Because this is easily created by compiling with -vt and TListBox can not handle it fast enough. I noticed this too. So I added a TMemo to the Messages window with a TSplitter. TMemo is then updated with the full (including hidden)

Re: [lazarus] TXMLDocument from string

2007-01-19 Thread Al Boldi
Vincent Snijders wrote: Al Boldi schreef: The only missing thing is probably code examples. It maybe a good idea to add a link after the code-help description, to either see an example, or add one thru the wiki or by email. BTW, I could only find RTL and LCL help. Where is the FCL

Re: [lazarus] Compile Error for TiOPF components

2007-01-16 Thread Al Boldi
Graeme Geldenhuys wrote: On 1/15/07, Al Boldi [EMAIL PROTECTED] wrote: It is very easy to change to any TObject descendant class that as RTTI enabled and a simple implementation of the Observer pattern. MGM is a compound pattern based on the Observer and Mediator pattern. I would

Re: [lazarus] ZeosLib and Lazarus

2007-01-16 Thread Al Boldi
Graeme Geldenhuys wrote: On 1/16/07, Joost van der Sluis [EMAIL PROTECTED] wrote: I've been thinkink about using tiOPF for a project at work. But for that I have to change it so that it can use SQLDB. That can't be that hard, so maybe I\m gonna help you there. I've already written the

Re: [lazarus] Lazarus for Python (L4P)

2007-01-16 Thread Al Boldi
Tiziano_mk wrote: I wish to add this missing item that i find more interesting: Maybe you want to use python to control OpenOffice with Free pascal? It's possible, just embed FPC with the python embedded in OpenOffice. During holydays I made successfully this test (on windows) and I am

Re: [lazarus] TXMLDocument from string

2007-01-16 Thread Al Boldi
Mattias Gaertner wrote: There is too few information on that functions... sometime programming with lazarus i feel blind. Where can i found a manual with all Lazarus functions, and where can i search if i don't find anything there? This manual does not yet exist. The source

  1   2   >