Re: [Lazarus] What are widgets in lazarus?
Graeme Geldenhuys schrieb: As mentioned above, *every* dragmanager must have handles for all involved components. An OS-wide dragmanager can only use OS-wide handles, e.g. those of the OS-wide window manager. Lets take Windows OLE drag-n-drop protocol as an example. It needs the window handle of the component (eg: TEdit) that can accept a drop. So what? If somebody *wants* to allow OLE drag-drop for a component, he must choose an appropriate one (here one with a HWND, or some other OLE/COM object). If you want such dragging for a single pixel, you must wrap that pixel into an container that supports dragging. Drag-drop does not come at zero cost. Irrespective if it is a drag-from-component-to-component-inside-same-app or a drag and drop from one app to another. In Qt 4.4 and later, such an Edit component doesn't have a windows handle any more, so OLE can't talk to that Edit component. The only OS window handle is the top-level form. Trolltech had to implement some serious black magic in Qt to still work with OLE DND - yet no difference to the end-user. This is what I'm so impressed with, and have no real clue how they accomplished that (yet). I cannot see any black magic here, even if it may sound like that to marketing people. When the OLE dragmanager needs a HWND, for sending messages to a source or target, any such HWND is sufficient. The receiver of the message can determine a more specific source or target at will, i.e. allow for an drop inside a window only, when the coordinates match a specific control inside that window. The Lazarus dragmanager does this already. If nothing helps, the application can create a temporary invisible window, or any other applicable OLE object, on top of the target control. This object then can be moved to every possible target control, that resides at the current mouse position. But this is not a necessary requirement at all, when the screen position of the target area is explicitly stored in the OLE object. There exist more components, like timers, that have no visual representation at all, but have a HWND for communication purposes. XDND protocol works very different to Windows OLE DND, but still X11 window handles are required for the component which is the source or target of a drag-n-drop action, including the top-level window handle so as to communicate with the other app or component. So that's not really different from any other (Windows...) dd. And when I say drag-n-drop, I mean full DND support. In app drag-and-drop (component to component in same app) and application to application. XDND even allows computer-to-computer DND. What does dropping mean other than a notification (message...) to the target (handle), that a source (handle) has been dropped onto it? The DND support Delphi has in the VCL is a joke, and hardly what I would call real drag-n-drop. It's just one component inside the same app sending a message (or executing an event) on another component in that same app. Sorry, that's nonsense :-( You should understand VCL/LCL dragging first, before you make wrong assumptions about different operation and requirements of other drag managers. It were no problem to extend the LCL dragmanager to inter-process dragging. But since there must exist conventions, how a target window of *any* application will signal acceptance of an possible drop, and will handle the drop, and will handle the dropped source (residing in another process), it's a much better idea to use the existing OLE dd conventions for *that* purpose. You also should understand that Delphi dd is not limited to source controls (Lazarus missed that aspect a bit), so that the TDragObject is equivalent to an OLEDragObject, only with an different set of methods and properties. Any app-to-app DND, and you are on your own (outside the scope of the VCL), and you have to resort to Win API calls or implement your own full OLE DND implementation. Right, because a process needs some OS support, for communication with other processes. That's nothing new, isn't it? And when OLE dd requires HWNDs, that's a justficiation for another LCL dd, that comes without such heavy requirements. DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What are widgets in lazarus?
Lets agree to disagree, otherwise this back-and-forth messaging will go on forever. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugging with console output [Re: invisible break points??]
On 01/13/2011 08:50 PM, Martin wrote: in rev 29002 a very basic solution has been applied. In the debugger option you can specify a tty (for in and output of your app) Default is /dev/null, and /dev/null is also used if the config doesn't exist (or isn't a tty) I am aware that isn't very comfortable. It is only a first step Great ! I see that here (Suse) tty1, tty2, tty3, tty4, tty5, and tty6 are attached to the consoles I can switch to by alt-shift-F1, alt-shift-F2, alt-shift-F3, alt-shift-F4, alt-shift-F5, and alt-shift-F6, I suppose I can as well open a Terminal in the GUI and it will be connected with a /dev/tty?? interface. How to find out which is used by a Terminal Window to make use of it in the debugger ? Thanks, -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugging with console output [Re: invisible break points??]
On 14/01/2011 13:37, Michael Schnell wrote: On 01/13/2011 08:50 PM, Martin wrote: in rev 29002 a very basic solution has been applied. In the debugger option you can specify a tty (for in and output of your app) Default is /dev/null, and /dev/null is also used if the config doesn't exist (or isn't a tty) I am aware that isn't very comfortable. It is only a first step Great ! I see that here (Suse) tty1, tty2, tty3, tty4, tty5, and tty6 are attached to the consoles I can switch to by alt-shift-F1, alt-shift-F2, alt-shift-F3, alt-shift-F4, alt-shift-F5, and alt-shift-F6, I suppose I can as well open a Terminal in the GUI and it will be connected with a /dev/tty?? interface. How to find out which is used by a Terminal Window to make use of it in the debugger ? Afaik type tty as command, and it will print what it is. If you open a terminal for this, as very first thing on startup, you propably always get the same. There may also be a way, to force a new terminal to use a specific tty, but i do not know -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpGUI
On 01/13/2011 11:40 PM, Vincent Snijders wrote: I added a warning to prevent false assumptions and some comment on the talk page. Thanks ! I modified and enhanced the warning. I do agree that the title is due to improvement. I used the Lazarus: prefix to make known tat this is (right now) a Lazarus issue and not (primarily) a free pascal issue , even though this is the free pascal wiki. Maybe this precaution is not really necessary. My suggestion would be Proposal of a Widget Set independent Event Queue implementation or something like this. But how to change the title of the page, given that there already are some links to same. ( Wiki - experts anywhere ? ) -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpGUI
Op 2011-01-14 15:47, Michael Schnell het geskryf: But how to change the title of the page, given that there already are some links to same. ( Wiki - experts anywhere ? ) Go to the page, click Edit. Then or the right hand column there is a option Move. Click that and give it a new name. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpGUI
On 01/14/2011 02:47 PM, Michael Schnell wrote: Proposal of a Widget Set independent Event Queue implementation -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpGUI
On 01/14/2011 02:56 PM, Graeme Geldenhuys wrote: Go to the page, click Edit. Then or the right hand column there is a option Move. Click that and give it a new name. Thanks, Done. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugging with console output [Re: invisible break points??]
On 01/14/2011 02:40 PM, Martin wrote: Afaik type tty as command, and it will print what it is. Great ! Works: mschnell@ms-Linux-native:~ tty /dev/pts/2 mschnell@ms-Linux-native:~ echo 1234567890 /dev/pts/2 1234567890 If you open a terminal for this, as very first thing on startup, you propably always get the same. Not with the X11 based Terminal program provided by my Suse. There may also be a way, to force a new terminal to use a specific tty, but i do not know Good but not really necessary. Thanks a lot, -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Commands with Linux and subversion to install Lazarus 0.9.30
On Tue, 11 Jan 2011 09:14:11 +0200, Graeme Geldenhuys graemeg.li...@gmail.com wrote: $ svn co http://svn.freepascal.org/svn/lazarus/branches/fixes_0_9_30/ lazarus_0.9.30 $ cd lazarus_0_9_30 What? You check it out into lazarus_0.9.30, then cd into lazarus_0_9_30? Henry, what's wrong with that? The checkout created a directory, you need to CD into the directory after the checkout, so you can compile Lazarus. Well the svn command given will create dir lazarus_0.9.30 and NOT lazarus_0_9_30... Hence it is not possible to cd into the not created directory. Recheck the command that was given in the post. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error: unit not found: Classes
2011/1/12 Kjow antispamm...@gmail.com: Lazarus: r28973M FPC 2.4.2: r16754 Double clicking on any component (Form, Button, etc) to create the relative event or pressing ctrl+space on the source editor, causes this error: - C:\Develop\lazarus\lcl\lclclasses.pp(32,10) Error: unit not found: Classes Anytime I rebuild lazarus/fpc I have this error, so I need to press Environment - Rescan FPC source directory to make it working again (just press, no rebuilds). This appens only to me? Regards, Kjow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error: unit not found: Classes
No. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error: unit not found: Classes
On Fri, 14 Jan 2011 16:37:42 +0100 Kjow antispamm...@gmail.com wrote: 2011/1/12 Kjow antispamm...@gmail.com: Lazarus: r28973M FPC 2.4.2: r16754 Double clicking on any component (Form, Button, etc) to create the relative event or pressing ctrl+space on the source editor, causes this error: - C:\Develop\lazarus\lcl\lclclasses.pp(32,10) Error: unit not found: Classes Anytime I rebuild lazarus/fpc I have this error, so I need to press Environment - Rescan FPC source directory to make it working again (just press, no rebuilds). This appens only to me? Is this correct: You only install a newer fpc, you do not change any paths and settings. That means the fpc executable, the fpc.cfg, the fpc source directory and the fpc ppu directories have still the exact same file names. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TPage.Caption
Hi all, I have just this morning updated to the latest svn and now get the following dialog message when opening a form which contains a TNotebook with two TPage's ... Read error. Stream=TFormProjDetails: Root=.TformProjDetails Component Class: TPage Error reading PageGeneral.Caption: Unknown property: Caption Stream position: 8192 Have I missed some changes that explain this, or is this a bug? Thanks, Dave Copeland. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] package SynEdit and IDEIntf
Hi all, The packages SynEdit and IDEIntf now work like normal packages. That means, they compile now automatically when they are changed. Therefore they are no longer listed in the configure build lazarus dialog. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] package SynEdit and IDEIntf
On 14/01/2011 15:54, Mattias Gaertner wrote: Hi all, The packages SynEdit and IDEIntf now work like normal packages. That means, they compile now automatically when they are changed. Therefore they are no longer listed in the configure build lazarus dialog. Will they still be affected by defines made in the configure build laz dialog? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TPage.Caption
On Fri, Jan 14, 2011 at 4:51 PM, David Copeland david.copel...@jsidata.ca wrote: Have I missed some changes that explain this, or is this a bug? http://wiki.lazarus.freepascal.org/Lazarus_0.9.30_release_notes#TNotebook_and_TPage -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpGUI for the LCL on x86 Linux, and standalone on SPARC Solaris 10
On Thu, 13 Jan 2011 18:02:17 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Mattias Gaertner wrote: On Thu, 13 Jan 2011 14:08:45 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Mattias Gaertner wrote: It is a very long mail thread. Maybe you can summarize the problem? [...] Using the instructions at http://wiki.lazarus.freepascal.org/fpGUI_Interface i.e. with 3x symlinks, I cannot add fpGUI to the available LCLs; the Lazarus message window gives me fpguiint.pp(42,12) Fatal: Can't find unit fpg_main used by fpguiint What gives: ls -la lazarus/lcl/interfaces/fpgui/corelib/fpg_main.pas ? -rw-r--r-- 1 markMLl markMLl 57000 Aug 2 14:16 lazarus/lcl/interfaces/fpgui/corelib/fpg_main.pas where markMLl is user 1000. svn diff? It's the 0.7 release rather than svn, lrwxrwxrwx 1 markMLl markMLl 9 Jan 12 16:49 fpgui - fpgui-0.7 drwxr-xr-x 14 markMLl markMLl4096 Aug 2 14:16 fpgui-0.7 -rw-r--r-- 1 markMLl markMLl 3308790 Jan 12 16:49 fpgui-0.7.tar.gz 0 1markMLl@pye-dev-07:/usr/local/share/fpgui$ cksum * cksum: fpgui: Is a directory cksum: fpgui-0.7: Is a directory 592533306 3308790 fpgui-0.7.tar.gz Note the symlink there hence paths like /usr/local/share/fpgui/fpgui/src/corelib Attach the output of cd lazarus/lcl/interfaces/fpgui/ make 0 1markMLl@pye-dev-07:/usr/local/share/lazarus/lcl/interfaces/fpgui$ make /bin/rm -f ../../units/i386-linux/fpgui/interfaces.ppu \ ../../units/i386-linux/fpgui/interfaces.o /usr/local/bin/ppc386 -gl -dfpgui -Fu../../units/i386-linux -Fu. -Fucorelib -Fugui -Fucorelib/x11 -Fu/usr/local/lib/fpc/2.4.2/units/i386-linux/rtl -Ficorelib -Ficorelib/x11 -FE. -FU../../units/i386-linux/fpgui -di386 interfaces.pp Free Pascal Compiler version 2.4.2 [2010/11/16] for i386 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for i386 Compiling interfaces.pp 46 lines compiled, 2.9 sec Ok, the make works. Start the IDE in a terminal and compile the LCL for fpgui. Send the output. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] package SynEdit and IDEIntf
On Fri, 14 Jan 2011 15:56:08 + Martin laza...@mfriebe.de wrote: On 14/01/2011 15:54, Mattias Gaertner wrote: Hi all, The packages SynEdit and IDEIntf now work like normal packages. That means, they compile now automatically when they are changed. Therefore they are no longer listed in the configure build lazarus dialog. Will they still be affected by defines made in the configure build laz dialog? Yes, they contain the custom option: $(IDEBuildOptions) Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TPage.Caption
On 01/14/2011 10:57 AM, Felipe Monteiro de Carvalho wrote: On Fri, Jan 14, 2011 at 4:51 PM, David Copeland david.copel...@jsidata.ca wrote: Have I missed some changes that explain this, or is this a bug? http://wiki.lazarus.freepascal.org/Lazarus_0.9.30_release_notes#TNotebook_and_TPage Thanks Felipe, Dave. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] event code tool compilation error
Hi! Some hours ago, I updated my lazarus version via svn. After wait it completes, I tried rebuild Lazarus without success. The error is ... Compiling eventcodetool.pas eventcodetool.pas(127,9) Fatal: Syntax error, ) expected but , found Fatal: Compilation aborted make[2]: ** [codetools.ppu] Erro 1 make[2]: Saindo do diretório `/home/fabiolg/lazarus/components/codetools' make[1]: ** [codetools_all] Erro 2 make[1]: Saindo do diretório `/home/fabiolg/lazarus/components' make: ** [components] Erro 2 fabiolg@darkstar3:~/lazarus$ I see the file and I found this: const MethodKindAsString: array[TMethodKind] of shortstring = ( 'procedure', 'function', 'constructor', 'destructor', 'class procedure', 'class function' {$IFNDEF VER2_4} ,'class constructor', 'class destructor' {$ENDIF} {$IFDEF VER2_5} ,'operator overload' {$ENDIF} ); but I can't see anything wrong... I searched the wiki and the bugtracker, but I found anything. On google, on some pages is wrote that to solve this, I have to update my FPC (my previous version of FPC is 2.5.1 of november of 2010). I updated it but the error persists. Some Idea? Fabio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] event code tool compilation error
On Fri, 14 Jan 2011 14:11:01 -0200 fluisgira...@gmail.com fluisgira...@gmail.com wrote: Hi! Some hours ago, I updated my lazarus version via svn. After wait it completes, I tried rebuild Lazarus without success. The error is ... Compiling eventcodetool.pas eventcodetool.pas(127,9) Fatal: Syntax error, ) expected but , found Fatal: Compilation aborted make[2]: ** [codetools.ppu] Erro 1 make[2]: Saindo do diretório `/home/fabiolg/lazarus/components/codetools' make[1]: ** [codetools_all] Erro 2 make[1]: Saindo do diretório `/home/fabiolg/lazarus/components' make: ** [components] Erro 2 fabiolg@darkstar3:~/lazarus$ I see the file and I found this: const MethodKindAsString: array[TMethodKind] of shortstring = ( 'procedure', 'function', 'constructor', 'destructor', 'class procedure', 'class function' {$IFNDEF VER2_4} ,'class constructor', 'class destructor' {$ENDIF} {$IFDEF VER2_5} ,'operator overload' {$ENDIF} ); but I can't see anything wrong... I searched the wiki and the bugtracker, but I found anything. On google, on some pages is wrote that to solve this, I have to update my FPC (my previous version of FPC is 2.5.1 of november of 2010). I updated it but the error persists. Some Idea? You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. The 'operator overload' came some weeks ago to 2.5.1. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error: unit not found: Classes
2011/1/14 Mattias Gaertner nc-gaert...@netcologne.de: Is this correct: You only install a newer fpc, you do not change any paths and settings. That means the fpc executable, the fpc.cfg, the fpc source directory and the fpc ppu directories have still the exact same file names. Mattias Yes, I simply update svn and rebuild into the old directories, but until 01-12-2011 I never had the necessity to hit Environment - Rescan FPC source directory to make it working. Everytime it worked well without any extra work. Is it changed something? Thanks, Kjow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] event code tool compilation error
On 14/01/2011 16:24, Mattias Gaertner wrote: const MethodKindAsString: array[TMethodKind] of shortstring = ( 'procedure', 'function', 'constructor', 'destructor', 'class procedure', 'class function' {$IFNDEF VER2_4} ,'class constructor', 'class destructor' {$ENDIF} {$IFDEF VER2_5} ,'operator overload' {$ENDIF} ); but I can't see anything wrong... I searched the wiki and the bugtracker, but I found anything. On google, on some pages is wrote that to solve this, I have to update my FPC (my previous version of FPC is 2.5.1 of november of 2010). I updated it but the error persists. Some Idea? You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. The 'operator overload' came some weeks ago to 2.5.1. Maybe those IFDEF can be made smarter? {$IF high(TMethodKind) mkClassFunction} ,'class constructor', 'class destructor' {$IF high(TMethodKind) mkClassDestructor} ,'operator overload' {$ENDIF} {$ENDIF} -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error: unit not found: Classes
On Fri, 14 Jan 2011 17:35:31 +0100 Kjow antispamm...@gmail.com wrote: 2011/1/14 Mattias Gaertner nc-gaert...@netcologne.de: Is this correct: You only install a newer fpc, you do not change any paths and settings. That means the fpc executable, the fpc.cfg, the fpc source directory and the fpc ppu directories have still the exact same file names. Mattias Yes, I simply update svn and rebuild into the old directories, but until 01-12-2011 I never had the necessity to hit Environment - Rescan FPC source directory to make it working. Everytime it worked well without any extra work. So should it be. And it works here. Is it changed something? The next time it happens: Please take a look at View / IDE internals / About FPC / Report. Please create a bug report and attach the output. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] event code tool compilation error
On Fri, 14 Jan 2011 16:47:25 + Martin laza...@mfriebe.de wrote: On 14/01/2011 16:24, Mattias Gaertner wrote: const MethodKindAsString: array[TMethodKind] of shortstring = ( 'procedure', 'function', 'constructor', 'destructor', 'class procedure', 'class function' {$IFNDEF VER2_4} ,'class constructor', 'class destructor' {$ENDIF} {$IFDEF VER2_5} ,'operator overload' {$ENDIF} ); but I can't see anything wrong... I searched the wiki and the bugtracker, but I found anything. On google, on some pages is wrote that to solve this, I have to update my FPC (my previous version of FPC is 2.5.1 of november of 2010). I updated it but the error persists. Some Idea? You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. The 'operator overload' came some weeks ago to 2.5.1. Maybe those IFDEF can be made smarter? {$IF high(TMethodKind) mkClassFunction} ,'class constructor', 'class destructor' {$IF high(TMethodKind) mkClassDestructor} ,'operator overload' {$ENDIF} {$ENDIF} Applied. But that does not mean we support older 2.5.1 - we do not. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus editor font height very small...
I installed Lazarus on my WinXP virtual machine from the fixes_30 branch a couple of weeks ago, but have not used it yet (Xmas and all). Now I just started and found that I needed to set the editor up for my usual look. One thing that is very strange is the font size, when I set it to 10, like I usually do in Delphi, the text is nearly invisibly small! Is Lazarus using a different size unit than Delphi is? I usually set the font to 8 or 10 to get a comfortable view of the code but that does not work at all in Lazarus, here I need to set it to 16 or even 18. What is the reason for this? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] event code tool compilation error
Yes, I updated my FPC 2.5.1 today. I downloaded the file fpcbuild.zip from http://www.freepascal.org/develop.var on Download Daily Source Snapshot of Development Tree (trunk) section I'm looking the file typinfo.pp of my fresh fpc version, searching the TMethodKind type and it don't have the mkOperatorOverload. I looked the same file via FPC svn and it have this. Maybe I downloaded the wrong file. I'll try download the fpcbuild.zip again and see what's happens. While I write this message, I checked the date of the downloaded file on ftp, and it dated of 2010-nov-16, and if 'operator overload' came some weeks ago, this is the problem... After this, I'll update my fpc via svn... Regards, Fabio 2011/1/14 Mattias Gaertner nc-gaert...@netcologne.de: On Fri, 14 Jan 2011 14:11:01 -0200 fluisgira...@gmail.com fluisgira...@gmail.com wrote: Hi! Some hours ago, I updated my lazarus version via svn. After wait it completes, I tried rebuild Lazarus without success. The error is ... Compiling eventcodetool.pas eventcodetool.pas(127,9) Fatal: Syntax error, ) expected but , found Fatal: Compilation aborted make[2]: ** [codetools.ppu] Erro 1 make[2]: Saindo do diretório `/home/fabiolg/lazarus/components/codetools' make[1]: ** [codetools_all] Erro 2 make[1]: Saindo do diretório `/home/fabiolg/lazarus/components' make: ** [components] Erro 2 fabiolg@darkstar3:~/lazarus$ I see the file and I found this: const MethodKindAsString: array[TMethodKind] of shortstring = ( 'procedure', 'function', 'constructor', 'destructor', 'class procedure', 'class function' {$IFNDEF VER2_4} ,'class constructor', 'class destructor' {$ENDIF} {$IFDEF VER2_5} ,'operator overload' {$ENDIF} ); but I can't see anything wrong... I searched the wiki and the bugtracker, but I found anything. On google, on some pages is wrote that to solve this, I have to update my FPC (my previous version of FPC is 2.5.1 of november of 2010). I updated it but the error persists. Some Idea? You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. The 'operator overload' came some weeks ago to 2.5.1. Mattias -- ___ 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] fpGUI for the LCL on x86 Linux, and standalone on SPARC Solaris 10
Mattias Gaertner wrote: On Thu, 13 Jan 2011 18:02:17 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Mattias Gaertner wrote: On Thu, 13 Jan 2011 14:08:45 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Mattias Gaertner wrote: It is a very long mail thread. Maybe you can summarize the problem? [...] Using the instructions at http://wiki.lazarus.freepascal.org/fpGUI_Interface i.e. with 3x symlinks, I cannot add fpGUI to the available LCLs; the Lazarus message window gives me fpguiint.pp(42,12) Fatal: Can't find unit fpg_main used by fpguiint What gives: ls -la lazarus/lcl/interfaces/fpgui/corelib/fpg_main.pas ? -rw-r--r-- 1 markMLl markMLl 57000 Aug 2 14:16 lazarus/lcl/interfaces/fpgui/corelib/fpg_main.pas where markMLl is user 1000. svn diff? It's the 0.7 release rather than svn, lrwxrwxrwx 1 markMLl markMLl 9 Jan 12 16:49 fpgui - fpgui-0.7 drwxr-xr-x 14 markMLl markMLl4096 Aug 2 14:16 fpgui-0.7 -rw-r--r-- 1 markMLl markMLl 3308790 Jan 12 16:49 fpgui-0.7.tar.gz 0 1markMLl@pye-dev-07:/usr/local/share/fpgui$ cksum * cksum: fpgui: Is a directory cksum: fpgui-0.7: Is a directory 592533306 3308790 fpgui-0.7.tar.gz Note the symlink there hence paths like /usr/local/share/fpgui/fpgui/src/corelib Attach the output of cd lazarus/lcl/interfaces/fpgui/ make 0 1markMLl@pye-dev-07:/usr/local/share/lazarus/lcl/interfaces/fpgui$ make /bin/rm -f ../../units/i386-linux/fpgui/interfaces.ppu \ ../../units/i386-linux/fpgui/interfaces.o /usr/local/bin/ppc386 -gl -dfpgui -Fu../../units/i386-linux -Fu. -Fucorelib -Fugui -Fucorelib/x11 -Fu/usr/local/lib/fpc/2.4.2/units/i386-linux/rtl -Ficorelib -Ficorelib/x11 -FE. -FU../../units/i386-linux/fpgui -di386 interfaces.pp Free Pascal Compiler version 2.4.2 [2010/11/16] for i386 Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for i386 Compiling interfaces.pp 46 lines compiled, 2.9 sec Ok, the make works. Start the IDE in a terminal and compile the LCL for fpgui. Send the output. Mattias Got it, mea culpa: WorkDir=/usr/local/share/lazarus-trunk/lcl but the version of Lazarus I was running was 0.9.29 in lazarus-testing. With that fixed I can build an fpGUI LCL from inside Lazarus, can compile and run a trivial test program, and can build the UI Designer. Also for completeness make LCL_PLATFORM=fpgui lcl appears to complete successfully. At which point I think I'll swap back onto the Solaris 10 system, because I think having the UI Designer running would be a worthwhile stepping stone towards Lazarus... -- 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] fpGUI
On Mon, 10 Jan 2011 13:25:29 +0200, Graeme Geldenhuys wrote: Op 2011-01-10 12:41, michael.vancann...@wisa.be het geskryf: ... fpGUI is very sensitive to the order in which you do things. That's simply because the UI is defined as actual source code (just like Qt Creator, any Java form designer, MS Visual Studio etc), and gives the developer a guaranteed creation order of components. I don't see that as a bad thing, just different to Lazarus and Delphi's UI designers, which use external object form file to load the UI. You shouldn't mix IDE and Runtime here. Qt as well as some Java UI Designers (at least Matisse) use separate form files. Qt generates the C++ code out of those during the build process, Netbeans afaik updates the Java source while editing. But the designers in both cases rely on the external files to manage the forms. I guess it wouldn't be too hard to write a similar preprocessor for Lazarus too, that converts the lfm into actual code, but there doesn't seem to be enough benefit. Best Regards, Andreas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What are widgets in lazarus?
On Mon, 10 Jan 2011 14:20:47 +0100 (CET), wrote: This is not correct. People do strive to 100% the same everywhere. But the 100% the same working on all platforms is hard to reach, and takes time, it is an ambitious target. Rome also wasn't built on a day. I don't think that 100% the same everywhere is possible or even desirable. Take a look at Java SWT. It certainly has a much much bigger amount of contributors than Lazarus, being THE backend behind Eclipse. Yet it doesn't have half of the features the LCL has (hell, it's really a pain doing a serious GUI with it). But even though they limit the available widgets, it is STILL not completely identical across all the three supported platforms. Another point being: is it really THAT important to have it 100% the same? A UI that is great on Windows will probably suck in MacOS X. Why? Because they have other design guidelines. Sure, it's easier to ship out one and the same for all, but I think serious UIs are better designed for a specific market, and not run-of-the-mill. That of course also depends on the use case. So I think it's fine that there is a choice: specialized GUI (frameworks) on the one side, fpGUI on the other side, and the LCL in between. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpGUI
On Mon, 10 Jan 2011 13:26:03 +0100, Michael Schnell wrote: On 01/10/2011 12:56 PM, Sven Barth wrote: This approach is only needed if you want to design pure fpGUI applications (and don't want to use the external designer provided by fpGUI). This is not needed when using fpGUI as a LCL widgetset. Right now (not having done any testing) I don't see for what a mixed fpGUI and - say- gtk would make sense. What are you talking about? I think you still don't understand what the LCL is. Imagine the LCL as a frontend. It has several backends it can choose from - but only one at a time. One of them is GTK, another is GTK2, yet another Win32 and in the future maybe fpGUI. That has nothing to do with mixing anything. fpGUI would operate on a whole other level than the LCL in that case. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error: unit not found: Classes
2011/1/14 Mattias Gaertner nc-gaert...@netcologne.de: So should it be. And it works here. Ok, thanks. Is it changed something? The next time it happens: Please take a look at View / IDE internals / About FPC / Report. Please create a bug report and attach the output. Ok, I'll do. Regards, Kjow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch
I'm testing on Ubuntu 10.10 32 bits, with daily svn update. Today it seems nothing was updated, it's correct? 2011/1/10 Mark Morgan Lloyd markmll.laza...@telemetry.co.uk Mark Morgan Lloyd wrote: Vincent Snijders wrote: Hi, Yesterday Lazarus trunk was branched to http://svn.freepascal.org/svn/lazarus/branches/fixes_0_9_30/. From this branch the next Lazarus release 0.9.30 will be released. Build and basic operation OK for x86, SPARC and PPC (all Linux). ARM (armel) running natively to follow. I've got one system which fails at an unpredictable location when building, this is the only Debian SPARC system I've got fully-patched and I suspect there's a problem with e.g. ld. I got a successful build eventually. versions of as, ld and make are the same as a system which is OK, plenty of disc and swap, believe no hardware faults. So far I'm perplexed. Native ARM linkage continues. -- 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 -- Atenciosamente, Alexsander da Rosa Linux User #113925 Extremismo na defesa da liberdade não é defeito. Moderação na busca por justiça não é virtude. -- Barry Goldwater -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch
2011/1/14 Alexsander Rosa alexsander.r...@gmail.com: I'm testing on Ubuntu 10.10 32 bits, with daily svn update. Today it seems nothing was updated, it's correct? Yes, today until now, nothing has been updated. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TPage.Caption
David Copeland wrote: On 01/14/2011 10:57 AM, Felipe Monteiro de Carvalho wrote: On Fri, Jan 14, 2011 at 4:51 PM, David Copeland david.copel...@jsidata.ca wrote: Have I missed some changes that explain this, or is this a bug? http://wiki.lazarus.freepascal.org/Lazarus_0.9.30_release_notes#TNotebook_and_TPage Thanks Felipe, Thanks for the reminder from me as well. Is there any functionality in TNotebook/TPage that has been intentionally omitted from its replacement? -- 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] Test the Lazarus fixes_0_9_30 branch
I've just added a comment to a bug report. 2011/1/14 Vincent Snijders vincent.snijd...@gmail.com 2011/1/14 Alexsander Rosa alexsander.r...@gmail.com: I'm testing on Ubuntu 10.10 32 bits, with daily svn update. Today it seems nothing was updated, it's correct? Yes, today until now, nothing has been updated. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Atenciosamente, Alexsander da Rosa Linux User #113925 Extremismo na defesa da liberdade não é defeito. Moderação na busca por justiça não é virtude. -- Barry Goldwater -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TPage.Caption
On Fri, Jan 14, 2011 at 7:23 PM, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Thanks for the reminder from me as well. Is there any functionality in TNotebook/TPage that has been intentionally omitted from its replacement? You mean functionality from the old TNotebook? The most important thing missing are the tabs. They no longer exist, because there is already a control for tabs: TPageControl So, for example, TNotebook.ShowTabs no longer exists. There might be some other stuff too. You can see TCustomNotebook which is still available and is essentially identical to the old TNotebook, for a comparison. TCustomNotebook is still in the LCL, because some components need it, but it's final destiny is the trash can with the old TNotebook. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpGUI for the LCL on x86 Linux, and standalone on SPARC Solaris 10
Mark Morgan Lloyd wrote: Got it, mea culpa: WorkDir=/usr/local/share/lazarus-trunk/lcl but the version of Lazarus I was running was 0.9.29 in lazarus-testing. With that fixed I can build an fpGUI LCL from inside Lazarus, can compile and run a trivial test program, and can build the UI Designer. Also for completeness make LCL_PLATFORM=fpgui lcl appears to complete successfully. At which point I think I'll swap back onto the Solaris 10 system, because I think having the UI Designer running would be a worthwhile stepping stone towards Lazarus... OK Graeme, your turn. To compile the UI designer for SPARC Solaris 10 I need to add the users package to FPC, in addition to the others (bug 0018271). However linkage stops with /export/home/local-share/fpgui/fpgui-0.7/lib/sparc-solaris/fpg_x11.o(.text+0x10f0): In function `FPG_X11_TFPGX11APPLICATION_$__STARTCOMPOSING$TXEVENT$$LONGWORD': : undefined reference to `Xutf8LookupString' plus three more referring to the same function. It looks as though that's aliased straight into libX11, presumably Sun's X11 doesn't have the UTF8 entry points. Apologies to anybody who considers this wildly off-topic, but I'm treating this as a stepping stone towards getting Lazarus running as well as a valuable build exercise. -- 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] TPage.Caption
Felipe Monteiro de Carvalho wrote: On Fri, Jan 14, 2011 at 7:23 PM, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Thanks for the reminder from me as well. Is there any functionality in TNotebook/TPage that has been intentionally omitted from its replacement? You mean functionality from the old TNotebook? The most important thing missing are the tabs. They no longer exist, because there is already a control for tabs: TPageControl So, for example, TNotebook.ShowTabs no longer exists. There might be some other stuff too. You can see TCustomNotebook which is still available and is essentially identical to the old TNotebook, for a comparison. TCustomNotebook is still in the LCL, because some components need it, but it's final destiny is the trash can with the old TNotebook. OK, but basically: if I can't see how to do something with TPageControl that I could with TNotebook/TPage should I be asking promptly, or is there stuff that has been intentionally dropped? -- 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] TPage.Caption
On Fri, Jan 14, 2011 at 8:07 PM, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: OK, but basically: if I can't see how to do something with TPageControl that I could with TNotebook/TPage should I be asking promptly, or is there stuff that has been intentionally dropped? It is impossible that something exists in the old TNotebook and isn't in TPageControl, because: TPageControl = class(TCustomNotebook) But indeed, if you see anything missing you can create a bug report. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpGUI for the LCL on x86 Linux, and standalone on SPARC Solaris 10
Hi Mark /export/home/local-share/fpgui/fpgui-0.7/lib/sparc-solaris/fpg_x11.o(.text+0x10f0): In function `FPG_X11_TFPGX11APPLICATION_$__STARTCOMPOSING$TXEVENT$$LONGWORD': : undefined reference to `Xutf8LookupString' plus three more referring to the same function. It looks as though that's aliased straight into libX11, presumably Sun's X11 doesn't have the UTF8 entry points. The fpg_x11.pas unit also contains a XmbLookupString() function definition - using the same parameters as the UTF8 function. In a pinch, try and replace all the Xutf8LookupString calls with the XmbLookupString calls. Text input might give issues, but displaying text and widget paint should still work. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] event code tool compilation error
14.01.2011 20:00, Mattias Gaertner пишет: On Fri, 14 Jan 2011 16:47:25 + Martinlaza...@mfriebe.de wrote: On 14/01/2011 16:24, Mattias Gaertner wrote: const MethodKindAsString: array[TMethodKind] of shortstring = ( 'procedure', 'function', 'constructor', 'destructor', 'class procedure', 'class function' {$IFNDEF VER2_4} ,'class constructor', 'class destructor' {$ENDIF} {$IFDEF VER2_5} ,'operator overload' {$ENDIF} ); but I can't see anything wrong... I searched the wiki and the bugtracker, but I found anything. On google, on some pages is wrote that to solve this, I have to update my FPC (my previous version of FPC is 2.5.1 of november of 2010). I updated it but the error persists. Some Idea? You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. The 'operator overload' came some weeks ago to 2.5.1. Maybe those IFDEF can be made smarter? {$IF high(TMethodKind) mkClassFunction} ,'class constructor', 'class destructor' {$IF high(TMethodKind) mkClassDestructor} ,'operator overload' {$ENDIF} {$ENDIF} Applied. But that does not mean we support older 2.5.1 - we do not. I reverted this change in r29013, because it broke building Lazarus with FPC 2.4.3 (tested with latest 2.4.3 revision to date). -- Best regards, Maxim Ganetsky mailto:gan...@narod.ru -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] event code tool compilation error
On Sat, 15 Jan 2011 01:01:07 +0300 Maxim Ganetsky gan...@narod.ru wrote: 14.01.2011 20:00, Mattias Gaertner пишет: On Fri, 14 Jan 2011 16:47:25 + Martinlaza...@mfriebe.de wrote: On 14/01/2011 16:24, Mattias Gaertner wrote: const MethodKindAsString: array[TMethodKind] of shortstring = ( 'procedure', 'function', 'constructor', 'destructor', 'class procedure', 'class function' {$IFNDEF VER2_4} ,'class constructor', 'class destructor' {$ENDIF} {$IFDEF VER2_5} ,'operator overload' {$ENDIF} ); but I can't see anything wrong... I searched the wiki and the bugtracker, but I found anything. On google, on some pages is wrote that to solve this, I have to update my FPC (my previous version of FPC is 2.5.1 of november of 2010). I updated it but the error persists. Some Idea? You need a recent 2.5.1 or a released 2.4.2 or a recent 2.4.3. The 'operator overload' came some weeks ago to 2.5.1. Maybe those IFDEF can be made smarter? {$IF high(TMethodKind) mkClassFunction} ,'class constructor', 'class destructor' {$IF high(TMethodKind) mkClassDestructor} ,'operator overload' {$ENDIF} {$ENDIF} Applied. But that does not mean we support older 2.5.1 - we do not. I reverted this change in r29013, because it broke building Lazarus with FPC 2.4.3 (tested with latest 2.4.3 revision to date). I applied it wrong. Sorry. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Can someone test, pleease - possible problem with dbg info
In lazarus /debugger/test/Gdbmi is a program TestGdbmi If I insert a breakpoint at line 480 (either before start, or during run, then GDB reports : TCmdLineDebugger.SendCmdLn -exec-continue TCmdLineDebugger.ReadLn ^error,msg=Warning:\nCannot insert breakpoint 9.\nError accessing memory address 0x18: Input/output error.\n TGDBMIDebugger.ProcessResult Error: ,msg=Warning:\nCannot insert breakpoint 9.\nError accessing memory address 0x18: Input/output error.\ n TCmdLineDebugger.ReadLn (gdb) Can anyone try if they get the same? w32 fpc 2.4.2 lazarus uptodate0/9/31 dwarf -gw Oh, and the problem goes away, if I use the external linker -Xe Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus