RE: [lazarus] How to develop real applications in Lazarus?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 02:31 To: lazarus@miraclec.com Subject: [lazarus] How to develop real applications in Lazarus? Hi, I'm working on Hamradio station logging program in Lazarus (http://cqrlog.sourceforge.net/). I started a few months (maybe a year) ago in Lazarus 0.9.23 CVS (I don't remember date, I'm on another computer). Why this CVS version? Because almost what I need works very well. My program use Firebird database (I installed uib components) and use telnet connection (Indy 10.2.0.1). In this cvs version I developed entire program. After release version 0.9.24 I decided to use it instead of 0.9.23 CVS. The fist problem was in TLazImage. It was completely rewriten. I have to made some changes in my program. Next problem was with TColorCombobox.Selection. Newer version has Selected. But it was simply. The biggist problem is that program freeze if telnet is connected. Program works perfectly about two hours and freeze. Nothing in console, no access violation. Just freeze. Program compiled in 0.9.23 CVS works perfectly many hours and never freeze. I tried latest daily snapshot and program show access violation randomly. Nothing in console, no details in access violation window. My question is, how to develop real application? Should I still develop program with old lazarus version and ignore newer versions? What can I do for better compatability with newer versions? I can not rewrite my program after every new lazarus release. How do you develop your applications? Thanks. Petr Petr Forget Indy and install the Inet components found in the components folder and use the TCP component. I've also been working on a specialized logging program for the TenTen users and I have been having great success using MySQL. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://www.n7yg.com Linux User #420428 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
RE: [lazarus] Solution to the BIG compiled file issue!
-Original Message- From: Andrew Brunner [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 08:02 To: lazarus@miraclec.com Subject: RE: [lazarus] Solution to the BIG compiled file issue! Vincent: IOW: I expect Lazarus users to be knowledgeable, Lazarus is not for fools. I offer you all this. The #1 reason why Microsoft Windows (3 and up) took off and became so popular was Visual Basic for idiots and Turbo Pascal / Delphi for the coders between C++ and VB. The long term success of this project would be cemented if we all keep a more welcoming attitude to all walks of developers. (VB, Delphi, and C++) types should be able to utilize Lazarus in the years to come. Lazarus should even have an Express edition with more powerful features not even available. IMO Lazarus has serious potential to rival that of Java. It just needs more time and backing. IMO this file size issue is a serious problem for popular utilities that will run on anything. 8MB is totally unacceptable. We need a check box option in the compiler section to strip out all debugging code from LCL and make our distros tiny. How long will that take? While a compiler option would be great, having the debug code in the run file during the development and debug cycle is great. Once you are ready to deploy the application it is a simple matter of stripping out the debug symbols and compressing the file: strip filename upx filename then send it on it's happy way. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://www.n7yg.com Linux User #420428 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] ShellApi available in Lazarus?
- Original Message - From: el stamatakos To: lazarus@miraclec.com ; [EMAIL PROTECTED] Sent: Thursday, December 06, 2007 17:02 Subject: RE: [lazarus] ShellApi available in Lazarus? Hi John Would this work undre Linux? Thanks Lefti Date: Fri, 7 Dec 2007 10:32:47 +1100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] ShellApi available in Lazarus? el stamatakos wrote: Hi All, is the ShellApi available in Lazarus? When I add it into my uses ShellApi it comes back with an error cannot find unit ShellApi. Thanks Lefti See if what you want is in the windows unit. cheers, John - The shell commands are windows only and will be found in the windows unit. I would recommend using the TProcess which should work for both Linux and Windows. Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SOAP DateTime
- Original Message - From: A.J. Venter [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, December 04, 2007 00:55 Subject: [lazarus] SOAP DateTime Hi guys, I'm busy writing a SOAP client, and I'm a little stuck formatting a datetime to be SOAP compatible. What SHOULD a SOAP datetime string look like ? Is there a function to produce one from a TDateTime ? I tried to write a simple FormateDateTime function to do it, but I must have a detail wrong because I keep getting http-400 (bad request) errors. Here is a sample generated by my current code: FromDateTime2007-12-03T15:10:45.000Z/FromDateTime Does anybody know how it should be changed ? A.J. PS. The Z I found in a website sample which I used to generate this much... what does it mean ? -- The Z stands for Zulu time or UTC. This is the time at the prime meridian that runs north and south at the 0 degree longitude line. Most computer systems maintain their time on UTC/Zulu so everyone is on the same sheet of music when comparing datetime stamps. Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Problem with pfidesource.pas in SVN13147
The following line (54) has a extranous paramter in the parameter list. CmdFormatFile:=RegisterIDECommand(Cat, SCmdPFFile, SDescrPFFile, ' ', Key,nil,@PrettyPrintFile); It shoudl be: CmdFormatFile:=RegisterIDECommand(Cat, SCmdPFFile, SDescrPFFile, Key,nil,@PrettyPrintFile); Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp Yahoo Messenger: n7yg ___ Earth is the insane asylum for the universe. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Serial Comm Support Windows
- Original Message - From: Stephano [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Sunday, December 02, 2007 05:11 Subject: Re: [lazarus] Serial Comm Support Windows Jeff Steinkamp wrote: I do not think that will be a problem, although I was not the one who posted that link. After looking at the content of the file, it look quite similar to the serial.pas using I use with windows on Delphi. Do you mean it is tainted code? _ No it's not tainted. It is similar to the unit I use, which has been around for many years and was released into the public domain back around Delphi 2 or 3. Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Serial Comm Support Windows
- Original Message - From: Florian Klaempfl [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Saturday, December 01, 2007 02:38 Subject: Re: [lazarus] Serial Comm Support Windows Stephano schrieb: Jeff Steinkamp wrote: I know there is a serial unit for Linux/Unix, but is there similar support for serial communications for the Windows Platform? http://www.luisdigital.com/programacion/fpc/serial.pp May I add this to the rtl? I do not think that will be a problem, although I was not the one who posted that link. After looking at the content of the file, it look quite similar to the serial.pas using I use with windows on Delphi. Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] some questions
You are not missing a unit, you have a conflict between the definition of an event in the form file and the actual. event handler in the unit file. I've run across this on a couple of occasions and the only what I have found to resolve the issue was to open the form file and determine which assigned event in the form file does not have a corresponding handler in the unit file. Jeff - Original Message - From: el stamatakos To: lazarus@miraclec.com Sent: Wednesday, November 28, 2007 12:21 Subject: RE: [lazarus] some questions Hi All, I am still not able to get the OnCreate Event Handler for a form to work. It keeps complaining about missing units. I checked the Project Inspector and the LCL package is under the required packages. Should there be others there. When I go to Add and the Tab New Requirement there are many packages under Package Name: Do I need to install more. I appreciate all the help since I am a beginner and have no idea what is wrong. Thanks Best, Lefti Date: Wed, 28 Nov 2007 19:38:04 +0100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] some questions On Wed, 28 Nov 2007 09:25:41 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: Hello! 1) I have solved all of my unit not found problems by adding all the Path templates. Just go to the main menu Project Compiler Options, and click the right [...] button for Other Unit Files and for Other Sources. At the bottom of the dialog, you will see the Path templates, just add all of them. No. Please add instead the LCL to the requirements in the project inspector. 2) I have never worked with databases, maybe someone else can help you on this :) Regards! -Marco 2007/11/28, el stamatakos [EMAIL PROTECTED]: Hi All, I would like to start by saying Lazarus seems like the answer I have been looking for, for a long time. I love Delphi and have finally found something similar for Linux. I have a few questions, first I registered to the forums but never received an e-mail back with password so I cannot log in. I have two questions that pertain to the Linux version of Lazarus 1) I use a form and then I click in the OnCreate Event Handler in the object inspector and it returns an error Unable to find method. Plz fix the error shown in the message window.. I look at the message window and the error is Error:unit not found:Forms. I take the same code into windows and do not have this problem. Any ideas. Is the unit part of your project and the LCL in the list of requirements (see Project / Project Inspector)? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Serial Comm Support Windows
- Original Message - From: Razvan Adrian Bogdan [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, November 27, 2007 00:22 Subject: Re: [lazarus] Serial Comm Support Windows I personally like the synaser project :) Razvan Since this particular project is a Windows only project, I just added the windows unit and used the normal routines I've used in Delphi. Nothing fancy, but works like a champ. Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Buffer Overflow
- Original Message - From: Jesus Reyes [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Friday, November 23, 2007 20:11 Subject: Re: [lazarus] Buffer Overflow --- Jeff Steinkamp [EMAIL PROTECTED] escribió: I just rebuilt Lazarus with SVN 12973 on my Linux box with GTK2 and upon restart I got a error dialog that said buffer overflow. Here is the output trace: TLazarusManager.Run starting /home/n7yg/.lazarus/bin/lazarus ... TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 [TMainIDE.Destroy] A [TMainIDE.Destroy] B - inherited Destroy... TMainIDE [TMainIDE.Destroy] END [FORMS.PP] ExceptionOccurred Sender=Ecompressionerror Exception=buffer error Stack trace: $081A26DE $0819BC0B $0819B9E4 $08196D9D $081949E1 $081367E1 TFPIMAGEBITMAP__READSTREAM, line 1926 of graphics.pp $0812BFD4 TBITMAP__LOADFROMSTREAM, line 459 of ./include/bitmap.inc $08127A10 LOADBITMAPFROMLAZARUSRESOURCE, line 1509 of graphics.pp $08090CE6 CREATEBUTTON, line 1431 of main.pp $0809084B TMAINIDE__SETUPSPEEDBUTTONS, line 1460 of main.pp $0808FAB7 TMAINIDE__CREATE, line 1117 of main.pp $0805C023 main, line 93 of lazarus.pp TApplication.HandleException buffer error Stack trace: $081A26DE $0819BC0B $0819B9E4 $08196D9D $081949E1 $081367E1 TFPIMAGEBITMAP__READSTREAM, line 1926 of graphics.pp $0812BFD4 TBITMAP__LOADFROMSTREAM, line 459 of ./include/bitmap.inc $08127A10 LOADBITMAPFROMLAZARUSRESOURCE, line 1509 of graphics.pp $08090CE6 CREATEBUTTON, line 1431 of main.pp $0809084B TMAINIDE__SETUPSPEEDBUTTONS, line 1460 of main.pp $0808FAB7 TMAINIDE__CREATE, line 1117 of main.pp $0805C023 main, line 93 of lazarus.pp It seems to run fine under GTK Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp Yahoo Messenger: n7yg The problem is a recent change in FPC, it's already reported in http://www.freepascal.org/mantis/view.php?id=10232 if you compile your own FPC from SVN, for a quick fix, enter directory fpc/packages/paszlib/src and update to r9290 (svn update -r9290) recompile everything and that should do it. Jesus Reyes A. Thanks, That has fixed the problem Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Serial Comm Support Windows
I know there is a serial unit for Linux/Unix, but is there similar support for serial communications for the Windows Platform? Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp Yahoo Messenger: n7yg ___ STUPIDITY IS NOT A HANDICAP. Park elsewhere! _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Serial Comm Support Windows
- Original Message - From: Stephano [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Saturday, November 24, 2007 16:45 Subject: Re: [lazarus] Serial Comm Support Windows Jeff Steinkamp wrote: I know there is a serial unit for Linux/Unix, but is there similar support for serial communications for the Windows Platform? http://www.luisdigital.com/programacion/fpc/serial.pp I got the necessary units and now have this working quite well. Thanks Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Buffer Overflow
I just rebuilt Lazarus with SVN 12973 on my Linux box with GTK2 and upon restart I got a error dialog that said buffer overflow. Here is the output trace: TLazarusManager.Run starting /home/n7yg/.lazarus/bin/lazarus ... TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 [TMainIDE.Destroy] A [TMainIDE.Destroy] B - inherited Destroy... TMainIDE [TMainIDE.Destroy] END [FORMS.PP] ExceptionOccurred Sender=Ecompressionerror Exception=buffer error Stack trace: $081A26DE $0819BC0B $0819B9E4 $08196D9D $081949E1 $081367E1 TFPIMAGEBITMAP__READSTREAM, line 1926 of graphics.pp $0812BFD4 TBITMAP__LOADFROMSTREAM, line 459 of ./include/bitmap.inc $08127A10 LOADBITMAPFROMLAZARUSRESOURCE, line 1509 of graphics.pp $08090CE6 CREATEBUTTON, line 1431 of main.pp $0809084B TMAINIDE__SETUPSPEEDBUTTONS, line 1460 of main.pp $0808FAB7 TMAINIDE__CREATE, line 1117 of main.pp $0805C023 main, line 93 of lazarus.pp TApplication.HandleException buffer error Stack trace: $081A26DE $0819BC0B $0819B9E4 $08196D9D $081949E1 $081367E1 TFPIMAGEBITMAP__READSTREAM, line 1926 of graphics.pp $0812BFD4 TBITMAP__LOADFROMSTREAM, line 459 of ./include/bitmap.inc $08127A10 LOADBITMAPFROMLAZARUSRESOURCE, line 1509 of graphics.pp $08090CE6 CREATEBUTTON, line 1431 of main.pp $0809084B TMAINIDE__SETUPSPEEDBUTTONS, line 1460 of main.pp $0808FAB7 TMAINIDE__CREATE, line 1117 of main.pp $0805C023 main, line 93 of lazarus.pp It seems to run fine under GTK Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp Yahoo Messenger: n7yg ___ Anyone who has had a bull by the tail knows five or six things more than someone who hasn't. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Latest reviosn fails on Windows
C:\lazarusmake makefile:3434: warning: overriding commands for target `examples' makefile:3394: warning: ignoring old commands for target `examples' make -C lcl all make[1]: Entering directory `C:/lazarus/lcl' C:/lazarus/fpc/bin/i386-win32/rm.exe -f units/i386-win32/alllclunits.ppu C:/lazarus/fpc/bin/i386-win32/ppc386.exe -gl -Fu. -Fuforms -Fuwidgetset -Fiinclu de -FE. -FUunits/i386-win32 -di386 alllclunits.pp Free Pascal Compiler version 2.2.0 [2007/09/09] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Win32 for i386 Compiling alllclunits.pp alllclunits.pp(31,1) Fatal: Can't find unit System used by AllLCLUnits Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `C:/lazarus/lcl' make: *** [lcl] Error 2 C:\lazarus it might be intresting to note that I have a similar problem on my Linux Box with GTK2 and gettng the following on that box. gtkwidgetset.inc(618,48) Error identifer not found panjo_layout_set_font_description Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp Yahoo Messenger: n7yg ___ Don't drink. You might shoot at tax collectors and miss. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Latest reviosn fails on Windows
- Original Message - From: Marc Weustink [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Wednesday, November 21, 2007 02:30 Subject: Re: [lazarus] Latest reviosn fails on Windows Jeff Steinkamp wrote: C:\lazarusmake makefile:3434: warning: overriding commands for target `examples' makefile:3394: warning: ignoring old commands for target `examples' make -C lcl all make[1]: Entering directory `C:/lazarus/lcl' C:/lazarus/fpc/bin/i386-win32/rm.exe -f units/i386-win32/alllclunits.ppu C:/lazarus/fpc/bin/i386-win32/ppc386.exe -gl -Fu. -Fuforms -Fuwidgetset -Fiinclu de -FE. -FUunits/i386-win32 -di386 alllclunits.pp Free Pascal Compiler version 2.2.0 [2007/09/09] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Win32 for i386 Compiling alllclunits.pp alllclunits.pp(31,1) Fatal: Can't find unit System used by AllLCLUnits Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `C:/lazarus/lcl' make: *** [lcl] Error 2 Make sure that your fpc.cfg is pointing to the right version of the fpc units. (If the system unit cannot be found, you're using the the wrong version of units) Marc How or why would this change from one revision to another when doing an SVN update since it work previously, albeit an SVN from about a month ago. I'll look at this when I get home from work this evening. Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] last svn problems under fpc 2.0.4
- Original Message - From: Paul Ishenin [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Sunday, November 18, 2007 20:39 Subject: Re: [lazarus] last svn problems under fpc 2.0.4 Paul Ishenin пишет: Giuliano Colla wrote: Paul Ishenin ha scritto: Giuliano Colla wrote: Svn r 12899 doesn't compile under linux/fpc 2.0.4. The error reported is wrong number of parameters specified in two BoolToStr calls in lcl/graphtype.pp module. Commenting out the second parameter of the call , it compiles fine, but the application crashes with a sigsev in TImageCacheItems.GetIemForListener (imagelistcache.pas) Do you have stack trace? I should have thought it myself. Sorry. Please find it here attached. Rev is 12918, platform Linux, fpc 2.0.4. I tested three different applications, and they all crash, with pretty much identical stack trace. Please test with r12919. If error is still present then please send me (or create bug rep with) any test application. r12920 also make things better (12919 fixes one crashes, 12920 - another) Best regards, Paul Ishenin. I'm not sure where we are with the SVN revision, but I downloaded 12918 this evening for my laptop and I am using FPC 2.2.0. It crashes on program startup. I am pretty sure this is associated with the LNet components 0.5.8. I was able to make it without this component and it runs fine until I try to install the component. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp Yahoo Messenger: n7yg ___ Consciousness: that annoying time between naps. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Free method of any object didn't executes.
- Original Message - From: Gus Wirth [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, November 06, 2007 08:34 Subject: Re: [lazarus] Free method of any object didn't executes. 12 12 wrote: For example i do the following: Ser := TSerie.Create(Chart1); Ser.Free; I set breakpoint in implementation of TSerie.Destroy. Neither the debugger stops on breakpoint nor the debugger steps into implementation of Free or Destroy. Is it bug or feature ? What does this message have to do with the Enhanced TODO list? Could you please start a new thread rather than just arbitrarily replying to some other message? It makes finding topics and their resulting threads much easier and you will more likely get an appropriate answer. As for your question, how do you know that your code snippet actually gets called in the first place? Try turning off optimizations and see if that helps. Gus I believe if you look at the subject line you will discover that he did start a new thread. Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Why is this code failing in Windows
- Original Message - From: Marc Santhoff [EMAIL PROTECTED] To: Jeff Steinkamp [EMAIL PROTECTED] Cc: Lazarus Mailing List lazarus@miraclec.com Sent: Friday, October 19, 2007 20:58 Subject: Re: [lazarus] Why is this code failing in Windows Am Freitag, den 19.10.2007, 20:00 -0700 schrieb Jeff Steinkamp: program splog; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LCL widgetset Forms, Unit1, //contains the main form Unit2, //contains the splashscreen pers, selfile, lnetvisual, config, dup, flags, sdf, chapsetup, listinput; begin Application.Initialize; frmSplash := TfrmSplash.Create(application); frmSplash.Show; //fails on this line frmSplash.update; Application.CreateForm(TfrmMain, frmMain); Application.CreateForm(TfrmChapterSetup, frmChapterSetup); Application.Run; end. Try that order. HTH (only guessing), Marc Thanks Marc That has cured the problem -- Interesting !!! Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Why is this code failing in Windows
Having a problem with this code segment. Same exact code I use in delphi to create splash screens and it does work correctly with the same exact code on Linux with GTK2. It fails when I call show and I am getting a exception error that says failed to create Win32 control, error 1407 that is coming from the Win32WSControls unit in the FinishCreateWindow procerdure. program splog; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LCL widgetset Forms, Unit1, //contains the main form Unit2, //contains the splashscreen pers, selfile, lnetvisual, config, dup, flags, sdf, chapsetup, listinput; begin frmSplash := TfrmSplash.Create(application); frmSplash.Show; //fails on this line frmSplash.update; Application.Initialize; Application.CreateForm(TfrmMain, frmMain); Application.CreateForm(TfrmChapterSetup, frmChapterSetup); Application.Run; end. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp Yahoo Messenger: n7yg ___ Democracy will continue as long as people have faith in the people they are going to elect next. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Fw: Symantec Email Proxy Deleted Message
The following email was caught by my Virus program contained 13 different attachments that were infected with one of those W32.xxx Trojans. The originator of this email should check their system immediately. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp Yahoo Messenger: n7yg ___ As usual, I'm right and every single other breathing creature is wrong. - Original Message - From: Symantec Email Proxy Sent: Tuesday, October 16, 2007 23:45 Subject: Symantec Email Proxy Deleted Message Symantec Email Proxy deleted the following email message: From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: [lazarus] Mail Delivery (failure lazarus@miraclec.com) _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] TMemo Scroll problem
I have a couple of Tmemo controls on a form that receive data from a client socket. AS the controls fills with data, the control does not scroll to the end as it should. I've even tried to force the setstart property to a vary large number to force the cursor to the end of the data, and while this does put the cursor at the end, the control still does not scroll. I have the scroll bars set for both and thy are visible, just does not scroll automatically. This appears to be a GTK issue as it works fine on Windows. Anyone have a quick way to force this to scroll? Thanks Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp Yahoo Messenger: n7yg ___ All I want is a warm bed, a kind word, and unlimited power. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Imagelist and icon resources
I am putting together a form and currently all I have is the basic form, an action list, menu and am imagelist with 22 icons for the actions. Saved this off and compiled it. After stripping out the symbols and running it through UPX to compress it, the thing is still 860K in size. I am assuming this is because of the 22 icon images that are compiled into the executable. Is there a better way to do this, maybe a resource file, and if so, can some point me in the right direction since I have never used images in resource files. Thanks Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp Yahoo Messenger: n7yg ___ Pardon my driving. I'm reloading _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] When does the main form show?
I have come across a unique problem I do not quite understand. The point at which the main form shows on the screen does not seem to be the same between a project built under GTK1 in Linux, and the same exact code built and compiled for windows. In GTK1 as well and my Delphi6 (where the project originally started), the main from is displayed at the beginning of the FormActivate Event. When compiled for windows, the main form does not appear to be showing until the completion of the FormShow event. This has become a nightmare as I am processing a number of routines in the FormActivate event and displaying status messages in the status bar of the main form. This could take a few minutes to complete, and as such, with windows it appears the program has stalled. Is this the normal behavior for Windows and if so, any idea how to get around it? Thanks Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp ___ 'I'm not the one that misplaced the Deltivid asteroid belt!' - Q _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] When does the main form show?
- Original Message - From: Tobias Giesen [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Friday, September 21, 2007 04:44 Subject: Re: [lazarus] When does the main form show? I am processing a number of routines in the FormActivate event I think it would be much better if you put a TTimer component on your form and put only Timer1.Enabled:=true into your FormActivate or FormShow event. Don't do lengthy processing in those events. Inside the timer execute event (such as Timer1Timer), you would do Timer1.Enabled:=false and then you would process your routines which may take minutes while the form is already shown. You should also disable any dialog elements in the form while your routines are running and call Application.ProcessMessages as often as you can so that the form can be moved across the screen, minimized and so forth. Kind Regards, Tobias Giesen That did the trick, thanks Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Error in building latest SVN
- Original Message - From: Mattias Gaertner [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Monday, September 10, 2007 10:45 Subject: Re: [lazarus] Error in building latest SVN On Mon, 10 Sep 2007 08:48:00 -0700 Jeff Steinkamp [EMAIL PROTECTED] wrote: Version 2.3.1 and I think it is svn 7399 Can you try a more recent version? The heap manager has been changed in fpc 2.3.1 lately and the memcheck unit works with the current svn version of fpc 2.3.1 Vincent OK, updated to svn 8423 and now I am getting the following. Evidetnly it can not compile the graphics unit. Fatal: Can't find unit contnrs FPC found some old old ppu files. Maybe a broken fpc installation. If you have an old lazarus executable, run it and run the project - compiler options- Test. If this does not help: Please check for old files in /usr/lib/fpc. Also compile with -vt (make OPT=-vt) to see what files the compiler is using. [...] `/usr/local/share/lazarus/lcl/interfaces/gtk2' make[1]: Leaving directory `/usr/local/share/lazarus/lcl/interfaces' /bin/rm -f units/i386-linux/alllclunits.ppu /usr/local/lib/fpc/2.3.1/ppc386 -gl -Fu. -Funonwin32 -Fuforms -Fuwidgetset -Fu/usr/local/lib/fpc/2.3.1/units/i386-linux/rtl [...] /usr/local/lib/fpc/2.3.1/units/i386-linux/fcl-base/contnrs.ppu Recompiling contnrs, checksum changed for System /usr/local/share/lazarus/lcl/graphics.pp(36,17) Fatal: Can't find unit contnrs Normally fpc is installed in linux under /usr/lib/fpc. Only the 'make install' of fpc uses /usr/local/lib/fpc as default. Mattias Here is the error I am now getting when trying to make the latest FPC: make -C fpcm all make[3]: Entering directory `/usr/src/fpc/utils/fpcm' /bin/mkdir -p units/i386-linux /usr/src/fpc/compiler/ppc386 -Ur -Xs -O2 -n -Fu/usr/src/fpc/rtl/units/i386-linux -Fu/usr/src/fpc/packages/base/hash/units/i386-linux -Fu/usr/src/fpc/packages/base/paszlib/units/i386-linux -Fu/usr/src/fpc/packages/base/netdb/units/i386-linux -Fu/usr/src/fpc/packages/base/libasync/units/i386-linux -Fu/usr/src/fpc/packages/base/pthreads/units/i386-linux -Fu/usr/src/fpc/packages/fcl-base/units/i386-linux -FE. -FUunits/i386-linux -di386 -dRELEASE fpcmake.pp fpcmake.inc(1714,1) Error: Illegal expression fpcmake.inc(1714,5) Error: Illegal expression fpcmake.inc(1714,9) Error: Illegal expression fpcmake.inc(1714,10) Error: Illegal expression fpcmake.inc(1714,10) Fatal: Syntax error, , expected but identifier MINE found Fatal: Compilation aborted make[3]: *** [fpcmake] Error 1 make[3]: Leaving directory `/usr/src/fpc/utils/fpcm' make[2]: *** [fpcm_all] Error 2 make[2]: Leaving directory `/usr/src/fpc/utils' make[1]: *** [utils_all] Error 2 make[1]: Leaving directory `/usr/src/fpc' make: *** [build-stamp.i386-linux] Error 2 I had a look at the file fpcmake.inc, but I was unable to make heads or tails of what is suppose to be there. It seems to be failing on the characters that are on line 1714 of the file. Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Error in building latest SVN
- Original Message - From: Vincent Snijders [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Sunday, September 09, 2007 12:33 Subject: Re: [lazarus] Error in building latest SVN Jeff Steinkamp schreef: I get the following errors when trying to build the latest SVN on linux for GTK2 What is your fpc version (and date or revision)? Vincent Version 2.3.1 and I think it is svn 7399 Jeff _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Error in building latest SVN
I get the following errors when trying to build the latest SVN on linux for GTK2 /usr/local/share/lazarus/components/codetools/memcheck.pas(1300,33) Fatal: Syntax error, identifier expected but ; found /usr/local/share/lazarus/components/codetools/memcheck.pas(1300,17) Error: Unknown record field identifier InitThread /usr/local/share/lazarus/components/codetools/memcheck.pas(1299,15) Error: Incompatible types: got address of function(Pointer):DWord;Register expected procedure variable type of function(Pointer):LongInt;Register /usr/local/share/lazarus/components/codetools/memcheck.pas(1298,18) Error: Incompatible types: got address of function(var Pointer, LongWord):^untyped;Register expected procedure variable type of function(var Pointer, LongInt):^untyped;Register /usr/local/share/lazarus/components/codetools/memcheck.pas(1297,16) Error: Incompatible types: got address of function(LongWord):^untyped;Register expected procedure variable type of function(LongInt):^untyped;Register /usr/local/share/lazarus/components/codetools/memcheck.pas(1296,19) Error: Incompatible types: got address of function(Pointer, LongWord):DWord;Register expected procedure variable type of function(Pointer, LongInt):LongInt;Register /usr/local/share/lazarus/components/codetools/memcheck.pas(1295,15) Error: Incompatible types: got address of function(Pointer):DWord;Register expected procedure variable type of function(Pointer):LongInt;Register /usr/local/share/lazarus/components/codetools/memcheck.pas(1294,15) Error: Incompatible types: got address of function(LongWord):^untyped;Register expected procedure variable type of function(LongInt):^untyped;Register /usr/local/share/lazarus/components/codetools/memcheck.pas(1110,22) Warning: Mixing signed expressions and longwords gives a 64bit result /usr/local/share/lazarus/components/codetools/memcheck.pas(222,33) Error: Illegal qualifier /usr/local/share/lazarus/components/codetools/memcheck.pas(211,17) Error: Error in type definition /usr/local/share/lazarus/components/codetools/memcheck.pas(211,17) Error: Identifier not found pptruint Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff_steinkamp ___ Honk if you love peace and quiet. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Tmemo.SelText property
the following code works fine in Windows but does not work under Linux with gtk2. procedure TForm2.Memo1DblClick(Sender: TObject); begin selection := memo1.SelText; modalresult := mrok; end; selection is string property. using 0.9.23 svn 11352 on both It appears the seltext property is not getting set under Linux when the mouse is over an item and double clicked. I've even tried highlighting the text in the Tmemo and double clicking. it appears the selection is removed, prior to the double-click event running. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ When you go into court you are putting yourself in the hands of 12 people that weren't smart enough to get out of jury duty. Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Unable to compile using GTK2
- Original Message - From: Felipe Monteiro de Carvalho [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, June 12, 2007 13:01 Subject: Re: [lazarus] Unable to compile using GTK2 The IDE sometimes hides some important error messages, and this is probably the case here. open a terminal and build lazarus from the command line. the command is: cd lazarus (or wherever your lazarus is) make clean all LCL_PLATFORM=gtk2 Then you should be the real error causes on the messages that come from this command. -- Felipe Monteiro de Carvalho That works and I now have Lazarus compiled using GTK2 -- which looks much nicer than GTK. Go figure!! I May try that with QT and see what happens. Thanks Jeff Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Unable to compile using GTK2
I am having some difficulty trying to get Lazarus to compile using GTK2 or QT. GTK seems to work fine. Here is the error message I get. make[2]:***[../../units/i386-linux/gtk2] Error1 I get a similar error with QT. Since there is no subdirectory named gtk2 under i386-linux, what are we looking for. thanks Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ When you go into court you are putting yourself in the hands of 12 people that weren't smart enough to get out of jury duty. Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Unable to compile using GTK2
- Original Message - From: Felipe Monteiro de Carvalho [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, June 12, 2007 09:16 Subject: Re: [lazarus] Unable to compile using GTK2 On 6/12/07, Jeff Steinkamp [EMAIL PROTECTED] wrote: I am having some difficulty trying to get Lazarus to compile using GTK2 or QT. Exactly how are you trying to compile lazarus? There is a tools -- configure build lazarus for that -- Felipe Monteiro de Carvalho That is exactly what I am using. Select GTK2 as the target then click build. Jeff Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Unable to compile using GTK2
- Original Message - From: Vincent Snijders [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, June 12, 2007 10:33 Subject: Re: [lazarus] Unable to compile using GTK2 Jeff Steinkamp schreef: I am having some difficulty trying to get Lazarus to compile using GTK2 or QT. GTK seems to work fine. Here is the error message I get. make[2]:***[../../units/i386-linux/gtk2] Error1 I get a similar error with QT. Since there is no subdirectory named gtk2 under i386-linux, what are we looking for. Do you have write acccess to the lazarus/lcl/units directory? Vincent Yes, I have write access to everything. The only thing I can find that references gtk2 and qt are in ../lcl/interfaces. the only thing I have in ../lcl/units/i386-linux is a /gtk folder and that is it Jeff Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Build Error
I downloaded a Morse code trainer program that was built under Lazarus. The program is a few years old since one of the units it was using was called oldlinux. Changed that to linux, but I am still having a build problem with a couple of lines. Evidently it does not know how to handle ioctl. Here is the offernding procedure. What do I need to do to fix this? function openAudio(isWrite : Boolean = false) : shortInt; var fs : longInt; begin result:=AUDIO_ERROR_NOERROR; if audio_fd = 0 then begin initAudioParms; if isWrite then audio_fd:=fpopen(_audioDevice,O_WRONLY,0) else audio_fd:=fpopen(_audioDevice,O_RDONLY,0); if (audio_fd = -1) then begin result:=AUDIO_ERROR_CANTOPEN; end else begin fs:=$7fff0009; if (NOT ioctl(audio_fd, SNDCTL_DSP_SETFRAGMENT, @fs)) then begin closeAudio; result:=AUDIO_ERROR_CANTSETFSIZE; end else if(NOT ioctl(audio_fd, SNDCTL_DSP_SAMPLESIZE, @bits)) then begin closeAudio; result:=AUDIO_ERROR_CANTSETSSIZE; end else if(NOT ioctl(audio_fd, SNDCTL_DSP_STEREO, @stereo)) then begin closeAudio; result:=AUDIO_ERROR_CANTSETCHANNELS; end else if(NOT ioctl(audio_fd, SNDCTL_DSP_SPEED, @rate)) then begin closeAudio; result:=AUDIO_ERROR_CANTSETSRATE; end; end; end else result:=AUDIO_ERROR_ALREADYOPEN; end; using the latest build of lazarus and FPC. Thanks Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ A fool and his money are invited everywhere. Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Build Error
- Original Message - From: Henry Vermaak [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, May 22, 2007 17:03 Subject: Re: [lazarus] Build Error On 23/05/07, Jeff Steinkamp [EMAIL PROTECTED] wrote: I downloaded a Morse code trainer program that was built under Lazarus. The program is a few years old since one of the units it was using was called oldlinux. Changed that to linux, but I am still having a build problem with a couple of lines. Evidently it does not know how to handle ioctl. fpIOCtl? henry Henry That did the trick, I now have it compiled. Now I need to figure out where the broke wire is to these cheap junk speakers I have on this machine!! Thanks Jeff Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Run Error 216
I am getting the following error as I exit one procedure and enter another. I believe it has something to do with allocating memory using the SetLength procedure for a dynamic array. That is the line it appears to be failing on. External: SIGSEGV Address $0806360B SYSTEM_SYSGETMEM_VAR$LONGINT$$POINTER This is then followed by a RunError (216); I am not sure the dynamic array I am allocating in the first procedure is really getting deallocated when the procedure ends even though I am setting it's length to zero before the procedure ends. The array is declared locally so once the procedure end, that memory should be returned to the free store. Has anyone see this before? Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ Bagpipes (n): an octopus wearing a kilt. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Tmemo DblClickand OnChange Events
- Original Message - From: Vincent Snijders [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, April 10, 2007 00:58 Subject: Re: [lazarus] Tmemo DblClickand OnChange Events Jeff Steinkamp schreef: I have exposed the DblClick property for the Tmemo component in the stdctls.pp file and recompile Lazarus I have assigned a procedure to the property in the forms OnCreate event. memo1.OnDblClick := @Memo1DblClick; I does not fire with the standard double click of the mouse. However, it will eventually fire with about 5 or 6 very rapid clicks of the mouse. Is there somesort of double click sensitivity parameter that can be set to eliminate this? The onchange event never fires when the text property is changed or text is added to the control. I've tried to use the TsynMemo component, but the OnChange event has a similar problem. it fires, but prior to the text property changing. What OS en widgetset do you use? Vincent GTK on Linux. I've tried to use GTK2, but get an error message telling me that it can not find interfaces. Jeff Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Tmemo DblClickand OnChange Events
I have exposed the DblClick property for the Tmemo component in the stdctls.pp file and recompile Lazarus I have assigned a procedure to the property in the forms OnCreate event. memo1.OnDblClick := @Memo1DblClick; I does not fire with the standard double click of the mouse. However, it will eventually fire with about 5 or 6 very rapid clicks of the mouse. Is there somesort of double click sensitivity parameter that can be set to eliminate this? The onchange event never fires when the text property is changed or text is added to the control. I've tried to use the TsynMemo component, but the OnChange event has a similar problem. it fires, but prior to the text property changing. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ College isn't the place to go for ideas. Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Tmemo missing OnDblClikc Event
Just discoverd that the Tmemo Component is missing the standard DblClick event. Looked in stdctrls.pp and it was not in the published proeprties for Tmemo nor as a public property in TCustomMemo. Added each and recompiled Lazarus. Still does not show up in the property editor for Tmemo, but it is a vaild property when using the Class completion in the editor. I have assiged a procedure to the OnDblClick event in the forms OnCreate Event, but I can never get the procedure to run when I double click the Tmemo Component. memo1.OnDblClick := @Memo1DblClick; Anyone have any other ideas on how to make this work? Using Lazarus SVN 1074M and FPC 2.3.1 Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ Don't need a new religion, haven't used the old one up yet. Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Launching the Default browser -- Linux
That did the trick, Thanks Jeff - Original Message - From: Sébastien Ballesté-Antich To: lazarus@miraclec.com Sent: Thursday, March 22, 2007 23:55 Subject: Re: [lazarus] Launching the Default browser -- Linux 2007/3/23, Jeff Steinkamp [EMAIL PROTECTED]:I am sure there is probably a very simple way to do this in Linux, but I am at a loss. Hi, Did you try the example located in /usr/share/lazarus/examples/openbrowser ? Regards, -- Sébastien Ballesté-Antich - Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
[lazarus] Launching the Default browser -- Linux
I am sure there is probably a very simple way to do this in Linux, but I am at a loss. In Delphi I am able to launch a browser with a web page using the shellExecute command. ShellExecute(0, pchar('OPEN'), pchar(http://www.n7yg.net), nil, nil, sw_shownormal); How would one accomplish the same thing on a Linux platform. Thanks Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ I started out with nothing, and I still have most of it. We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Form OnCreate Event
When does the OnCreate event for a form run? Does this happen after the creation of just the form or the form and all of it child components? I am having a problem trying to restore font and color setting to a Tmemo control with values from a stored config file. In Delphi, I normally do this in the forms OnCreate Event, but in Lazarus, it apepars that the OnCreate event is run prior to creating of the child components because I am unable to restore these setting. They always return to the default settings of the component. If I run the routine to restore these setting in the forms OnActive event, they restore perfectly. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ I love deadlines. I especially love the whooshing sound they make as they fly by... Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Changing TObject
Why don't you use the tag property of the TButton; Procedure From1.Create(Sender : TObject); var C : integer; begin for C := 1 to 20 do Knop[C] := TButton.Create; Knop[C].tag:= C; Knop[C].OnClick := @DoSomethingBright; end; Procedure Form1.DoSomethingBright(Sender : TObject); begin case (Sender as TButton).tag of 1 : blabla; 2 : different blabla; 3 : more blabla; end; end; - Original Message - From: Ger Remmers To: lazarus@miraclec.com Sent: Monday, March 19, 2007 14:27 Subject: [lazarus] Changing TObject Hi all, I would like to add a numeric property, ObjectNumber, to TObject (for my internal use only). This property needs to be read/write and default to 0 (zero). How/where do I go about doing this? example use Knop : array[1..20] of TButton; Procedure From1.Create(Sender : TObject); var C : integer; begin for C := 1 to 20 do Knop[C] := TButton.Create; Knop[C].ObjectNumber := C; Knop[C].OnClick := @DoSomethingBright; end; Procedure Form1.DoSomethingBright(Sender : TObject); begin case Sender.ObjectNumber of 1 : blabla; 2 : different blabla; 3 : more blabla; end; end; or is there another (more elegant) way of doing the same thing without messing around with TObject; -- Ger - Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
Re: [lazarus] Illegal Expression -- Exit
- Original Message - From: Mattias Gaertner [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Friday, March 16, 2007 03:00 Subject: Re: [lazarus] Illegal Expression -- Exit On Thu, 15 Mar 2007 23:23:04 -0700 Gus Wirth [EMAIL PROTECTED] wrote: Jeff Steinkamp wrote: - Original Message - From: Vincent Snijders [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Thursday, March 15, 2007 19:07 Subject: Re: [lazarus] Illegal Expression -- Exit Jeff Steinkamp schreef: Anyone know why I might be getting an Illegal Expression on a line containing the keyword Exit? Might there be another way to exit a procedure in the middle of the procedure beside using the keyword jump? Can you post a snippet of code? Vincent This is almost word for word from a Delphi project that performs the same function. I can replace the Exit with a goto LABEL and place the LABEL at the exit point and it does the same thing, but I really like to stay away from goto's!!! Too many nightmares from my days of assembly language and I am chasing one of these at work right now. Compiler fails at the Exit keyword. procedure TForm1.SaveAsExecute(Sender: TObject); begin savedialog1.InitialDir := HomeDirectory; if SaveDialog1.Execute then begin fLogFileName := Savedialog1.FileName; if FileExists(fLogFilename) then if MessageDlg('File Exists, Overwrite this file?',mtWarning,[mbYes,mbNo],0) = mrNO then Exit; StringGridSaveToFile(loggrid,flogfilename); fLogHasChanged := false; caption := 'Ten-Ten Logging System - ' + flogfilename; end; end; This may be a problem trying to evaluate the call to MessageDlg in the _if_ statement. Try breaking it up into a couple of separate steps to get a closer look at where the problem might be. Something like: if FileExists(fLogFilename) then begin ModalResult:= MessageDlg('File Exists, Overwrite this file?',mtWarning,[mbYes,mbNo],0); if (ModalResult = mrNO) then Exit; end; {if} StringGridSaveToFile(loggrid,flogfilename); Also, don't you need parentheses around boolean expressions? The IDE code uses a log if MessageDlg ... then exit statements and boolean exp without parenthesis. I just tried successfully your code with fpc 2.0.4 and mode objfpc. What compiler and mode are you using? Mattias fpc 2.3.1 and I think it is svn 6813 from 12 mar 2007 Jeff Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Recent SVN lazarus won't compile. Can't find unitcontnrs.
- Original Message - From: Vincent Snijders [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Wednesday, March 14, 2007 00:00 Subject: Re: [lazarus] Recent SVN lazarus won't compile. Can't find unitcontnrs. Jeff Steinkamp schreef: A for my problem with Lazarus not compiling and not fining the contnrs unit, I believe I have this working now. Once I am sure that everything works correctly, I will post a message on what I did to get this working. I think your problem was that /etc/fpc.cfg pointed to /usr/lib/fpc and 2.3.1 was in /usr/local/lib/fpc Vincent That was part of the problem, but it still did not compile. What I failed to notice was that FPC was not compiling correctly. Interesting enough though, I was getting a similar error when compiling FPC. It also was throwing a compile error on sysutils. I finally had to do a make clean, make all, make install on the FPC source, then a make clean, make all on Lazarus. Everything is now happier than a pig in slop and as a bonus, the debugger now appears to be working. Thanks Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ Diagonally parked in a parallel universe 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Illegal Expression -- Exit
Anyone know why I might be getting an Illegal Expression on a line containing the keyword Exit? Might there be another way to exit a procedure in the middle of the procedure beside using the keyword jump? Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ Bald spot? No -- solar panel for brain power 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Illegal Expression -- Exit
- Original Message - From: Vincent Snijders [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Thursday, March 15, 2007 19:07 Subject: Re: [lazarus] Illegal Expression -- Exit Jeff Steinkamp schreef: Anyone know why I might be getting an Illegal Expression on a line containing the keyword Exit? Might there be another way to exit a procedure in the middle of the procedure beside using the keyword jump? Can you post a snippet of code? Vincent This is almost word for word from a Delphi project that performs the same function. I can replace the Exit with a goto LABEL and place the LABEL at the exit point and it does the same thing, but I really like to stay away from goto's!!! Too many nightmares from my days of assembly language and I am chasing one of these at work right now. Compiler fails at the Exit keyword. procedure TForm1.SaveAsExecute(Sender: TObject); begin savedialog1.InitialDir := HomeDirectory; if SaveDialog1.Execute then begin fLogFileName := Savedialog1.FileName; if FileExists(fLogFilename) then if MessageDlg('File Exists, Overwrite this file?',mtWarning,[mbYes,mbNo],0) = mrNO then Exit; StringGridSaveToFile(loggrid,flogfilename); fLogHasChanged := false; caption := 'Ten-Ten Logging System - ' + flogfilename; end; end; Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ DOS never says 'EXCELLENT command or filename'... Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Test
Testing new account Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ A clean tie attracts the soup of the day. TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Recent SVN lazarus won't compile. Can't find unitcontnrs.
- Original Message - From: Micha Nelissen [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, March 13, 2007 11:08 Subject: Re: [lazarus] Recent SVN lazarus won't compile. Can't find unitcontnrs. Jeff Steinkamp wrote: I get 300 -500 emails a day between mailing list that I am subscribed to along with support request for the software I support. There was nothing sent to my by the list owner when I subscribe to this list that I was required to leave my Reply-To field blank. I have been involved with the internet and mailing list since the days of the old Military DDN and NEVER have I head of this requirement -netiquette. The real problem IMHO is that most email clients do not properly support 'Reply to Group' (in essence, reply to To: address), or the user does not configure them correctly to do so. In these cases, it's simpler for the users to have the mailing list server add a Reply-To header, so that the regular 'Reply' button will reply to the group. It's netiquette to not change the Reply-To header by servers; as far as I understood things correctly. This implies that replies using regular email client software will not go to group, but the writer personally. Micha You are correct about the email clients. Unfortuanly, I am hamstrung to the wishes of my email provider who also hosts my web service. It is true that I could dump the email provider and go to another, but when they decide to implement their silly rules for spam elimination, then what do I do. Find another? It is just not practical. I have also discovered that my email provider now requires POP before SMTP. This is extremely frustrating since most email clients will dump the outbox first then download from POP. My way around this is to send the email to my Norton Antivirus email scanner on the loclahost as a SMTP service and it scans everything while POP is downloading message. A for my problem with Lazarus not compiling and not fining the contnrs unit, I believe I have this working now. Once I am sure that everything works correctly, I will post a message on what I did to get this working. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ Being over the hill is much better than being under it. Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Recent SVN lazarus won't compile. Can't find unit contnrs.
Has anyone come up with a solution to this problem of not finding the contnrs unit? I am using Lazarus 0.9.21 svn 10737M under Linux gtk. This appear to be a problem with FPC. I've had no problem compiling Lazarus using fpc 2.0.4, but when I try with 2.3.1 I get this error message coming from the graphics unit. fpc 2.0.4 is installed in /usr/lib/fpc/2.0.4 fpc 2.3.1 is installed in usr/local/lib/fpc/2.3.1 I change the link in /usr/bin/ppc386 to point between the two. When I originally installed lazarus, this is the path that 2.0.4 was installed. In 2.0.4, the contnrs unit is found in /usr/lib/fpc/2.0.4/units/i386-linux/flc In 2.3.1, contnrs is founbd in usr/local/lib/fpc/2.3.1/units/i386-linux/fcl-base It might also be intresting to note: 2.3.1 does not have an i386-win32 directory as is found in 2.0.4. Is it possible that it is looking for the contnrs unit that is in i386-win32? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Recent SVN lazarus won't compile. Can't find unit contnrs.
Has anyone come up with a solution to this problem of not finding the contnrs unit? I am using Lazarus 0.9.21 svn 10737M under Linux gtk. This appear to be a problem with FPC. I've had no problem compiling Lazarus using fpc 2.0.4, but when I try with 2.3.1 I get this error message coming from the graphics unit. fpc 2.0.4 is installed in /usr/lib/fpc/2.0.4 fpc 2.3.1 is installed in usr/local/lib/fpc/2.3.1 I change the link in /usr/bin/ppc386 to point between the two. When I originally installed Lazarus, this is the path that 2.0.4 was installed. In 2.0.4, the contnrs unit is found in /usr/lib/fpc/2.0.4/units/i386-linux/flc In 2.3.1, contnrs is found in usr/local/lib/fpc/2.3.1/units/i386-linux/fcl-base It might also be interesting to note: 2.3.1 does not have an i386-win32 directory as is found in 2.0.4. Is it possible that it is looking for the contnrs unit that is in i386-win32? Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ A painting in a museum probably hears more foolish remarks than anything else in the world. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Recent SVN lazarus won't compile. Can't find unit contnrs.
Vincent If I hit reply to on this message, it is addressed to you. If I hit Rely-to on a message from the Lazarus mailing list it may go to this list or not. This is a mailing list parameter that has been set by the owner of the list. It allow one to reply to the sender of the message first. Why this is setup by the list owner is beyond me. I have seen a number of other list set this way also and it is very confusing to reply to list messages. I, along with the rest of the world, are not going to change how we have our email clients setup to satisfy this. Many email providers, mine included, require the reply to address to match the from address as a form of spam protection, otherwise the emails are rejected at the SMTP server. You decision to not answer someone based upon how they have their email clients setup is rather childish. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ Busier than a one-legged man in an ass-kicking contest. - Original Message - From: Vincent Snijders [EMAIL PROTECTED] To: Jeff Steinkamp [EMAIL PROTECTED] Sent: Monday, March 12, 2007 10:48 Subject: Re: [lazarus] Recent SVN lazarus won't compile. Can't find unit contnrs. Jeff Steinkamp schreef: Interesting reply Vincent, but it doesn't make a lot of sense!! I asked you on 18 februari to remove your reply to header. I find this annoying, because if I press the 'reply to' in my email client, the email doesn't go to the list, but to you personally. I have decided not to answer people who do is, because they make it harder for me to answer to the list. This time I prepared a reply, but before sending I noticed that the message still went to your personal email address instead of the list. I remembered I had asked you to remove the reply to header from mails to the mailing list, so I decided to remove the prepared answer instead of going to the hassle of removing your name from the To-Field adding the Lazarus list as recipient. With kind regards, Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Recent SVN lazarus won't compile. Can't find unitcontnrs.
I get 300 -500 emails a day between mailing list that I am subscribed to along with support request for the software I support. There was nothing sent to my by the list owner when I subscribe to this list that I was required to leave my Reply-To field blank. I have been involved with the internet and mailing list since the days of the old Military DDN and NEVER have I head of this requirement -netiquette. I will unsubscribe with this address and re-subscribe with my yahoo account as I believe I can null out the reply address. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ Democracy will continue as long as people have faith in the people they are going to elect next. - Original Message - From: Joost van der Sluis [EMAIL PROTECTED] To: Jeff Steinkamp [EMAIL PROTECTED] Sent: Monday, March 12, 2007 14:45 Subject: Re: [lazarus] Recent SVN lazarus won't compile. Can't find unitcontnrs. On Mon, 2007-03-12 at 13:29 -0700, Jeff Steinkamp wrote: Vincent If I hit reply to on this message, it is addressed to you. If I hit Rely-to on a message from the Lazarus mailing list it may go to this list or not. This is a mailing list parameter that has been set by the owner of the list. It allow one to reply to the sender of the message first. Why this is setup by the list owner is beyond me. I have seen a number of other list set this way also and it is very confusing to reply to list messages. I, along with the rest of the world, are not going to change how we have our email clients setup to satisfy this. Many email providers, mine included, require the reply to address to match the from address as a form of spam protection, otherwise the emails are rejected at the SMTP server. You decision to not answer someone based upon how they have their email clients setup is rather childish. Could be. But it's obvious that you don't reply more then 40 times a day to a mail-list. People who do that, request you to change your settings. Believe me, if you want any help on the Lazarus-ml, and also from the more experienced people, you have to change your header, or they won't response. This is the open-source world, we spend our valueable time helping you, but if you refuse to make that easier for us, we spend our time on others who do. I've never heard of any provider who asks you to set the reply-to adres as a spam-protection. So I would suggest you to switch provider, or use a gmail/hotmail or any other web-based mailaccount. Joost. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Test
This is a test of email groups Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ A big enough hammer can usually fix anything. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] TCombobox OnSelect
I have discovered a problem with the TCombobox OnSelect Event and OnChange Event. If I assign a value to the text property or the ItemIndex property, the OnSelect and OnChange events will no longer fire when I select an item in the dropdown list. All the other events seem to work correctly. I can fire both of these events up until I first assign a value to the text property or set a number to the itemindex property. Has anyone seen this behavior in the past and is there a fix for this? Thanks. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ A clean tie attracts the soup of the day. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Problem with Application.OnHint
I am having a bit of problem with the following: application.HintColor := clYellow; It does not change the color of the hint. I have even gone as far as changingthe Default HintColor in the Application.inc file and recompiling and I still get that crappy gray color as the hint background. Application.OnHint := ShowHint; With this I get an error message --Error: Wrong number of parameters specified. Not sure why I am getting this as it should assign the ShowHint procedure to the OnHint event of the application. The ShowHint procedure has been defined. It might be interesting to note that the following warning appears after the error message. Hint: Found declaration TForm1.ShowHint. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ 'I say we nuke the site from Orbit, it's the only way to be sure' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Graphics.pp internal error
I just did and svn update and fetched 10686. When I went to compile the new source, I get an error: graphics.pp(404,1) Fatal: internal error 200306063 Does not make a lot of sense since line 404 is actually a comment line. Any ideas? Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ As you ramble on through life, brother, whatever be your goal: keep you eyes upon the donut, and not upon the hole! - Dr. Murray Banks _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Graphics.pp internal error
Evidently that must have worked because after viewing the file and resaving it, it compiled perfectly. Strange. Jeff - Original Message - From: Marc Weustink [EMAIL PROTECTED] To: Lazarus lazarus@miraclec.com Sent: Monday, February 26, 2007 16:15 Subject: Re: [lazarus] Graphics.pp internal error Jeff Steinkamp wrote: I just did and svn update and fetched 10686. When I went to compile the new source, I get an error: graphics.pp(404,1) Fatal: internal error 200306063 Does not make a lot of sense since line 404 is actually a comment line. Any ideas? Just compile another time (without cleaning) Marc _ 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] StrToDate error
That is the fix, thanks. Now I have to rewrite the routine to make sure I can parse either a '-' or a '/' and set the date separator correctly. Jeff - Original Message - From: Michael Van Canneyt [EMAIL PROTECTED] To: Lazarus Mailing List lazarus@miraclec.com Sent: Saturday, February 24, 2007 08:32 Subject: Re: [lazarus] StrToDate error On Fri, 23 Feb 2007, Jeff Steinkamp wrote: Can someone tell me why the following is producing an Econvert Exception? StrTodate('04/11/1955'); I have even tried setting the ShortDateFormat to 'm/d/y/' and 'mm/dd/'. If you're running on linux, try setting DateSeparator:='/'; because by default it is set to '-'. After doing that it works fine here. Michael. _ 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] Suse linux with mono tools vmware image
I can host it at N7YG.net. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ Been there, done that, got the T-shirt to prove it. - Original Message - From: Graeme Geldenhuys [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Thursday, February 22, 2007 23:49 Subject: Re: [lazarus] Suse linux with mono tools vmware image Yes there is. I created two images, one using Linux (Ubuntu) and the other with a Win2000 install. I use both for development and testing and wanted to place the Linux image on my server for download, but my bandwidth per month is limited and I don't have a fast enough upload speed. So for now it is not available to the public, but if someone else can host the image, I can upload it. Graeme. On 2/23/07, George Birbilis [EMAIL PROTECTED] wrote: At mono website they have for download a Suse linux with mono tools vmware image and a link to the free VMWare player. Is there a similar thing for Lazarus? _ 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] StrToDate error
Can someone tell me why the following is producing an Econvert Exception? StrTodate('04/11/1955'); I have even tried setting the ShortDateFormat to 'm/d/y/' and 'mm/dd/'. Since this should be defined in SysUtils, where does one find the Pascal source for this so I can try to T/S this my self? All I find is a .pp and .o file, both of which are binary files. Thanks Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ A single death is a tragedy; a million deaths is a statistic. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Problem with Daily snapshot
I just downloaded the daily snapshot in hopes of fixing the problem with the TImagesList. But now when I try to compile any project I get the follow error in the interfaces.pp file interfaces.pp(11,51) Fatal: Can't find unit Interfaces Which does not make a lot of sense since line 11 of the interfaces.pp file is nothing more than commented code. I've cheeked the compiler options and they seem to be pointing to the correct directory for the interface files. My yum updater is telling me that a new version of fpc is available, but when I try to update, I get a dependency problem with Lazarus. Is this normal? Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ Assumption is the mother of all screwups. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Questions on converting Delphi project
Are the following defined in Lazarus and if so where? THashedStringList from delphi inifiles.pas TTimeZoneInfromation from delphi windows.pas I am using the inifiles in a uses clause but I guess the THashedStringGrid is not defined there in Lazarus. Thanks Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ He who dies with the most toys is nonetheless dead. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] ENV Variables
Thanks to all who replied to my question about the run file size. Have take most of the suggestions and parried the file down to about 2 meg while I continue to develop this package. Once I get it working correctly I'll get rid of the rest of the stuff. Environment variables -- How do I use one of these, such as $HOME. Since $ is usually reserved to indicate a HEX number, is there another method to do this? String List: Borland had a nasty feature that would always use the space or tab as a field delimiter even though you mulled out the quote character and set the delimiter to a comma for instance.Made it quite difficult to use a CSV string. Is this same feature in Lazarus? Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ A big enough hammer can usually fix anything. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Bug on TImageList
Probably the same reason I am getting floating point errors when I try to add an image to the image list. Someone said to try once of the daily snapshots it is suppose to be fixed there, but I going to stick to the stable version for the time being. Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ Basic research is what I'm doing, when I don't know what I'm doing. - Original Message - From: [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, February 13, 2007 13:32 Subject: Re: [lazarus] Bug on TImageList If I want to write a transparent bit map and, for this, I use TImageList in this mode: TempList := TImageList.CreateSize(Picture.Width, Picture.Height); Try TempList.AddMasked(Picture1, TransColor); TempList.Draw(BCanvas.Canvas, X, Y, 0, Enabled); finally TempList.Free; end; Where Picture is the source BitMap, BCanvas is the destination bit map and Picture1 is a support bitmap, during the execution of the line TempList.Draw(BCanvas.Canvas, X, Y, 0, Enabled); i have an error like this External: SIGSEVG Bye, David Please report this to mantis: http://www.freepascal.org/mantis/main_page.php Thanks xpete _ 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] New List member
I am new to this list. Just downloaded Lazarus to my Linux machine. I am an old Delphi user, so thought this might be an interesting way to convert some of my old Windows projects over to Linux. I created a simple main form with a few menu items on it and compiled it. It built a 6.8 meg executable under Linux. Is this normal? Jeff Steinkamp - N7YG Tucson, AZ SCUD Missile Coordinates N32-13-55.01 W110-50-51.91 http://n7yg.net http://home.earthlink.net/~jksteinkamp Linux User #420428 Skype : jeff.steinkamp ___ A crisis is when you can't say 'let's forget the whole thing'. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives