Re[2]: [lazarus] Error: Undefined symbol
30.5.2007 23:51 - Vincent Snijders [EMAIL PROTECTED] VS Roland Turcan schreef: Hello lazarus project! During compilation of Lazarus after adding new units into component package I get this error message: C:\lazarus\ide\lazarus.pp(117,1) Error: Undefined symbol: RESOURCESTRINGLIST_MSGDLGS MSGDLGS.pas is my unit and I have set the path to that file in Package/Compiler Option/Paths/Other Unit Files and I also have added it into package as unit without register unit flag. VS This looks like: VS http://www.freepascal.org/mantis/view.php?id=8372 VS Try to update your fpc version. Super, the latest SVN works fine. VS Vincent VS P.S. please, remove the reply to header. OK, sorry for that. -- Best regards, TRoland http://www.rotursoft.sk http://exekutor.rotursoft.sk _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Toolsconvert, compile, run then Execution stopped
Hello, (I use the german version, may be my translation don't fit exactly) I converted some delphi3 sources. When I compile then, there are no errors (I deletet {$R *.RES}). But at the end ther was the mesage execution stopped ( exact in german; Ausführung angehalten) Is there a general hint? Thnks Friedrich _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Debugger on Mac OS X
On 5/31/07, Hess, Philip J [EMAIL PROTECTED] wrote: Regarding your 2nd suggestion: It's absolutely critical that the IDE not create a new app bundle each time it compiles. It doesn't need to create a new app bundle with each compile. Just make a trivial check: Does myapp.app already exist? If yes, do nothing. If no, create a app bundle and also add the symbolic link for the executable -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Debugger on Mac OS X
On 5/31/07, Hess, Philip J [EMAIL PROTECTED] wrote: I think you can set Pass Options To The Linker to this: -framework carbon -framework Qt4Intf -lobjc for each new project and then just forget about it. You can then change the widget type to gtk, qt or carbon as needed and compile. I don't believe the extra linker switches make any difference if not needed to resolve references for a particular widget set. In this case we could add a new compiler option, that only works on Mac OS X, similar to the compiler option to create a windows GUI app. And this option would be on by default on graphical application. Lazarus would ignore it when not in mac os x. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Debugger on Mac OS X
On 5/31/07, Hess, Philip J [EMAIL PROTECTED] wrote: -framework carbon -framework Qt4Intf -lobjc What does -lobjc do? -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Reducing Flickeron a TImage component
The disabled TBitBtn flickers, because the grayed image is created during paint. TSpeedButton does not gray the image, but paints delayed (gtk1 intf). So it might flicker less for small buttons. Aaaah, okay, that explains it - but also means it won't work for me. The 'grayed' effect is fairly fundamental to the usability of the app. Also - these are not small buttons :) the glyphs are about 128x128 each. A.J. -- A.J. Venter CEO - OutKast Solutions C.C. http://www.outkastsolutions.co.za Cell: +27 83 455 9978 Fax: +27 21 413 2800 Office: +27 21 591 6766 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Debugger on Mac OS X
Of course those other things I mentioned are secondary. The most important think is having debugging on the IDE. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Reducing Flickeron a TImage component
On Thu, 31 May 2007 09:14:52 +0200 A.J. Venter [EMAIL PROTECTED] wrote: The disabled TBitBtn flickers, because the grayed image is created during paint. TSpeedButton does not gray the image, but paints delayed (gtk1 intf). So it might flicker less for small buttons. Aaaah, okay, that explains it - but also means it won't work for me. The 'grayed' effect is fairly fundamental to the usability of the app. You can 'gray' it yourself. Also - these are not small buttons :) the glyphs are about 128x128 each. That's not very big. It should flicker less. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Toolsconvert, compile, run then Execution stopped
On Thu, 31 May 2007 09:28:02 +0200 ht [EMAIL PROTECTED] wrote: Hello, (I use the german version, may be my translation don't fit exactly) I converted some delphi3 sources. When I compile then, there are no errors (I deletet {$R *.RES}). But at the end ther was the mesage execution stopped ( exact in german; Ausführung angehalten) Is there a general hint? This hint gives you visual feedback, that you application exited normally. If you don't want to see this message: Environment Debugger Options Show Message on Stop. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] App bundle and icons for x11 apps on macintosh
Hi, I just installed open office on macintosh. It requires X11 to run, but it is as easy to install (just drag the folder from the dmg), to run (can be put on the docker) and uninstall as any good aqua application. That's really very interresting, because if Open Office can do it, we could do the same for Lazarus =) Yes, of course we still need fink and gtk, but with each improvement things can easier =) I will try to look at this when I have free time ... bye, -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Accepting Input on controls which don't have focus
On Thu, 31 May 2007 07:13:39 +0200 Dave Coventry [EMAIL PROTECTED] wrote: Hi, I have a form with a TScrollBox and a TMemo. The TScrollBox has a TImage within it. The Purpose of the TScrollBox is to capture MouseWheel events (And also, it's painted black, the same colour as the TImage to reduce flicker). What I want is for the user's keyboard input to be reflected in the TMemo. However, if the Focus is set onto the TImage, the TMemo doesn't take the keyboard input, and visa versa, if the TMemo has focus, the Mousewheel events are discarded. Any solutions? Under gtk mouse wheel normally scrolls whatever is under the mouse, ignoring current focus. The same is true for LCL gtk applications. Maybe do this for other platforms: If the image receives focus, set focus to the memo. If the memo receives mouse wheel events, scroll the scrollbox. About flicker: What is the state of the double buffering and erase background of the win32/64 intf? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Accepting Input on controls which don't have focus
Mattias Gaertner wrote: Under gtk mouse wheel normally scrolls whatever is under the mouse, ignoring current focus. The same is true for LCL gtk applications. I'm currently writing this under XP, but intend to have Linux versions as well. Maybe do this for other platforms: If the image receives focus, set focus to the memo. If the memo receives mouse wheel events, scroll the scrollbox. How do I tell if the memo has received mouse wheel events? About flicker: What is the state of the double buffering and erase background of the win32/64 intf? With a black background on the scrollBox Panel and with the TImage being black, the ficker is barely noticeable. I am using rubber-banding directly onto the TImage camvas, but have the graphics on a TBitMap. Once the user has clicked where the line goes, this is drawn onto the TBitMap and the whole thing is copied onto the TImage Canvas. It seems to work really well.:) -- Dave Coventry Tel (home): +27(0)31 3092301 Tel (office): +27(0)31 2058448 Cell: +27(0)82 9000179 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Wince Crossbin utils windows installer don't works
[EMAIL PROTECTED] schreef: Hi ;) I just downloaded and installed the new lazarus+crosswince but they don't works. The file I downloaded are: Lazarus-0.9.23-fpc-2.1.3-20070424-win32.exe Lazarus-0.9.23-fpc-2.1.3-20070422-cross-arm-wince-win32.exe After installing, I opened lazarus and pressed F9 to compile a idle project, it worked. After changing target os and cpu to wince and arm (in al the three comboboxes), I pressed control + f9 and got this errors: project1.lpr(19) Warning: Object wincemenures.or not found, Linking may fail ! project1.lpr(19) Warning: Object wincemenures.or not found, Linking may fail ! project1.lpr(19) Error: Can't open object file: wincemenures.or project1.lpr(19) Fatal: There were 1 errors compiling module, stopping I have uploaded a new arm-wince cross installer. In this version (with fpc 2.1.5) this bug has been fixed. You can download it from ftp://ftp.hu.freepascal.org/pub/lazarus/cross Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] GTK2 - Bug with SpinEdit on Modal Dialog
Hi all, Not sure if this affects ALL spinedits or just on modal dialogs, but under GTK2 with the spinedit on a modal form, spinedit.value ALWAYS returns '1' regardless of the actual value - recompile the same app with gtk1 and the correct value is returned. A.J. -- A.J. Venter CEO - OutKast Solutions C.C. http://www.outkastsolutions.co.za Cell: +27 83 455 9978 Fax: +27 21 413 2800 Office: +27 21 591 6766 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
RE: [lazarus] App bundle and icons for x11 apps on macintosh
Felipe, Have you tried NeoOffice? It's a native OO port for OS X. I don't think many Mac users would be happy with an X11 version of OO. http://www.neooffice.org/neojava/en/index.php Thanks. -Phil -Original Message- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 5:27 AM To: lazarus@miraclec.com Subject: [lazarus] App bundle and icons for x11 apps on macintosh Hi, I just installed open office on macintosh. It requires X11 to run, but it is as easy to install (just drag the folder from the dmg), to run (can be put on the docker) and uninstall as any good aqua application. That's really very interresting, because if Open Office can do it, we could do the same for Lazarus =) Yes, of course we still need fink and gtk, but with each improvement things can easier =) I will try to look at this when I have free time ... bye, -- Felipe Monteiro de Carvalho _ 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] Debugger on Mac OS X
Apparently with Qt 4.2 it now requires the Objective C library (objc) to link against. Thanks. -Phil -Original Message- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 3:09 AM To: lazarus@miraclec.com Subject: Re: [lazarus] Debugger on Mac OS X On 5/31/07, Hess, Philip J [EMAIL PROTECTED] wrote: -framework carbon -framework Qt4Intf -lobjc What does -lobjc do? -- Felipe Monteiro de Carvalho _ 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] App bundle and icons for x11 apps on macintosh
I like the X11-version of OO way more better then the native one. The native one works slower, a bit unstable, has less features but on the other side more problems. (But I must admit, I tested it one year ago or so.) And it's also no problem to have X on your Mac OS X, it's installed by default and if it's not, you can very easily install it. And there are some other applications which need X, for example Gimp and most other Linux application (and while most native Mac OS X applications are shareware/commercial, you have the choice between Linux application under X or a pirated copy of some native application). Greetings, Albert Am Donnerstag, den 31.05.2007, 09:16 -0400 schrieb Hess, Philip J: Felipe, Have you tried NeoOffice? It's a native OO port for OS X. I don't think many Mac users would be happy with an X11 version of OO. http://www.neooffice.org/neojava/en/index.php Thanks. -Phil -Original Message- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 5:27 AM To: lazarus@miraclec.com Subject: [lazarus] App bundle and icons for x11 apps on macintosh Hi, I just installed open office on macintosh. It requires X11 to run, but it is as easy to install (just drag the folder from the dmg), to run (can be put on the docker) and uninstall as any good aqua application. That's really very interresting, because if Open Office can do it, we could do the same for Lazarus =) Yes, of course we still need fink and gtk, but with each improvement things can easier =) I will try to look at this when I have free time ... bye,
RE: [lazarus] App bundle and icons for x11 apps on macintosh
Albert, Please test the latest NeoOffice. I believe a year ago it was still at OO 1.1. Much improved since then. X11 is not installed by default on OS X. Thanks. -Phil From: Albert Zeyer [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 10:13 AM To: lazarus@miraclec.com Subject: RE: [lazarus] App bundle and icons for x11 apps on macintosh I like the X11-version of OO way more better then the native one. The native one works slower, a bit unstable, has less features but on the other side more problems. (But I must admit, I tested it one year ago or so.) And it's also no problem to have X on your Mac OS X, it's installed by default and if it's not, you can very easily install it. And there are some other applications which need X, for example Gimp and most other Linux application (and while most native Mac OS X applications are shareware/commercial, you have the choice between Linux application under X or a pirated copy of some native application). Greetings, Albert Am Donnerstag, den 31.05.2007, 09:16 -0400 schrieb Hess, Philip J: Felipe, Have you tried NeoOffice? It's a native OO port for OS X. I don't think many Mac users would be happy with an X11 version of OO. http://www.neooffice.org/neojava/en/index.php Thanks. -Phil -Original Message- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 5:27 AM To: lazarus@miraclec.com Subject: [lazarus] App bundle and icons for x11 apps on macintosh Hi, I just installed open office on macintosh. It requires X11 to run, but it is as easy to install (just drag the folder from the dmg), to run (can be put on the docker) and uninstall as any good aqua application. That's really very interresting, because if Open Office can do it, we could do the same for Lazarus =) Yes, of course we still need fink and gtk, but with each improvement things can easier =) I will try to look at this when I have free time ... bye,
Re: [lazarus] Strange bug with SQLQuery.Close
On Thu, 2007-05-31 at 02:20 +0200, fedorax wrote: Selon Bram Kuijvenhoven [EMAIL PROTECTED]: fedorax wrote: Selon Joost van der Sluis [EMAIL PROTECTED]: On Sat, 2007-05-26 at 15:00 +0200, fedorax wrote: I've a strange bug. In this fonction ( Which was worked perfectly from few months an never chage ). -- procedure TFunc_Sql.List_TablesSelectionChange(Sender: TObject; User: boolean); begin If List_Tables.ItemIndex0 then List_Tables.ItemIndex:=0; T_Name:=List_Tables.Items[List_Tables.ItemIndex]; // The selected table name If SQLQuery.Active Then SQLQuery.Close; // Close the precedent query SQLQuery.SQL.Text:='Select * From '+ T_Name; SQLQuery.Open; //Open to list in DbGrid end; -- The line If SQLQuery.Active Then SQLQuery.Close; cause an access violation and close the application without visible cause. My guess is that you've destroyed/freed SQLQuery somewhere before this code is called. Joost Not that, the SQLComponent is put on the form and no instruction exist for free it. Is it possible that a bug free a component without programmer ask to it ? I do as you say and i put here the firts part of ( very long ) bakctrace. may be somebody can understand this ? For me i just see a problem with a memory pointer and i'm remember that memory pointer system ha'd changed few day's ago ( Lazarus won't compile and stop in this fonction ). May be a bug was introduced at this time ? I'ts apear ever on the same line of code but never at the same time. Sometime i can move move in list a long time before crash, sometime just two clicks in list are sufficient to crash. And never on a specific location in the list. I forget to specify: The message 'access violation' and others appears only if the program is compiled with gdb active in options. Without gdb no message. The program freeze and nothing is displayed. It could be that it's fixed in r7538. Can you test? Joost _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] App bundle and icons for x11 apps on macintosh
On Thu, 31 May 2007 10:54:12 -0400 Hess, Philip J [EMAIL PROTECTED] wrote: Albert, Please test the latest NeoOffice. I believe a year ago it was still at OO 1.1. Much improved since then. Maybe you missed the point of Felipe. At the moment the only LCL interface for MacOSX that is good enough for the IDE is the gtk1 intf and this requires X11. Felipe pointed out, that OO demonstrates what is possible for an X11 package under MacOSX. X11 is not installed by default on OS X. Yes, and X11 apps always lookfeel differently. An IDE using a native LCL interface would be better. The qt and gtk2 intf are quite far, but I'm not sure about how native these backends are on MacOSX. Any volunteer? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Debugger on Mac OS X
Vincent Snijders napsal(a): Tom Gregorovic schreef: Hi, I am working on running/debugging Application bundles under Carbon option for Lazarus IDE. I will test it tomorrow and if it succeeds, I commit it. Tom, I was wondering how far are you from running the IDE based on the carbon widgetset? Or do you already run a carbon based IDE? I estimate it optimisticaly to six months, in case I would continue only on my own. Now I'm quite battling with scrolling control and there are other complex things to do like syn edit. Tom _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
RE: [lazarus] Debugger on Mac OS X
Felipe, Good suggestion. By making it a compiler option, it could be unchecked if you don't want the default barebones app bundle to be created. For experienced developers, this would probably be what they would want since they would probably have to delete the barebones app bundle in order to use their own Info.plist, etc. However, by making it on by default, it would mean that new developers wouldn't have to worry about figuring this out. Thanks. -Phil -Original Message- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 3:04 AM To: lazarus@miraclec.com Subject: Re: [lazarus] Debugger on Mac OS X On 5/31/07, Hess, Philip J [EMAIL PROTECTED] wrote: I think you can set Pass Options To The Linker to this: -framework carbon -framework Qt4Intf -lobjc for each new project and then just forget about it. You can then change the widget type to gtk, qt or carbon as needed and compile. I don't believe the extra linker switches make any difference if not needed to resolve references for a particular widget set. In this case we could add a new compiler option, that only works on Mac OS X, similar to the compiler option to create a windows GUI app. And this option would be on by default on graphical application. Lazarus would ignore it when not in mac os x. -- Felipe Monteiro de Carvalho _ 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] App bundle and icons for x11 apps on macintosh
Felipe, You should be able to create an app bundle for Lazarus, even with its dependence on needing X11 already running. See http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips. I had this working at one time. Note that you'll probably want to go a step further and try putting all of the Lazarus source and other files inside the bundle folder. That way you'll be able to drag and drop Lazarus anywhere you want on your computer. An app bundle is what's known as an opaque directory in that it appears to the user in Finder as a single file, without its .app extension. However, it's really just a normal folder. It's important to remember that when constructing your app bundle, you're also readying it for distribution. For example, you can drag and drop the app bundle anywhere you want or copy it to another computer. Or you can turn it into an installer package (.pkg) with PackageMaker. This is a different approach from, say, Windows, where you build your application and then use a separate program (e.g., Inno Setup) to select all the various files, often from diffeent locations on your computer, that need to be rolled into the installer, and also specify where all these files will be installed on the target computer. With OS X, you're both building the app and creating the final installation footprint at the same time. Really a lot more logical way of doing things. I think that moving to an app bundle for the IDE really should wait for a Carbon-based IDE. That would eliminate the need for X11 or GTK to be installed and would make Lazarus a true Mac app that's easy to install (I suspect most newcomers to Lazarus on OS X just give up when they see how complicated the installation is). Once a Carbon-based IDE is available I doubt if any Mac user of Lazarus would ever install GTK, except perhaps out of curiosity. Also, since you have an Intel Mac, you should be able to install and run the PowerPC version of FPC and Lazarus too and create PowerPC executables without cross-compiling. One issue would be figuring out how to install two versions of FPC since these file locations are kind of hardwired right now. Perhaps FPC could be put in an app bundle too or made more relocatable than it is now. If you're able to compile PowerPC executables maybe you could look into creating a universal binary app bundle that contains both the Intel and PowerPC executables and compiled units. If that's possible then Lazarus could theoretically be distributed as a universal binary instead of separate versions for Intel and PowerPC. Thanks. -Phil -Original Message- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 5:27 AM To: lazarus@miraclec.com Subject: [lazarus] App bundle and icons for x11 apps on macintosh Hi, I just installed open office on macintosh. It requires X11 to run, but it is as easy to install (just drag the folder from the dmg), to run (can be put on the docker) and uninstall as any good aqua application. That's really very interresting, because if Open Office can do it, we could do the same for Lazarus =) Yes, of course we still need fink and gtk, but with each improvement things can easier =) I will try to look at this when I have free time ... bye, -- Felipe Monteiro de Carvalho _ 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] patch finddeclarationtool
On Thu, 31 May 2007 18:07:20 +0200 Darius Blaszijk [EMAIL PROTECTED] wrote: This patch implements the method: FindInitializationSection. Thanks. Applied. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] GTK2 - Bug with SpinEdit on Modal Dialog
On Thu, 31 May 2007 14:52:19 +0200 A.J. Venter [EMAIL PROTECTED] wrote: Hi all, Not sure if this affects ALL spinedits or just on modal dialogs, but under GTK2 with the spinedit on a modal form, spinedit.value ALWAYS returns '1' regardless of the actual value - recompile the same app with gtk1 and the correct value is returned. Works here. There are two many OnChange events though. Can you provide an example or even better: a bugreport? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Accepting Input on controls which don't have focus
On Thu, 31 May 2007 13:12:37 +0200 Dave Coventry [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Under gtk mouse wheel normally scrolls whatever is under the mouse, ignoring current focus. The same is true for LCL gtk applications. I'm currently writing this under XP, but intend to have Linux versions as well. Maybe do this for other platforms: If the image receives focus, set focus to the memo. If the memo receives mouse wheel events, scroll the scrollbox. How do I tell if the memo has received mouse wheel events? The wheel events are not visible in the OI, but should work. Memo1.OnMouseWheel:=| + Ctrl+Shift+C. About flicker: What is the state of the double buffering and erase background of the win32/64 intf? With a black background on the scrollBox Panel and with the TImage being black, the ficker is barely noticeable. I am using rubber-banding directly onto the TImage camvas, but have the graphics on a TBitMap. Once the user has clicked where the line goes, this is drawn onto the TBitMap and the whole thing is copied onto the TImage Canvas. It seems to work really well.:) This is a workaround. This means, the double buffering+background does not work in the win32 intf. Right? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Strange bug with SQLQuery.Close
Selon Joost van der Sluis [EMAIL PROTECTED]: It could be that it's fixed in r7538. Can you test? Joost That's wok now. I play few minutes with arrows and mouse in the list and nothing bad happen. But there is an other bug in r7538 at make install: -- /usr/local/src/fpc/trunk/utils/fpcm/fpcmake -p -Ti386-linux Makefile.fpc Processing Makefile.fpc Error: Target linux, package fpmake not found - And fpc install stop just after. That's seem without consequence on lazarus compilation and program's compile. ( my older /usr/local/lib/fpc/2.3.1 is always destroy before new install and the fpmake file is actually missing in it ). _ 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] Wince Crossbin utils windows installer don't works
Hello I install today, Lazarus-0.9.23-fpc-2.1.5-20070531-win32.exe Lazarus-0.9.23-fpc-2.1.5-20070531-cross-arm-wince-win32.exe (i see in your mail here that it exist !!) Is the Cross-arm-wince make every day , is not accessible in the snapshots. I test my prog on pocket pc emulator, it'is ok. Another question, i try to access with SVN to the trunc as ask to me for download source wince, i don't have any user and password, what is the procedure. Finally your mail permit me to update my configuration. Thanks 2007/5/31, Vincent Snijders [EMAIL PROTECTED]: [EMAIL PROTECTED] schreef: Hi ;) I just downloaded and installed the new lazarus+crosswince but they don't works. The file I downloaded are: Lazarus-0.9.23-fpc-2.1.3-20070424-win32.exe Lazarus-0.9.23-fpc-2.1.3-20070422-cross-arm-wince-win32.exe After installing, I opened lazarus and pressed F9 to compile a idle project, it worked. After changing target os and cpu to wince and arm (in al the three comboboxes), I pressed control + f9 and got this errors: project1.lpr(19) Warning: Object wincemenures.or not found, Linking may fail ! project1.lpr(19) Warning: Object wincemenures.or not found, Linking may fail ! project1.lpr(19) Error: Can't open object file: wincemenures.or project1.lpr(19) Fatal: There were 1 errors compiling module, stopping I have uploaded a new arm-wince cross installer. In this version (with fpc 2.1.5) this bug has been fixed. You can download it from ftp://ftp.hu.freepascal.org/pub/lazarus/cross Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] App bundle and icons for x11 apps on macintosh
Hess, Philip J schreef: Also, since you have an Intel Mac, you should be able to install and run the PowerPC version of FPC and Lazarus too and create PowerPC executables without cross-compiling. One issue would be figuring out how to install two versions of FPC since these file locations are kind of hardwired right now. Perhaps FPC could be put in an app bundle too or made more relocatable than it is now. If you're able to compile PowerPC executables maybe you could look into creating a universal binary app bundle that contains both the Intel and PowerPC executables and compiled units. If that's possible then Lazarus could theoretically be distributed as a universal binary instead of separate versions for Intel and PowerPC. AFAIK, fpc 2.1.4 for IntelMac has a cross compiler for powerpc and so do the intel snapshots for Lazarus. What doesn't happen automatically in Lazarus is the creation of Universal binaries, but I think it is possible with the IntelMac snashots to compile both powerpc and intel binaries and lipo them together manually. Needs testing though, I haven't heard anybody doing this yet. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus and Ubuntu 7.04 AMD 64
Hello Has anyone managed to successfully install Lazarus on Ubuntu 7.04 AMD 64 version. I was able to download Free Pascal for this version of Linux but not Lazarus. I have downloaded the source files for Lazarus and compiled it successfully but when it launches it says it cannot find the Free Pascal source directory and I have not been able to identify where this directory is. Any help would be appreciated. Regards Paul _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Wince Crossbin utils windows installer don't works
patrick feillant schreef: Hello I install today, Lazarus-0.9.23-fpc-2.1.5-20070531-win32.exe Lazarus-0.9.23-fpc-2.1.5-20070531-cross-arm-wince-win32.exe (i see in your mail here that it exist !!) Is the Cross-arm-wince make every day , is not accessible in the snapshots. No, it is not made every day. Maybe in the future it will. I test my prog on pocket pc emulator, it'is ok. Thanks for testing. :-) Another question, i try to access with SVN to the trunc as ask to me for download source wince, i don't have any user and password, what is the procedure. Finally your mail permit me to update my configuration. What svn url did you use? http://svn.freepascal.org/svn/fpc/trunk ? Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Accepting Input on controls which don't have focus
Dave Coventry wrote: However, if the Focus is set onto the TImage, the TMemo doesn't take the keyboard input, and visa versa, if the TMemo has focus, the Mousewheel events are discarded. Any solutions? Keystrokes go to focused control. Mousewheel is special, I've written code to redirect it to the window under the cursor. Perhaps that's broken (again). Are mousewheel events being redirected, or what are you observing ? Micha _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus for win64 available for download from sourceforge
The win64 versions of fpc and Lazarus have improved a lot in the last couple of months. So much that we can include it in the regular releases when fpc 2.2.0 has been released (expected this summer). To celebrate this, the Lazarus team has uploaded a snapshot to the Lazarus testing download area on Sourceforge: http://sourceforge.net/project/showfiles.php?group_id=89339package_id=93599 Main differences between the win32 and win64 version: * No debugger support in win64 (there is no gdb for win64). * No resource support, so no default icon for example and no windows xp look, due to missing manifest (gnu's windres doesn't support win64) * Lazarus for windows 64 is less used and tested, so a lot of components and packages may not work (for example LazReport). Create bug reports for things you have noticed. This installer can be seen as a release candidate for the first official Lazarus release with win64, which will probably made a couple of weeks after the fpc 2.2.0 release. The main purpose of this announcement and the upload to sourceforge is to attract more people who can test this lazarus version. Please use the bugtracker http://www.freepascal.org/mantis/set_project.php?project_id=1 if you notice bugs that are not in the win32 version. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Resizing an image
Hi, What is the best way to resize an image? I am thinking of something Java's Image class has that will return a scaled image, and you can decide whether it should be a good quality or a fast one. I don't necessarily want to write it to a file, just in memory. (I want to cache images in the memory and so would like to have them much smaller than they are.) I had a look at PascalMagick, but does than just write output to a file? Thanks Charl -- I love deadlines. I especially love the whooshing sound they make as they fly by. - Douglas Adams
Re: [lazarus] Wince Crossbin utils windows installer don't works
I use that, find in page http://www.freepascal.org/develop.html#svn; in tortoise svn on windows (http://svn.freepascal.org/svn/fpc/trunk fpc), it'is the first time i use it, may be is not correct. To retrieve the full fpc source repository, type svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc 2007/5/31, Vincent Snijders [EMAIL PROTECTED]: patrick feillant schreef: Hello I install today, Lazarus-0.9.23-fpc-2.1.5-20070531-win32.exe Lazarus-0.9.23-fpc-2.1.5-20070531-cross-arm-wince-win32.exe (i see in your mail here that it exist !!) Is the Cross-arm-wince make every day , is not accessible in the snapshots. No, it is not made every day. Maybe in the future it will. I test my prog on pocket pc emulator, it'is ok. Thanks for testing. :-) Another question, i try to access with SVN to the trunc as ask to me for download source wince, i don't have any user and password, what is the procedure. Finally your mail permit me to update my configuration. What svn url did you use? http://svn.freepascal.org/svn/fpc/trunk ? Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Resizing an image
On Thu, 31 May 2007, Charl van Jaarsveldt wrote: Hi, What is the best way to resize an image? I am thinking of something Java's Image class has that will return a scaled image, and you can decide whether it should be a good quality or a fast one. I don't necessarily want to write it to a file, just in memory. (I want to cache images in the memory and so would like to have them much smaller than they are.) There are several resizing alogirthms present in FPC. see the extinterpolation unit. how it happens is: create a canvas, and draw the image on the canvas with the correct interpolation. If you want to create a new image in memory, create an TFPImageCanvas with the desired size, and draw the original canvas with the correct interpolation routine. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus and Ubuntu 7.04 AMD 64
On Thu, 31 May 2007 20:12:19 +0100 Paul Midgley [EMAIL PROTECTED] wrote: Hello Has anyone managed to successfully install Lazarus on Ubuntu 7.04 AMD 64 version. I was able to download Free Pascal for this version of Linux but not Lazarus. I have downloaded the source files for Lazarus and compiled it successfully but when it launches it says it cannot find the Free Pascal source directory and I have not been able to identify where this directory is. Any help would be appreciated. As any compiled piece of code, FPC comes in two flavors: The sources and the binaries. You installed the binaries. Now download the sources and tell lazarus where they are (Environment Options FPC Source directory). See http://wiki.lazarus.freepascal.org/Installing_Lazarus#FPC_Sources Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Resizing an image
Ah, that would probably explain why I can't find it. :-) Yeah, I want to keep a cache of images in memory while keeping open the possibility of actually saving the cache. Thanks for the help! Charl On 5/31/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: On Thu, 31 May 2007, Charl van Jaarsveldt wrote: Thanks for the pointers. I can't find the extinterpolation unit though. in the FPC source tree: packages/fcl-image/src/extinterpolation.pp (it may not be present if you're working with the the 2.0.4 release) I think I am getting an idea of how to do what I want. The only thing that eludes me is how to get the FPImage into the TImage control? The class hierarchy seems rather confusing there. :-( If you just want to draw it, simply draw on the TImage canvas, that should work. But TImage itself has resizing capabilities, the imgview demo shows how to do this. The disadvantage is that you can't save the resized image, as far as I know. Michael. Thanks Charl PS Please excuse my ignorance, this is the first time I am working with images! On 5/31/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: On Thu, 31 May 2007, Charl van Jaarsveldt wrote: Hi, What is the best way to resize an image? I am thinking of something Java's Image class has that will return a scaled image, and you can decide whether it should be a good quality or a fast one. I don't necessarily want to write it to a file, just in memory. (I want to cache images in the memory and so would like to have them much smaller than they are.) There are several resizing alogirthms present in FPC. see the extinterpolation unit. how it happens is: create a canvas, and draw the image on the canvas with the correct interpolation. If you want to create a new image in memory, create an TFPImageCanvas with the desired size, and draw the original canvas with the correct interpolation routine. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- I love deadlines. I especially love the whooshing sound they make as they fly by. - Douglas Adams _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- I love deadlines. I especially love the whooshing sound they make as they fly by. - Douglas Adams
Re: [lazarus] Resizing an image
On Thu, 31 May 2007, Charl van Jaarsveldt wrote: Thanks for the pointers. I can't find the extinterpolation unit though. in the FPC source tree: packages/fcl-image/src/extinterpolation.pp (it may not be present if you're working with the the 2.0.4 release) I think I am getting an idea of how to do what I want. The only thing that eludes me is how to get the FPImage into the TImage control? The class hierarchy seems rather confusing there. :-( If you just want to draw it, simply draw on the TImage canvas, that should work. But TImage itself has resizing capabilities, the imgview demo shows how to do this. The disadvantage is that you can't save the resized image, as far as I know. Michael. Thanks Charl PS Please excuse my ignorance, this is the first time I am working with images! On 5/31/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: On Thu, 31 May 2007, Charl van Jaarsveldt wrote: Hi, What is the best way to resize an image? I am thinking of something Java's Image class has that will return a scaled image, and you can decide whether it should be a good quality or a fast one. I don't necessarily want to write it to a file, just in memory. (I want to cache images in the memory and so would like to have them much smaller than they are.) There are several resizing alogirthms present in FPC. see the extinterpolation unit. how it happens is: create a canvas, and draw the image on the canvas with the correct interpolation. If you want to create a new image in memory, create an TFPImageCanvas with the desired size, and draw the original canvas with the correct interpolation routine. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- I love deadlines. I especially love the whooshing sound they make as they fly by. - Douglas Adams _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Resizing an image
Hi Michael, I am still confused. :-( I cannot figure out how to get the FPImage drawn. I thought perhaps the TImage.canvas.draw() function would do it - the code completion shows a draw(int, int, FPCustomImage) method, but when I compile it the compiler says it it expects a TGraphic. Sure enough, the TCanvas has one that expects TGraphic, and FPCanvas has one with FPCustomImage, but it is not marked as overloaded, so I think the compiler assumes it is not available. I tried to find a way to get a TGraphic object from a FPCustomImage, but no success. Thanks again for the help. Charl On 5/31/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote: Ah, that would probably explain why I can't find it. :-) Yeah, I want to keep a cache of images in memory while keeping open the possibility of actually saving the cache. Thanks for the help! Charl On 5/31/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: On Thu, 31 May 2007, Charl van Jaarsveldt wrote: Thanks for the pointers. I can't find the extinterpolation unit though. in the FPC source tree: packages/fcl-image/src/extinterpolation.pp (it may not be present if you're working with the the 2.0.4 release) I think I am getting an idea of how to do what I want. The only thing that eludes me is how to get the FPImage into the TImage control? The class hierarchy seems rather confusing there. :-( If you just want to draw it, simply draw on the TImage canvas, that should work. But TImage itself has resizing capabilities, the imgview demo shows how to do this. The disadvantage is that you can't save the resized image, as far as I know. Michael. Thanks Charl PS Please excuse my ignorance, this is the first time I am working with images! On 5/31/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: On Thu, 31 May 2007, Charl van Jaarsveldt wrote: Hi, What is the best way to resize an image? I am thinking of something Java's Image class has that will return a scaled image, and you can decide whether it should be a good quality or a fast one. I don't necessarily want to write it to a file, just in memory. (I want to cache images in the memory and so would like to have them much smaller than they are.) There are several resizing alogirthms present in FPC. see the extinterpolation unit. how it happens is: create a canvas, and draw the image on the canvas with the correct interpolation. If you want to create a new image in memory, create an TFPImageCanvas with the desired size, and draw the original canvas with the correct interpolation routine. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- I love deadlines. I especially love the whooshing sound they make as they fly by. - Douglas Adams _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- I love deadlines. I especially love the whooshing sound they make as they fly by. - Douglas Adams -- I love deadlines. I especially love the whooshing sound they make as they fly by. - Douglas Adams
Re: [lazarus] Wince Crossbin utils windows installer don't works
Hi patrick where I can find the pocket pc emulator ? Thank you patrick feillant [EMAIL PROTECTED] wrote: Hello I install today, Lazarus-0.9.23-fpc-2.1.5-20070531-win32.exe Lazarus-0.9.23-fpc-2.1.5-20070531-cross-arm-wince-win32.exe (i see in your mail here that it exist !!) Is the Cross-arm-wince make every day , is not accessible in the snapshots. I test my prog on pocket pc emulator, it'is ok. Another question, i try to access with SVN to the trunc as ask to me for download source wince, i don't have any user and password, what is the procedure. Finally your mail permit me to update my configuration. Thanks 2007/5/31, Vincent Snijders [EMAIL PROTECTED]: [EMAIL PROTECTED] schreef: Hi ;) I just downloaded and installed the new lazarus+crosswince but they don't works. The file I downloaded are: Lazarus-0.9.23-fpc-2.1.3-20070424-win32.exe Lazarus-0.9.23-fpc-2.1.3-20070422-cross-arm-wince-win32.exe After installing, I opened lazarus and pressed F9 to compile a idle project, it worked. After changing target os and cpu to wince and arm (in al the three comboboxes), I pressed control + f9 and got this errors: project1.lpr(19) Warning: Object wincemenures.or not found, Linking may fail ! project1.lpr(19) Warning: Object wincemenures.or not found, Linking may fail ! project1.lpr(19) Error: Can't open object file: wincemenures.or project1.lpr(19) Fatal: There were 1 errors compiling module, stopping I have uploaded a new arm-wince cross installer. In this version (with fpc 2.1.5) this bug has been fixed. You can download it from ftp://ftp.hu.freepascal.org/pub/lazarus/cross Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
Re: [lazarus] Lazarus for win64 available for download from sourceforge
Hi,my name is German Tejero, and my english is very bad. I download the lazarus win64 release, and i test it on a Intel Core 2 Duo E6400. I install the lazdaemon package and i discover a bug, when add a TDaemon or a TDaemonMapper, the uses contains duplicated LResources unit: * uses Classes, SysUtils, LResources, LResources, daemonapp; * the bug is in the reglazdaemon unit: ... function TDaemonFileDescriptor.GetInterfaceUsesSection: String; begin Result:=inherited GetInterfaceUsesSection+', LResources, daemonapp'; end; ... function TDaemonMapperDescriptor.GetInterfaceUsesSection: String; begin Result:=inherited GetInterfaceUsesSection+', LResources, daemonapp'; end; ... Bye. German. 2007/5/31, Vincent Snijders [EMAIL PROTECTED]: The win64 versions of fpc and Lazarus have improved a lot in the last couple of months. So much that we can include it in the regular releases when fpc 2.2.0 has been released (expected this summer). To celebrate this, the Lazarus team has uploaded a snapshot to the Lazarus testing download area on Sourceforge: http://sourceforge.net/project/showfiles.php?group_id=89339package_id=93599 Main differences between the win32 and win64 version: * No debugger support in win64 (there is no gdb for win64). * No resource support, so no default icon for example and no windows xp look, due to missing manifest (gnu's windres doesn't support win64) * Lazarus for windows 64 is less used and tested, so a lot of components and packages may not work (for example LazReport). Create bug reports for things you have noticed. This installer can be seen as a release candidate for the first official Lazarus release with win64, which will probably made a couple of weeks after the fpc 2.2.0 release. The main purpose of this announcement and the upload to sourceforge is to attract more people who can test this lazarus version. Please use the bugtracker http://www.freepascal.org/mantis/set_project.php?project_id=1 if you notice bugs that are not in the win32 version. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Carlos Germán Tejero
Re: [lazarus] About DBGRid+ZEOS in Suse
- Original Message - From: Allies Xposs [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, May 22, 2007 11:47 PM Subject: [lazarus] About DBGRid+ZEOS in Suse Need Help In my DBGRID dataset with ZSquery (Zeos Component) can not show Record (Varchar (4)), But Field Date (P_tgl Date) can Show record data (Record Blank). Why ? But in Script mysql can Show record : Mysql Select * from Kelompok | p_kode | P_Nama|P_tgl - | 001 | desc 001 | 2007-05-05 -- ... Pls help me . Sounds similar to this one http://www.freepascal.org/mantis/view.php?id=8731 which I still can't reproduce. 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