Re: [Lazarus] When do I need a component rather than a plain object?

2010-11-17 Thread Sven Barth
Am 17.11.2010 07:36, schrieb Graeme Geldenhuys: Op 2010-11-16 17:31, Michael Van Canneyt het geskryf: It's similar to me not seeing the point of the various "Dialog" (file open, font select, color select etc) components on the component palette - it's equally easy using them directly in code whe

Re: [Lazarus] StringGrid performance problems

2010-11-17 Thread Martin Schreiber
On Wednesday, 17. November 2010 08.23:22 Graeme Geldenhuys wrote: > I then did a simple test to see what could be the cause of problems in the > LCL app (and why it looks frozen). I created a stringgrid with exact > dimensions, a single column. I then used a simple test method that > generates log

Re: [Lazarus] When do I need a component rather than a plain object?

2010-11-17 Thread Martin Schreiber
On Wednesday, 17. November 2010 07.36:55 Graeme Geldenhuys wrote: > > Just curious and a bit off-topic I guess, but is there some advantage to > have the various dialog components dropped on a form at design time? MSEgui filedialog components for example have a "statfile" property to save and res

Re: [Lazarus] When do I need a component rather than a plain object?

2010-11-17 Thread Graeme Geldenhuys
Op 2010-11-17 10:33, Sven Barth het geskryf: > > Right click on the dialog -> test dialog Um, never knew about that feature. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/ -- ___

Re: [Lazarus] When do I need a component rather than a plain object?

2010-11-17 Thread Mattias Gaertner
On Wed, 17 Nov 2010 08:56:33 +0200 Graeme Geldenhuys wrote: > Op 2010-11-17 01:22, Juha Manninen het geskryf: > > If I understand right it is caused by different widgetsets and themes and > > whatever. There is no change in the actual layout (all controls are > > anchored) > > but it adds nois

[Lazarus] How do you create some kind of type definition based on adding a set if identical functions to different objects with different ancestors?

2010-11-17 Thread Frank Church
I don't know whether interfaces are what I am looking for here. I am creating an object called TStateInfoSource which needs to display its state using different objects, mainly a TForm, a TFrame, some future TComponent based visual object and a web interface as yet undecided. eg, both the TForm,

Re: [Lazarus] TDBF extension question

2010-11-17 Thread Joost van der Sluis
On Mon, 2010-11-15 at 19:21 -0600, Marco Aurelio Ramirez Carrillo wrote: > Hi. > > Years ago, when the TDBF component was made first for delphi, > I downloaded and made an extension, which replaces the "TDBF.path" property, > for a reference for a Database component with the path. > > TDBF => > T

Re: [Lazarus] When do I need a component rather than a plain object?

2010-11-17 Thread Andrea Mauri
Il 17/11/2010 07:56, Graeme Geldenhuys ha scritto: I presume that is what causes all Lazarus IDE dialogs to looks as follows? Lots and lots of clipping, incorrect positioning of components etc.. See attached image. I have the same behaviour on Lazarus 0.9.29 r28292 FPC 2.4.2 i386-win32-win32/win

[Lazarus] Compiler Hints: how to turn them off only for a specific directory

2010-11-17 Thread Alexsander Rosa
I'm using Synapse from SVN and it has hundreds of hints. I do not want to turn hints off for everything, just for Synapse's path. Is there a way to do this? -- Atenciosamente, Alexsander da Rosa Linux User #113925 "Extremismo na defesa da liberdade não é defeito. Moderação na busca por justiça n

Re: [Lazarus] Compiler Hints: how to turn them off only for a specific directory

2010-11-17 Thread Vincent Snijders
2010/11/17 Alexsander Rosa : > I'm using Synapse from SVN and it has hundreds of hints. I do not want to > turn hints off for everything, just for Synapse's path. Is there a way to do > this? Create a lazarus package for Synapse. In the custom compiler options of the package add -vh- Vincent --

Re: [Lazarus] When do I need a component rather than a plain object?

2010-11-17 Thread Max Vlasov
2010/11/16 Frank Church > > > Setting properties in code is fine, and some design IDE component can be > used to generate the source code to initialize them at runtime. > > Thought about it recently, I think that having some IDE menu item "Paste as code" (for objects as text in clipboard) or exte

[Lazarus] Should using frames result in duplicate name errors?

2010-11-17 Thread Frank Church
I am trying to use frames to create the same element repeatedly on a form, but when I copy them in the IDE or create them and set their parents at runtime, I get duplicate name errors. Isn't Lazarus supposed to give them different names. embFrame1 := TEmbBoothFrame.Create(self); embFrame1.Pare

Re: [Lazarus] When do I need a component rather than a plain object?

2010-11-17 Thread José Mejuto
Hello Lazarus-List, Wednesday, November 17, 2010, 12:41:26 PM, you wrote: AM> Il 17/11/2010 07:56, Graeme Geldenhuys ha scritto: >> I presume that is what causes all Lazarus IDE dialogs to looks as follows? >> Lots and lots of clipping, incorrect positioning of components etc.. See >> attached im

Re: [Lazarus] Should using frames result in duplicate name errors?

2010-11-17 Thread Mattias Gaertner
On Wed, 17 Nov 2010 17:45:01 + Frank Church wrote: > I am trying to use frames to create the same element repeatedly on a form, > but when I copy them in the IDE or create them and set their parents at > runtime, I get duplicate name errors. Isn't Lazarus supposed to give them > different nam

Re: [Lazarus] Should using frames result in duplicate name errors?

2010-11-17 Thread Frank Church
On 17 November 2010 19:28, Mattias Gaertner wrote: > On Wed, 17 Nov 2010 17:45:01 + > Frank Church wrote: > > > I am trying to use frames to create the same element repeatedly on a > form, > > but when I copy them in the IDE or create them and set their parents at > > runtime, I get duplicate

Re: [Lazarus] When do I need a component rather than a plain object?

2010-11-17 Thread Maxim Ganetsky
17.11.2010 9:56, Graeme Geldenhuys пишет: Lots and lots of clipping, incorrect positioning of components etc.. Examples? See attached image. It is a bug of TButtonPanel. See http://bugs.freepascal.org/view.php?id=17791. Please leave a comment there, in what OS/Widgetset you reproduced this

[Lazarus] Should using frames result in duplicate name errors?

2010-11-17 Thread Steve Smith
On Wed, 17 Nov 2010 17:45:01 + Frank Church wrote I am trying to use frames to create the same element repeatedly on a form, but when I copy them in the IDE or create them and set their parents at runtime, I get duplicate name errors. Isn't Lazarus supposed to give them different nam

[Lazarus] Lazarus from Daily Snapshots

2010-11-17 Thread faber
I get error when install lazarus from daily snapshot Lazarus-0.9.29-28261-fpc-2.4.3-20101116-win32.exe Message error: The component editor of class "TDefaultComponentEditor" has created the error: "Unable to find method. Please fix error shown in the message window." C:\lazarus\lcl\lclclasses.pp(

Re: [Lazarus] StringGrid performance problems

2010-11-17 Thread Jesus Reyes
--- El mié 17-nov-10, Graeme Geldenhuys escribió: > Under fpGUI > this test took 5 seconds to complete, MSEgui took 10 > seconds (just for fun, > I tied MSEgui too). LCL took well, I kill the app after > 3 hours of 100% > CPU load and still nothing being displayed. Thank goodness > I have a

Re: [Lazarus] Lazarus from Daily Snapshots

2010-11-17 Thread Vincent Snijders
2010/11/17 faber : > I get error when install lazarus from daily snapshot > Lazarus-0.9.29-28261-fpc-2.4.3-20101116-win32.exe > > Message error: > The component editor of class "TDefaultComponentEditor" has created the error: > "Unable to find method. Please fix error shown in the message window."

[Lazarus] Does Lazarus support component templates?

2010-11-17 Thread Frank Church
Does Lazarus support component templates, like in http://docwiki.embarcadero.com/RADStudio/en/Creating_and_using_component_templates_%28C%2B%2B%29 ? I think I saw them on the menu some time ago, unless it was frames, or they require a package I am missing. -- Frank Church =

Re: [Lazarus] StringGrid performance problems

2010-11-17 Thread Graeme Geldenhuys
Op 2010-11-18 00:19, Jesus Reyes het geskryf: > > Sure, I think it can be improved but currently I have other priorities. Understood, I just wanted to know if it was a known problems. For the LCL version of my app, I'll try the ListView (or TreeView like Lazarus IDE does). > I was trying to fin