Re: [lazarus] Attaching TControl.Parent to an out of process window

2006-12-03 Thread Al Boldi
Flávio Etrusco wrote: > On 11/27/06, Al Boldi <[EMAIL PROTECTED]> wrote: > > Question: > > > > Using [ form2.parent:=form1; ] attaches form2 to form1 in-process. > > > > What is needed to attach TControl.Parent to an out of process window? > > IIRC

Re: [lazarus] Gambas

2006-12-03 Thread Al Boldi
Graeme Geldenhuys wrote: > On 12/2/06, Dean Zobec <[EMAIL PROTECTED]> wrote: > > see with an accounting program is the fact that at lower level it has to > > couple with different laws and forms of taxation, so the greatest work > > is to build a flexible system that can be easily adopted to the si

Re: [lazarus] Gambas

2006-12-03 Thread Al Boldi
Graeme Geldenhuys wrote: > On 12/3/06, Al Boldi <[EMAIL PROTECTED]> wrote: > > Design Patterns won't help you introduce flexibility, they only help you > > put structure into your design. So the key here is abstraction rather > > than patterns. TObject is a great

Re: [lazarus] Gambas

2006-12-04 Thread Al Boldi
Graeme Geldenhuys wrote: > > But still, your examples are great; can you give some links? > > > > > Iterator, Visitor, Composite, Factory Method, Singleton and many > > > more... Mediator and Observer: > > Code for tiOPF: > http://sourceforge.net/projects/tiopf > Model-GUI-Mediator code: > As a

Re: [lazarus] Attaching TControl.Parent to an out of process window

2006-12-06 Thread Al Boldi
Marc Weustink wrote: > Al Boldi wrote: > > Marc Weustink wrote: > >> Al Boldi wrote: > >>> Question: > >>> > >>> Using [ form2.parent:=form1; ] attaches form2 to form1 in-process. > >>> > >>> What is needed to attach

Re: [lazarus] repository

2006-12-08 Thread Al Boldi
Michael Van Canneyt wrote: > On Fri, 8 Dec 2006, Kris Leech wrote: > > PS. How come we can reply to the Lazarus mailing list using email, but > > not the FPC mailing list... Are they on different systems? > > They are. > But why wouldn't you be able to reply to the FPC mailing list using email > ?

[lazarus] FPCUnit default automated TTestCase generation

2006-12-08 Thread Al Boldi
Unit testing is really important, but also tedious. To ease TTestCase and TAssert creation, is there a generator that implements TTestCase for some TObject, by default bounds-testing based on public/published properties? Thanks! -- Al

Re: [lazarus] repository

2006-12-11 Thread Al Boldi
Adrian Maier wrote: > On 12/11/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: > > George Birbilis schreef: > > >> All this is possible, but IMHO it is nonsense to put effort > > >> into creating such a snapshot. > > >> > > >> I think there is some intelligence test, test if people > > >> persevere

Re: [lazarus] Graphical Object Inheritance Tree

2006-12-11 Thread Al Boldi
Graeme Geldenhuys wrote: > ModelMaker is a brilliant tool and well worth learning. I just don't > think is supports include files though. Then again, i don't know of > any other UML tool that does either... > > Anyway, here is a few more... > > http://argouml.tigris.org/ > http://www.gentleware.c

Re: [lazarus] Graphical Object Inheritance Tree

2006-12-13 Thread Al Boldi
Mattias Gaertner wrote: > Al Boldi <[EMAIL PROTECTED]> wrote: > > Graeme Geldenhuys wrote: > > > ModelMaker is a brilliant tool and well worth learning. I just > > > don't think is supports include files though. Then again, i don't > &

Re: [lazarus] Graphical Object Inheritance Tree

2006-12-13 Thread Al Boldi
Mattias Gaertner wrote: > On Wed, 13 Dec 2006 14:51:48 +0300 > > Al Boldi <[EMAIL PROTECTED]> wrote: > > Mattias Gaertner wrote: > > > Al Boldi <[EMAIL PROTECTED]> wrote: > > > > Graeme Geldenhuys wrote: > > > > > ModelMaker is a

Re: [lazarus] Graphical Object Inheritance Tree

2006-12-16 Thread Al Boldi
Mattias Gaertner wrote: > Al Boldi <[EMAIL PROTECTED]> wrote: > > Mattias Gaertner wrote: > > > Al Boldi <[EMAIL PROTECTED]> wrote: > > > > Mattias Gaertner wrote: > > > > > Al Boldi <[EMAIL PROTECTED]> wrote: > > > > >

Re: [lazarus] Using threads in console app

2006-12-16 Thread Al Boldi
Lee wrote: > Hi, > > I'm trying to write a TCP server with synapse blocking sockets. > > I created a TThread decendent class to listen for incoming requests and > it works ok, except it looks like it executes in the main thread because >the console no longer responds when my class is executed a

Re: [lazarus] Graphical Object Inheritance Tree

2006-12-16 Thread Al Boldi
Mattias Gaertner wrote: > Al Boldi <[EMAIL PROTECTED]> wrote: > > > > > Can you be more specific? What is ChildClass? > > > > > I would expect a function to scan the classes of the project or > > > > > a package. For example: >

Re: [lazarus] Component to force one instance by application

2006-12-17 Thread Al Boldi
Luiz Americo Pereira Camara wrote: > Kris Leech wrote: > > Good stuff, did you come across any issues with simpleIPC, Ive been > > meaning to have a go with it for a while... > > I had two issues with simpleipc: > - in unix the TSimpleIPCServer.OnMessage event is not fired. To > override this, a s

Re: [lazarus] Compile Error for TiOPF components

2007-01-13 Thread Al Boldi
Nataraj S Narayan wrote: > > Is anybody using actual object model in Lazarus ? I mean, classes for > say 'Purchase Orders' - which will have the modules for persistance like > TQuery /TTable ,defined inside the PO class? > > I hear that biggest issue is to map object model to relational model. > Wh

Re: [lazarus] Compile Error for TiOPF components

2007-01-13 Thread Al Boldi
Graeme Geldenhuys wrote: > On 1/13/07, Al Boldi <[EMAIL PROTECTED]> wrote: > > If you are verse in OOP, there is really no need for an OPF, as an OPF > > only aids you in plumbing up your classes, while limiting you to the > > extent of the specific BusinessObject. >

Re: [lazarus] Compile Error for TiOPF components

2007-01-15 Thread Al Boldi
Graeme Geldenhuys wrote: > On 1/13/07, Al Boldi <[EMAIL PROTECTED]> wrote: > > OPF is really meant as a glue between OOP and the DBMS, to yield an > > ODBMS interface on the client side, for seamless OOP to DBMS > > integration. This may save you some coding, but o

Re: [lazarus] Compile Error for TiOPF components

2007-01-15 Thread Al Boldi
Graeme Geldenhuys wrote: > On 1/15/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > > For my implementation which rather uses RTTI to set and get Object > > property values have a look at: > > http://tinyurl.com/y5akb5 > > > > and the following units. > > tiGenericEditMediators.pas > > tiGe

Re: [lazarus] Compile Error for TiOPF components

2007-01-15 Thread Al Boldi
Graeme Geldenhuys wrote: > On 1/15/07, Al Boldi <[EMAIL PROTECTED]> wrote: > > >4. *Tight coupling to a data access API.* The BDE allows us to swap > > > aliases when you want to change databases, but what if you want to > > > switch from BDE data acce

Re: AW: [lazarus] ZeosLib and Lazarus

2007-01-15 Thread Al Boldi
Helmut Hartl wrote: > Also we are a very small team developing Zeos at the moment - > so if someone is interested to team up and help us - you are welcome. Any documentation available? Or even a simple README, describing project approach and goal? Thanks! -- Al ___

Re: [lazarus] Lazarus for Python (L4P)

2007-01-15 Thread Al Boldi
Algis Kabaila wrote: > > 2. My personal experience and details. I will simply say here that I am a > really old man - I will be 82 in a few weeks time. When did you start programming? What languages did you use? Which one is the best? How does OOP affect development (pros/cons)? Is there a better

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 base

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 writt

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

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 exis

Re: [lazarus] sqlite dataset in thread

2007-01-16 Thread Al Boldi
Does your program work without threads? If it does, make sure you call TThread.Synchronize(SyncMethod) when necessary. Thanks! -- Al [EMAIL PROTECTED] wrote: > Hi > > if i want to use this strings > > tablo.ExecSQL( 'select type_name from servers where id='+ > inttostr( record_id) ); > type_

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=92177&package_id= > >>138755 > > > > It seems to be quite old: 2005-05-26. > > A ne

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 hidde

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

[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 { TMyThr

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 num

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

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 &g

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

2007-01-21 Thread Al Boldi
Mattias Gaertner wrote: > Al Boldi <[EMAIL PROTECTED]> wrote: > > Vincent Snijders wrote: > > > Jesus Reyes schreef: > > > > --- Al Boldi <[EMAIL PROTECTED]> escribiظژ: > > > >> TListBox: 10k rows in 73sec > > > >>

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 > > > >

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 ==

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. > >

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

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 > da

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 > > > ev

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 happen

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 (CTR

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 u

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 he

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 u

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 proba

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 t

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

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 go

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 a

[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

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

Re: [lazarus] CodeTools and a GUI Class Builder

2007-06-15 Thread Al Boldi
Graeme Geldenhuys wrote: > Hi, > > Has anybody done something like this with CodeTools yet? Creating a > GUI Lazarus addon or seperate application that can build or edit > classes? Great idea! > I would like to build such a tool or help someone that already started > with such a tool. This would

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 S

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 a

[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 cu

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

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 g

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 cov

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. > > >

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 ?

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 choi

Re: [lazarus] New User Friendly BuildLazDialog patch

2007-07-25 Thread Al Boldi
Graeme Geldenhuys wrote: > 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 buttons is weird and

Re: [lazarus] New User Friendly BuildLazDialog patch

2007-07-25 Thread Al Boldi
Mattias Gärtner wrote: > Zitat von Al Boldi <[EMAIL PROTECTED]>: > > Graeme Geldenhuys wrote: > > > 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 > > > >

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 ju

[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

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 ori

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. www.pr

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 db

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 th

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 do

Re: [lazarus] Lazarus and InstantObjects ?

2007-11-09 Thread Al Boldi
Joao Morais wrote: > Al Boldi wrote: > > Where is the data cached? > > Attributes belong to business objects. BOs are reference counted and the > ones that wasn't removed from the memory are referenced by a cache that > belongs to the persistence service. Sounds g

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

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

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 a

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 >

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] Clone objects

2007-11-12 Thread Al Boldi
Vincent Snijders wrote: > Mattias Gaertner schreef: > On Mon, 12 Nov 2007, Damien Gerard wrote: > > I use this : > > http://wiki.lazarus.freepascal.org/Streaming_components However > > I ve got an exception error : Class "" not found (I put only a > > panel). > > > > > Maybe t

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 l

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

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); > >>   LibHandle := LoadLibrary('thread2lib.dll'); > >> CreateMyThreadFunc := GetProcedureAddress(LibHandle,'Create

Re: [lazarus] A Thread in DLL

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

Re: [lazarus] A Thread in DLL

2007-12-07 Thread Al Boldi
melchiorre caruso wrote: > Can you post text only messages? > I try to use CheckSyncronize() in the application loop but without > result; > The function synchronize appears to be broken and, > the event on-terninate not be called. I do not know the reason. Can you post example-code? Thanks!

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 > >> > >> "

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 > >

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 archiv

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] Making GTK Thread Safe

2007-12-12 Thread Al Boldi
Giuliano Colla wrote: > To discover that if your timer event doesn't change something visual, > the smart thing decides that there's nothing important to do, and stays > Idle, so that the OnIdle handler is never called. My kludge has been to > have the Timer update a Label in a hidden corner of the

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 > > o

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

2007-12-13 Thread Al Boldi
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 like the existing fpc_crosswin32 package, but finally for > more platforms. :) I had a look at fpc_cross

Re: [lazarus] Making GTK Thread Safe

2007-12-13 Thread Al Boldi
Martin Schreiber wrote: > Don't forget MSEide+MSEgui: > http://sourceforge.net/projects/mseide-msegui > MSEgui has several possibilities to synchronize worker threads with the > main GUI thread. > > First there is application.lock/unlok which works on a mutex. The main > eventloop acquires the mute

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

2007-12-13 Thread Al Boldi
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 u

Re: [lazarus] Making GTK Thread Safe

2007-12-13 Thread Al Boldi
Martin Schreiber wrote: > On Friday 14 December 2007 10.52, Al Boldi wrote: > > Martin Schreiber wrote: > > > Don't forget MSEide+MSEgui: > > > http://sourceforge.net/projects/mseide-msegui > > > MSEgui has several possibilities to synchronize work

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 mere

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

  1   2   3   >