Re: [Lazarus] How to rename a Form
2013/2/21 Alejandro Gonzalo : > It's less confusing to always leave the main form name as Form1 (with its > file name being specific to the project, I use the project name with a F > appended at the end). This way when you click View Forms you always know > which is the main form. It is even less confusing to give it the name MainForm if it is actually the mainform. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to rename a Form
It's less confusing to always leave the main form name as Form1 (with its file name being specific to the project, I use the project name with a F appended at the end). This way when you click View Forms you always know which is the main form. A. G. > > From: Howard Page-Clark >To: lazarus@lists.lazarus.freepascal.org >Sent: Wednesday, February 20, 2013 1:18 PM >Subject: Re: [Lazarus] How to rename a Form > >On 20/02/13 9:05, Frédéric Loyer wrote: >> When I create a new application project, my program start with a Unit1 >> (I can easily rename), associated with a "Form1" I can't rename. >> >> How can I change the name of this "form" ? >In the Lazarus IDE, make sure the form is selected by clicking it, move focus >to the Object Inspector (F12), scroll down to the Name property (first column) >and change the "Form1" entry (second column) to whatever you prefer. > > >-- >___ >Lazarus mailing list >Lazarus@lists.lazarus.freepascal.org >http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to rename a Form
On 20/02/13 9:05, Frédéric Loyer wrote: When I create a new application project, my program start with a Unit1 (I can easily rename), associated with a "Form1" I can't rename. How can I change the name of this "form" ? In the Lazarus IDE, make sure the form is selected by clicking it, move focus to the Object Inspector (F12), scroll down to the Name property (first column) and change the "Form1" entry (second column) to whatever you prefer. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to rename a Form
Hi, When I create a new application project, my program start with a Unit1 (I can easily rename), associated with a "Form1" I can't rename. How can I change the name of this "form" ? -- Frederic Loyer -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] from hfiandor about Linear Programing
Dear Mr. Geldenhuys: really, I don´t understand what you try to said me. Maybe is an idiom problem. I just put this message for the first time. Mr Frank Church answer me in a right way, but I want to learn how to do a question and not receive a message as your. I don´t replay to anyone. Thanks to Mr. Church. tjhanks Ing. Héctor F. Fiandor Rosario hfian...@infomed.sld.cu - Original Message - From: Graeme Geldenhuys To: lazarus@lists.lazarus.freepascal.org Sent: Wednesday, February 20, 2013 4:26 AM Subject: Re: [Lazarus] from hfiandor about Linear Programing Hi, Don't reply to another thread to start a new one. You screw with the message thread hierarchy in the mailing list archives and in our email clients, and people will probably miss your post if they were not interested in the top most post (thread title). G. On 2013-02-20 23:01, Héctor F. Fiandor Rosario wrote: > Dear friends, > > I want to know if somebody have incursioned in Linear Programing with Lazarus, in special, the simplex revised method. > > thanks in advance, > > Ing. Héctor F. Fiandor Rosario > hfian...@infomed.sld.cu -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem a Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ZeosDBO
On 2013-02-20 19:01, Marco van de Voort wrote: > > You do know the branch you checked out? :-) http://svn.code.sf.net/p/zeoslib/code-0/trunk Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ZeosDBO
On Tue, Feb 19, 2013 at 09:53:20PM +, Graeme Geldenhuys wrote: > until my project actually compiled. I'm using Zeos checked out from the > SubVersion repository on SourceForge, and my copy is at r1848. No idea > what version it is at. You do know the branch you checked out? :-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] from hfiandor about Linear Programing
2013/2/20 Héctor F. Fiandor Rosario : > Dear friends, > > I want to know if somebody have incursioned in Linear Programing with > Lazarus, in special, the simplex revised method. > > thanks in advance, > > Ing. Héctor F. Fiandor Rosario > hfian...@infomed.sld.cu > > http://pages.videotron.com/aminer/lp/linear.htm Look in the Lazarus forums third-party libraries for user named 'aminer'. I don't know much about linear programming but I suspect you will find something related in his libraries. > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] XML Property Editor
On 2013-02-20 14:43:36 -0300, Daniel Gaspary wrote: > On Wed, Feb 20, 2013 at 12:00 PM, Leonardo M. Ramé wrote: > > I'm writing a component with a property containing an XML string and need > > a property editor for it. Before writing one I would like to know if > > there's one already done. > > Since XML is a string, what type of editing are you expecting? > > An Editor with highlight, a tree representation.. ? > I don't know, something better than TStringList editor. At least one based on TSynEdit, with syntax highlighting. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] XML Property Editor
On Wed, Feb 20, 2013 at 12:00 PM, Leonardo M. Ramé wrote: > I'm writing a component with a property containing an XML string and need > a property editor for it. Before writing one I would like to know if > there's one already done. Since XML is a string, what type of editing are you expecting? An Editor with highlight, a tree representation.. ? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] from hfiandor about Linear Programing
Hi, Don't reply to another thread to start a new one. You screw with the message thread hierarchy in the mailing list archives and in our email clients, and people will probably miss your post if they were not interested in the top most post (thread title). G. On 2013-02-20 23:01, Héctor F. Fiandor Rosario wrote: > Dear friends, > > I want to know if somebody have incursioned in Linear Programing with > Lazarus, in special, the simplex revised method. > > thanks in advance, > > Ing. Héctor F. Fiandor Rosario > hfian...@infomed.sld.cu -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] from hfiandor about Linear Programing
Dear friends, I want to know if somebody have incursioned in Linear Programing with Lazarus, in special, the simplex revised method. thanks in advance, Ing. Héctor F. Fiandor Rosario hfian...@infomed.sld.cu -- Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem a Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] XML Property Editor
I'm writing a component with a property containing an XML string and need a property editor for it. Before writing one I would like to know if there's one already done. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Form event
Le 20/02/2013 11:36, Hans-Peter Diettrich a écrit : Antonio Fortuny schrieb: Le 19/02/2013 19:34, Hans-Peter Diettrich a écrit : Antonio Fortuny schrieb: Hi folks. Do you know an event or any other trick I could use when a form re-gains control, i.e. is focused again ? Events OnShow, OnActivate fire only once after OnCreate. These were my candiates as well. The form is brought to the foreground by the means of a MyForm.BringToFront once a OtherForm.ShowModal returns. The reason is because the WindowsCE forms stack control seems to be rubbish. Sorry, I don't know how WinCE behaves in this case. Very simple: when yo exit a modal displayed form you are not always sure to have on the screen the form which displayed the closed one. That's why I guess that forms stack is not very well managed These are two problems. One is the Z order maintenance, and another one which messages are sent. I only know from working on one program (C++), that WinCE differs from traditional Windows behaviour. I can aknowledge. This strange behaviour is what we see. This the reason why on ShowModal return a Self.BringToFront is performed and Z order stack problems are solved But when ShowModal returns, you can do whatever is needed - e.g. invoke FormActivate or whatever handler contains your specific code. Yes, but the problem is that this main form shows two dozens of other forms ! It's easy to gain control after ShowModal returns but the code has to be repeated as many times as ther are forms to process. AFAIR the LCL maintains a forms list in Z order (Application.Forms?), which may be useful to establish the wanted Z order. DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Form event
Antonio Fortuny schrieb: Le 19/02/2013 19:34, Hans-Peter Diettrich a écrit : Antonio Fortuny schrieb: Hi folks. Do you know an event or any other trick I could use when a form re-gains control, i.e. is focused again ? Events OnShow, OnActivate fire only once after OnCreate. These were my candiates as well. The form is brought to the foreground by the means of a MyForm.BringToFront once a OtherForm.ShowModal returns. The reason is because the WindowsCE forms stack control seems to be rubbish. Sorry, I don't know how WinCE behaves in this case. Very simple: when yo exit a modal displayed form you are not always sure to have on the screen the form which displayed the closed one. That's why I guess that forms stack is not very well managed These are two problems. One is the Z order maintenance, and another one which messages are sent. I only know from working on one program (C++), that WinCE differs from traditional Windows behaviour. But when ShowModal returns, you can do whatever is needed - e.g. invoke FormActivate or whatever handler contains your specific code. Yes, but the problem is that this main form shows two dozens of other forms ! It's easy to gain control after ShowModal returns but the code has to be repeated as many times as ther are forms to process. AFAIR the LCL maintains a forms list in Z order (Application.Forms?), which may be useful to establish the wanted Z order. DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Append or Insert?
On 02/20/2013 09:21 PM, Junior wrote: What better use? Using SQLite3. How to record in the table? You haven't given us a lot to go on! If you are inserting or appending into an indexed table, as far as I know it doesn't make any difference. (And ALL sql tables should be indexed). I usually use append. I think on some tables insert attempts to insert a record into the current location, but this doesn't make any sense in sql, and probably isn't possible. Very basically, using sqldb components, you insert a record, post the insert to the query, apply updates on the query, then commit the transaction. But I will leave detailed descriptions to someone who knows SQLIte - I have always had trouble with it. There is heaps of information on the wiki, see eg http://wiki.lazarus.freepascal.org/Databases hope this helps a bit John Sunderland -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Append or Insert?
What better use? Using SQLite3. How to record in the table? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Form event
Le 19/02/2013 19:34, Hans-Peter Diettrich a écrit : Antonio Fortuny schrieb: Hi folks. Do you know an event or any other trick I could use when a form re-gains control, i.e. is focused again ? Events OnShow, OnActivate fire only once after OnCreate. These were my candiates as well. The form is brought to the foreground by the means of a MyForm.BringToFront once a OtherForm.ShowModal returns. The reason is because the WindowsCE forms stack control seems to be rubbish. Sorry, I don't know how WinCE behaves in this case. Very simple: when yo exit a modal displayed form you are not always sure to have on the screen the form which displayed the closed one. That's why I guess that forms stack is not very well managed But when ShowModal returns, you can do whatever is needed - e.g. invoke FormActivate or whatever handler contains your specific code. Yes, but the problem is that this main form shows two dozens of other forms ! It's easy to gain control after ShowModal returns but the code has to be repeated as many times as ther are forms to process. The form I want to manage control is also the main form of the program. In a Delphi program I send the main form user-defined messages, whenever certain informations have been changed by other code and must be reflected in my main form. I'm used to send messsages as well. Again, it supposes the (almost) same code to be reproduced for every form. DoDi I think I'm going to implement a timer wich will periodically launch the code. I'll just disable it on places where the program must not be interrupted. In my mind I was thinking to use those moments where the operator comes back to the main menu to start another operation which ensures that nothing else important is guing on, like one form event Thanks anyway I think -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Signal handling
On Feb 20, 2013 9:16 AM, "Mark Morgan Lloyd" < markmll.laza...@telemetry.co.uk> wrote: > > Mark Morgan Lloyd wrote: >>> >>> If I want to poll a variable set by an asynchronous unix-style signal, i.e. that doesn't have an OS-level handle and where the latency should probably be of the order of 100mSec, what's the most effective technique? > > > > If I understand correctly, the self pipe trick is probably best, then > > you don't have to poll, just add the handle to select(). > > But there's no handle, simply a (global) variable. This continues from an earlier discussion where Sven was cautioning that about the only thing you could do safely in a signal handler was set a (global) variable: that bit I knew, but I don't know how best to deal with the variable once set if there's no convenient timer etc. (I should have threaded the question onto that, but I thought it was on a different list). You create the pipe, add the read end fd to select, write a byte to the write end fd in the signal handler. There are a bunch of examples floating around on the web. Henry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Signal handling
Mark Morgan Lloyd wrote: If I want to poll a variable set by an asynchronous unix-style signal, i.e. that doesn't have an OS-level handle and where the latency should probably be of the order of 100mSec, what's the most effective technique? > If I understand correctly, the self pipe trick is probably best, then > you don't have to poll, just add the handle to select(). But there's no handle, simply a (global) variable. This continues from an earlier discussion where Sven was cautioning that about the only thing you could do safely in a signal handler was set a (global) variable: that bit I knew, but I don't know how best to deal with the variable once set if there's no convenient timer etc. (I should have threaded the question onto that, but I thought it was on a different list). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPSpreadSheet keeps existent formulas?
Some days ago I finished RPN formula writing for BIFF8, but there is still no formula reading support. One problem is that the topic of formulas is very large. Your example has only =A1+B1 which is very simple and should be easy to implement. What other formulas do you want to use? -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Signal handling
On Feb 20, 2013 8:36 AM, "Mark Morgan Lloyd" < markmll.laza...@telemetry.co.uk> wrote: > > If I want to poll a variable set by an asynchronous unix-style signal, i.e. that doesn't have an OS-level handle and where the latency should probably be of the order of 100mSec, what's the most effective technique? If I understand correctly, the self pipe trick is probably best, then you don't have to poll, just add the handle to select(). Henry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Signal handling
On 20.02.2013 11:36, Mark Morgan Lloyd wrote: If I want to poll a variable set by an asynchronous unix-style signal, i.e. that doesn't have an OS-level handle and where the latency should probably be of the order of 100mSec, what's the most effective technique? Thread1 fEvent.WaitFor(INFINITE); // hang on signal handle Thread2 fEvent.SetEvent; // this releases thread1 form waiting regards Anton -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Signal handling
If I want to poll a variable set by an asynchronous unix-style signal, i.e. that doesn't have an OS-level handle and where the latency should probably be of the order of 100mSec, what's the most effective technique? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus