Re: [Lazarus] Docking manager implementation
On Sun, Jan 25, 2009 at 2:24 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: * Auto resize of components so translation text NEVER gets clipped. I have fixed things like this a 100 times in Lazarus, until the next person edits something in that form, or somebody changes something in the widgetset code. With LCL as used in Lazarus IDE, such things are always broken. 1. Can you give the bug report number for the broken layouts, where the translation overlap in the IDE? Yes. See attached image. I have a few more screenshots I can send as well. * See the captions of Major version, Minor Version and Build * See the Other info group box. Like I said, there are a few more. Over the years I am submitted patches, just to see the issue appear somewhere else again. So now I gave up on this issue. 2. You can overlap in MiG too. Only if you explicitly specify (x,y) position of components! Via standard usage, it will never occur. ... instead it needs some extra properties for that. It is semi automatic. All you need to specify is if the button is one of the common types: Help, OK, Cancel etc... MiG then automatically detects the platform and arranges the buttons correctly. * Built-in debug mode, to help with layout design and debugging. Do you mean the red and green borders? That does not help much. IMHO a good designer should visualize the dependencies. And a good layout manager would make a visual designer obsolete. Visual designers have lots of issues or write crappy code, which a programmer could have done much better manually. Issues with Delphi and Lazarus visual designer: Global variable for the form; All components are published and publicly available etc... The list goes on. All not great OO design principals. Most Java visual designers are even worse! Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ attachment: ProjectOptions_VersionInfo.png___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Docking manager implementation
On Sun, Jan 25, 2009 at 2:24 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: It's true that the current LCL properties are only pixel based and have no properties for cm, inches, percentages, That's a feature of MiG. OTOH I never saw an example where this was extensively required. If you only need that at a few places you could use OnResize. Percentages is often used in designing a layout. View some websites HTML source or CSS files. So why can't that be applied to real GUI programming as well. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Docking manager implementation
On Sun, Jan 25, 2009 at 2:25 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: Form.Create Form.OnResize OnCustomAlignPosition OnCustomAlignInsertBefore each components.OnResize etc MiGLayout does all the above in one location - easy to find, edit and maintain. Let's stay realistic. There will always be cases where you need methods/events to override. For example: Changes to the content of a control. For example the columns of a TStringGrid. I'm talking about the space components take up, not the internals of a specific component. eg: A panel with three buttons in a horizontal line. You might be able to AutoSize the buttons if there captions change. But the Panel will not auto size to fit the new larger buttons. The buttons will simply get clipped. Make no mistake, LCL has much better anchoring and alignment than Delphi - but there are still many areas of concern. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Docking manager implementation
On Sun, 25 Jan 2009 14:24:50 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On Sun, Jan 25, 2009 at 2:25 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: Form.Create Form.OnResize OnCustomAlignPosition OnCustomAlignInsertBefore each components.OnResize etc MiGLayout does all the above in one location - easy to find, edit and maintain. Let's stay realistic. There will always be cases where you need methods/events to override. For example: Changes to the content of a control. For example the columns of a TStringGrid. I'm talking about the space components take up, not the internals of a specific component. eg: A panel with three buttons in a horizontal line. You might be able to AutoSize the buttons if there captions change. But the Panel will not auto size to fit the new larger buttons. The buttons will simply get clipped. Why not? It is done on most IDE dialogs. Make no mistake, LCL has much better anchoring and alignment than Delphi - but there are still many areas of concern. True. Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Labels shows blocks...
Hi, I've created an application that reads .csv files (specially structured) and creates labels etc. from it. But some characters (especially ' and ) displays as blocks, as the .csv files are created in excel2007, and they don't use proper ascii... Is there an easy fix (even find replacing the file at runtime might help)? Regards, -Reenen -- o__ ,_./ _ (_)_\(_)___ ...speed is good ___ I believe five out of four people have a problem with fractions. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Not sure if the Laz Devs have seen this...
Michael Van Canneyt schrieb: The real reason I keep my eye on git is that Subversion is a real pain if you have a lot of branches. Tracking all revisions of a file accross branches (something we do a lot at work) is incredibly slow. The subversion graph takes meanwhile a full 5 minutes to build up. How long does it take for you on FPC/Lazarus? I get revision graphs instantly for FPC/Lazarus with TortoiceSVN 1.5.7. - Do you have the latest TortoiseSVN installed? - Did you once update your log cache so that it contains really all items? ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] A popup menu of a component do not apear when i set a popup for the form
When a set a popup menu for a form your components show this popup, not your popups. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Free Open Source Diagram Components for Lazarus?
I'm looking for a diagramming components for Lazarus, to draw circles, rectangles, and connectors between them that are resized or moved when the components are moved. This would be used to create graph editors, for example for designing dynamic models. Do you have ideas about a mature component I could use for this purpose? I've been thinking about using GLScene as a 2D layer, but it seems to be overkill for my purpose (although 3D diagrams... hum.) Best regards, Thierry ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Free Open Source Diagram Components for Lazarus?
On Sun, 25 Jan 2009 22:41:47 +0100 Thierry Coq t...@free.fr wrote: I'm looking for a diagramming components for Lazarus, to draw circles, rectangles, and connectors between them that are resized or moved when the components are moved. This would be used to create graph editors, for example for designing dynamic models. Do you have ideas about a mature component I could use for this purpose? I've been thinking about using GLScene as a 2D layer, but it seems to be overkill for my purpose (although 3D diagrams... hum.) I'm interested in that too. Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Free Open Source Diagram Components for Lazarus?
Mattias Gaertner schrieb: I'm looking for a diagramming components for Lazarus, to draw circles, rectangles, and connectors between them that are resized or moved when the components are moved. This would be used to create graph editors, for example for designing dynamic models. Do you have ideas about a mature component I could use for this purpose? I've been thinking about using GLScene as a 2D layer, but it seems to be overkill for my purpose (although 3D diagrams... hum.) I'm interested in that too. I've got SmartDraw http://www.smartdraw.com for drawing such diagrams, years ago. But I'm not sure about programmatical access to the drawings. Should we start a new project? DoDi ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Colors and Themes
When I wanted to add dock headers to the docking manager, I stumbled across several problems with colors. For Windows e.g. clActiveCaption or clBtnFace can be used for the header and button background, but these color constants are marked deprecated. How should I select the most appropriate colors, for different platforms and themes? DoDi ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Colors and Themes
Hans-Peter Diettrich wrote: For Windows e.g. clActiveCaption or clBtnFace can be used for the header and button background, but these color constants are marked deprecated. How should I select the most appropriate colors, for different platforms and themes? Where have you found that they are deprecated? Only CLX colors are deprecated and will be removed maybe before lazarus 1.0. Both clActiveCaption and clBtnFace can be used without any warry. Best regards, Paul Ishenin. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Free Open Source Diagram Components for Lazarus?
On Sun, Jan 25, 2009 at 7:41 PM, Thierry Coq t...@free.fr wrote: I'm looking for a diagramming components for Lazarus, to draw circles, rectangles, and connectors between them that are resized or moved when the components are moved. This would be used to create graph editors, for example for designing dynamic models. Do you have ideas about a mature component I could use for this purpose? I've been thinking about using GLScene as a 2D layer, but it seems to be overkill for my purpose (although 3D diagrams... hum.) Best regards, Thierry If GPL is an option, ESS-Model may be of some use: http://essmodel.sourceforge.net/ Best regards, Flávio ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus