RE: [lazarus] Turbopower IPro problem - selecting text in HtmlPanel
There were several changes from WriteLn to DebugLn in that patch. Is this the wrong file I found and checked. In this file there is no such implementation, I did not install it just took a look on the code. I'm maybe mistaken. Perhaps we both have different concepts about invert, for invert I mean this: from opera 6: ttp://mx.geocities.com/jesusrmx/lazarus/images/opera6render.png actually browsers do something like this: from ie 5.0.x: ttp://mx.geocities.com/jesusrmx/lazarus/images/ierender.png or opera 7 and up: ttp://mx.geocities.com/jesusrmx/lazarus/images/opera7render.png and lazarus actually ttp://mx.geocities.com/jesusrmx/lazarus/images/lazarusrender.png Now I undestand your point, please take a look on an inverting sample as a result of my PaintSelection implementation: - http://www.magentadb.gr/ftp/paint-selection-sample.jpg Panagiotis -Original Message- From: Jesus Reyes [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 6:15 PM To: lazarus@miraclec.com Subject: Re: [lazarus] Turbopower IPro problem - selecting text in HtmlPanel - Original Message - From: Panagiotis Sidiropoulos [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Thursday, January 26, 2006 9:12 AM Subject: RE: [lazarus] Turbopower IPro problem - selecting text in HtmlPanel Sorry in my previous message (still I don't get it) I wrote the revision wrong the correct is 8227 see http://www.freepascal.org/cgi-bin/viewcvs.cgi?root=lazarusrev=8227vi ew =rev Visiting above mentioned url for revision 8227, I can see that PaintSelection implementaiton is missing. PaintSelection is not currently used in TpIpro Lazarus. At diif from previous' page, the difference is as follows: Prior: writeln('TIpHtml.PaintSelection PatBlt not implemented'); New: DebugLn('TIpHtml.PaintSelection PatBlt not implemented'); Please advise. if PageRectToScreen(R, R) then begin {$IFDEF IP_LAZARUS} DebugLn('TIpHtml.PaintSelection PatBlt not implemented'); {$ELSE} PatBlt(PaintBuffer.Handle, R.Left, R.Top, R.Right - R.Left, R.Bottom - R.Top, DSTINVERT); {$ENDIF} end; Panagiotis There were several changes from WriteLn to DebugLn in that patch. Perhaps we both have different concepts about invert, for invert I mean this: from opera 6: http://mx.geocities.com/jesusrmx/lazarus/images/opera6render.png actually browsers do something like this: from ie 5.0.x: http://mx.geocities.com/jesusrmx/lazarus/images/ierender.png or opera 7 and up: http://mx.geocities.com/jesusrmx/lazarus/images/opera7render.png and lazarus actually http://mx.geocities.com/jesusrmx/lazarus/images/lazarusrender.png ok it needs some work :D I don't hold a copy of tpipro example when I implemented inverted selection but it did look like the opera 6 one. Jesus Reyes A. __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.yahoo.com.mx/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] revision 8625
If I update lazarus from svn to rev 8625 and above I got this when I start lazarus: this is gdb output: Starting program: /home/barko/freepascal/lazarus/lazarus Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xe000 TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 NOTE: codetools config file not found - using defaults Detaching after fork from child process 5761. Detaching after fork from child process 5762. Detaching after fork from child process 5763. NOTE: help options config file not found - using defaults TMainIDE.DoNewProject A TMainIDE.DoNewEditorFile A NewFilename= TPascalParserTool.BuildTree B OnlyIntf=False project1.lpr [TCustomFormEditor.CreateComponent] Class='TForm' TPascalParserTool.BuildTree B OnlyIntf=False project1.lpr TMainIDE.DoNewEditorFile end unit1.pas Detaching after fork from child process 5764. Detaching after fork from child process 5765. Detaching after fork from child process 5766. Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget' Program received signal SIGSEGV, Segmentation fault. 0xb79be411 in gdk_rgb_find_color () from /usr/lib/gtk/themes/engines/libgalaxy.so Current language: auto; currently c What to do? I have mandriva linux 2006 fpc 2.0.1 -- bye, ...s]-[it happens... _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Run Lazarus on Windows XP PRO
Hello, I am trying to execute the first button program. did the install, but am not able to display the form or window. Thanks for any help. Jim Smiley
[lazarus] platform independent application launching
Hi all, I have an interesting dillema, I need to write a platform independant program which needs to be able to launch other programs. It must NOT wait for them to exit but merely launch them, specifically we`re talking about launching things like a web-browser or pdf viewer. The choice of the actual commands I will handle, the bigger problem is how to do it. Obviously the method only works on unixes (I definitely need win32 support) and as far as I know, tprocess cannnot LAUNCH a program and then forget about it and pass control back to my own app. If there is no single way to do it, I am happy to use IFDEFS, but of course I still need to know what I can do on windows. Any ideas ? -- 80% Of a hardware engineer's job is application of the uncertainty principle. 80% of a software engineer's job is pretending this isn't so. A.J. Venter Chief Software Architect OpenLab International http://www.getopenlab.com | +27 82 726 5103 (South Africa) http://www.silentcoder.co.za| +55 118 162 2079 (Brazil) _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] platform independent application launching
On Fri, 27 Jan 2006, A.J. Venter wrote: Hi all, I have an interesting dillema, I need to write a platform independant program which needs to be able to launch other programs. It must NOT wait for them to exit but merely launch them, specifically we`re talking about launching things like a web-browser or pdf viewer. The choice of the actual commands I will handle, the bigger problem is how to do it. Obviously the method only works on unixes (I definitely need win32 support) and as far as I know, tprocess cannnot LAUNCH a program and then forget about it and pass control back to my own app. Of course it can. I do it all the time... Just don't use the poWaitOnExit flag or use the 'WaitOnExit' method. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] revision 8625
On Fri, 27 Jan 2006 15:05:36 +0100, Mattias Gaertner [EMAIL PROTECTED] wrote: Can you create a backtrace: here it is: [EMAIL PROTECTED] lazarus]$ gdb lazarus GNU gdb 6.3-5mdk (Mandriva Linux release 2006.0) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i586-mandriva-linux-gnu...Using host libthread_db library /lib/tls/libthread_db.so.1. (gdb) run --g-fatal-warnings Starting program: /home/barko/freepascal/lazarus/lazarus --g-fatal-warnings Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xe000 [Thread debugging using libthread_db enabled] [New Thread -1212512576 (LWP 6547)] TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 NOTE: codetools config file not found - using defaults Detaching after fork from child process 6550. Detaching after fork from child process 6551. Detaching after fork from child process 6552. NOTE: help options config file not found - using defaults TMainIDE.DoNewProject A TMainIDE.DoNewEditorFile A NewFilename= TPascalParserTool.BuildTree B OnlyIntf=False project1.lpr [TCustomFormEditor.CreateComponent] Class='TForm' TPascalParserTool.BuildTree B OnlyIntf=False project1.lpr TMainIDE.DoNewEditorFile end unit1.pas Detaching after fork from child process 6553. Detaching after fork from child process 6554. Detaching after fork from child process 6555. Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget' aborting... Program received signal SIGABRT, Aborted. [Switching to Thread -1212512576 (LWP 6547)] 0xe410 in __kernel_vsyscall () Current language: auto; currently c (gdb) bt #0 0xe410 in __kernel_vsyscall () #1 0xb7bd4ef1 in raise () from /lib/tls/libc.so.6 #2 0xb7bd683b in abort () from /lib/tls/libc.so.6 #3 0xb7fa8c87 in g_logv () from /usr/lib/libglib-1.2.so.0 #4 0xb7f5699c in ?? () from /usr/X11R6/lib/libX11.so.6 (gdb) quit that's all. -- bye, ...s]-[it happens... _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] revision 8625
On Fri, 27 Jan 2006 15:26:48 +0100 barko [EMAIL PROTECTED] wrote: On Fri, 27 Jan 2006 15:05:36 +0100, Mattias Gaertner [EMAIL PROTECTED] wrote: Can you create a backtrace: here it is: [EMAIL PROTECTED] lazarus]$ gdb lazarus GNU gdb 6.3-5mdk (Mandriva Linux release 2006.0) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i586-mandriva-linux-gnu...Using host libthread_db library /lib/tls/libthread_db.so.1. (gdb) run --g-fatal-warnings Starting program: /home/barko/freepascal/lazarus/lazarus --g-fatal-warnings Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xe000 [Thread debugging using libthread_db enabled] [New Thread -1212512576 (LWP 6547)] TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 NOTE: codetools config file not found - using defaults Detaching after fork from child process 6550. Detaching after fork from child process 6551. Detaching after fork from child process 6552. NOTE: help options config file not found - using defaults TMainIDE.DoNewProject A TMainIDE.DoNewEditorFile A NewFilename= TPascalParserTool.BuildTree B OnlyIntf=False project1.lpr [TCustomFormEditor.CreateComponent] Class='TForm' TPascalParserTool.BuildTree B OnlyIntf=False project1.lpr TMainIDE.DoNewEditorFile end unit1.pas Detaching after fork from child process 6553. Detaching after fork from child process 6554. Detaching after fork from child process 6555. Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget' aborting... Program received signal SIGABRT, Aborted. [Switching to Thread -1212512576 (LWP 6547)] 0xe410 in __kernel_vsyscall () Current language: auto; currently c (gdb) bt #0 0xe410 in __kernel_vsyscall () #1 0xb7bd4ef1 in raise () from /lib/tls/libc.so.6 #2 0xb7bd683b in abort () from /lib/tls/libc.so.6 #3 0xb7fa8c87 in g_logv () from /usr/lib/libglib-1.2.so.0 #4 0xb7f5699c in ?? () from /usr/X11R6/lib/libX11.so.6 (gdb) quit that's all. :( Ok. Maybe it has something to do with the color patch. Can you 'update' to revision 8624: svn up -r 8624 Rebuild lazarus and check if it crashes. If not, update to 8625 and test again. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] revision 8625
On Fri, 27 Jan 2006 15:54:53 +0100, Mattias Gaertner [EMAIL PROTECTED] wrote: :( Ok. Maybe it has something to do with the color patch. Can you 'update' to revision 8624: svn up -r 8624 Rebuild lazarus and check if it crashes. If not, update to 8625 and test again. I have tested this before. Rev 8624 works ok, rev 8625 (and up) doesn't work. -- bye, ...s]-[it happens... _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Run Lazarus on Windows XP PRO
On Fri, 2006-01-27 at 06:54 -0700, SIX-S wrote: I am trying to execute the first button program. did the install, but am not able to display the form or window. We need more information to tell you what you have to do. For instance what program are you trying to execute? Do you get any errors? What version of Lazarus / FPC are you using? What OS are you on? Matthijs -- Matthijs Willemstein [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] proble with cvs
Hi to all!! I have a problem, because some time ago I downloaded via cvs the lazarus without any problem, now I can't doit... these are the steps I use: (i'm in a OSX 10.3 Mac G5) In the X11 terminal: 1.- export CVSROOT=:pserver:[EMAIL PROTECTED]:/FPC/CVS 2.- cvs login it works fine, ask me for the password 3.- Insert cvs as password 4.- there's no error and in the prompt I write: cvs -z3 checkout lazarus but the cvs server respond to me: cvs server: cannot find module 'lazarus' - ignored cvs [checkout aborted]: cannot expand modules do you know why Regards Bruno Chavez ___ Do You Yahoo!? La mejor conexión a Internet y b 2GB/b extra a tu correo por $100 al mes. http://net.yahoo.com.mx _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Run Lazarus on Windows XP PRO
I am running XP PRO for windows, Lazarus version#9.10 beta. I am entering the first program in the Lazarus Tutorial that put a button on the screen. I did not see any error messages. - Original Message - From: Matthijs Willemstein [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Friday, January 27, 2006 8:46 AM Subject: Re: [lazarus] Run Lazarus on Windows XP PRO On Fri, 2006-01-27 at 06:54 -0700, SIX-S wrote: I am trying to execute the first button program. did the install, but am not able to display the form or window. We need more information to tell you what you have to do. For instance what program are you trying to execute? Do you get any errors? What version of Lazarus / FPC are you using? What OS are you on? Matthijs -- Matthijs Willemstein [EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] revision 8625
On Fri, 27 Jan 2006 21:49:36 +0100 Patrick Chevalley [EMAIL PROTECTED] wrote: Hi, I just install the last svn 8634 on MDK 2006 and get the same error, previously 8614 worked. The fault is with the Galaxy theme. Type export GTK_RC_FILES= to use an empty theme, or use another one like export GTK_RC_FILES=/usr/share/themes/BrushedMetal/gtk/gtkrc and this work fine. The problem is that any application will now crash by default on Mandriva :-( Can you update and try compiling lazarus with -dDisableWidgetColor? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] revision 8625
Can you update and try compiling lazarus with -dDisableWidgetColor? This not change the problem. I add a few DebugLn in SetWidgetColor, just before your ifdef. By comparison of the trace with a working theme the segfault occur after the last passage to SetWidgetColor. Starting program: /home/pch/lazarus/lazarus Reading symbols from shared object read from target memory...done. . SetWidgetColor Start SetWidgetColor ChangeFGColor:=FALSE SetWidgetColor ChangeBGColor:=TRUE SetWidgetColor DisableWidgetColor exit . SetWidgetColor Start SetWidgetColor ChangeFGColor:=FALSE SetWidgetColor ChangeBGColor:=FALSE SetWidgetColor exit SetWidgetColor Start SetWidgetColor ChangeFGColor:=FALSE SetWidgetColor ChangeBGColor:=FALSE SetWidgetColor exit Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget' Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1213147456 (LWP 8596)] 0xb79ad411 in gdk_rgb_find_color () from /usr/lib/gtk/themes/engines/libgalaxy.so Current language: auto; currently c (gdb) bt #0 0xb79ad411 in gdk_rgb_find_color () from /usr/lib/gtk/themes/engines/libgalaxy.so #1 0x in ?? () _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] setColor patch
Mattias Gaertner wrote: On Thu, 26 Jan 2006 22:02:19 +0100 Mattias Gaertner [EMAIL PROTECTED] wrote: On Wed, 25 Jan 2006 10:01:03 +0100 darekm [EMAIL PROTECTED] wrote: I forget patch Marc Santhoff wrote: Am Dienstag, den 24.01.2006, 18:41 +0100 schrieb darekm: Darek PS. how simple test patch syntactic patch -C yourmodifictions.diff From the man page of patch(1): -C, --check see what would happen, but don't do it. I know, this is impossible, but my patch don;t have this options (I use Gentoo) Thanks. Applied. Some notes: 1. Don't use writeln in the LCL code. Instead use debugln. Debugging code is easily forgotten and can then crash the application. 2. Don't split functions and their comment. For example: Sorry (I know, but I forget) { -- function GdkAtomToStr(const Atom: TGdkAtom): string; Returns the associated string - -- ---} function GdkAtomToStr(const Atom: TGdkAtom): string; var p: Pgchar; ... You added three empty lines between the comment and the function. Why? I disabled it for SystemColors. See TGtkWidgetSet.SetWidgetColor. That is not good, for me better do it in function ColorToRGB(Color: TColor): TColor (if it's not enought) If they return clNone then setWidgetColor is not call Darek _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] New lazarus based program
For those interested. http://silentcoder.co.za/tiki/tiki-view_blog_post.php?blogId=2postId=214 Sidenote: Since the blog went out, a friend of mine has already started on a Mac port, gotta love multiplatform compilers ! -- A.J. Venter Chief Software Architext OpenLab International www.getopenlab.com www.silentcoder.co.za +27 82 726 5103 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Debugger causing problem in Windows
George Lober wrote: Since I mostly do my main Lazarus stuff under Linux, I have just now come to the conclusion that under Windows (win98se), with gdb (6.2.1) enabled, clicking on run or F9 causes the code to get compiled, but it doesn't run. If I disable gdb (no debugger at all) everything is fine, the program compiles and runs. I was aware people had problems with debugging on windows, but going back a few months I don't recall programs not running at all. This is with svn Lazarus from about three weeks ago as well as with yesterdays svn #8612. Checking at: http://www.gnu.org/software/gdb/ , I see that the latest version is 6.4, but by the looks of it is available only for Linux. Does anybody know where one could the 6.4 version for Windows ? I really don't want to bother with the whole thing of installing Cygwin or MinGW on my Windows just to get a debugger. Maybe somebody with Cygwin or MinGW installed could port gdb, and post it somewhere for Lazarus users. Would 6.4 or something higher then 6.2.1 even help ? Should I enter this as a bug ? Does anyone have any suggestions ? (and no, I don't want to feed Gates even more money for XP, I think he's got enough) Not sure what to make of the silence. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives