Re: [lazarus] Open URL in a browser
On 07/02/2008, wile64 [EMAIL PROTECTED] wrote: See also environnement variable $BROWSER under linux there is also the sensible-browser script that makes things easy (at least on debian). henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Search paths
On 30/01/2008, Marius [EMAIL PROTECTED] wrote: I need to add paths for indy and a few from lazarus\components for example which i mostly create at runtime, constantly changing the project compiler options (other sources only used by IDE) is becoming boring. Is there a place in lazarus to add search paths so lazarus can open 3thparty units in the editor (much like the current search paths for the debugger). Or i'm i overlooking something obvious? you can define it fpc.cfg (inside an ifdef)? henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] synedit patch from ales
http://www.hu.freepascal.org/fpcircbot/cgipastebin?msgid=1618 can someone look into why his mails don't reach the list, please? thanks henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: synedit patch from ales
On 25/01/2008, Henry Vermaak [EMAIL PROTECTED] wrote: http://www.hu.freepascal.org/fpcircbot/cgipastebin?msgid=1618 from #lazarus-ide: Almindor say it fixes word-parsing in synedit specially for accented chars etc. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [fpc-pascal] Notice: Possible copyright infringements in FPC code base
On 15/01/2008, Michael Van Canneyt [EMAIL PROTECTED] wrote: -- 8 -- As far as I can judge: They count on us to play things fair, and let us handle it to our own judgement for the moment, but said that if we undertook no action, they would take the necessary steps to protect their IP. We have given them the initial result of our review (i.e. the list of suspicious routines), and I haven't heard from them since. As soon as we merge the clean-room implementation to the main branch, I will inform them that this has been done. thanks for your explanation, i was curious what the progress on this was. are there similar infringements in the lcl that needs to be replaced, or has this not been reviewed? Michael. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Getting current process ID
On 30/12/2007, Mark Morgan Lloyd [EMAIL PROTECTED] wrote: What's the recommended way of getting the current process ID portably? Ideally to work in NT4 as well as Linux. GetProcessID looks like the thing you need: http://freepascal.org/docs-html/rtl/system/getprocessid.html -- Mark Morgan Lloyd henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TProcess question
On 14/12/2007, el stamatakos [EMAIL PROTECTED] wrote: Hi, I would like to run a perl script that accepts some arguments and also outputs info to a log file. I would like to be able to do something like cmd = cd + DestinationDirPath + ; setenv PATH $PATH{:$LOC} ; ${LOC}/prog.pl + DirFiles + -dk + TemplateDirPath + -defMulti prog.log How would I do something like this in Lazarus using the TProcess or any other funtion or method to launch the perl script with the proper inputs. this might help: http://wiki.freepascal.org/Executing_External_Programs Thanks Best, Lefti henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TProcess.Input problem
On 29/11/2007, Vincent Snijders [EMAIL PROTECTED] wrote: Maybe you can use dar_slave instead? http://dar.linux.free.fr/doc/man/dar_slave.html use libdar, i'd say. but bindings need to be created from the c++. Vincent henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Google's Android OS :)
On 22/11/2007, willem [EMAIL PROTECTED] wrote: Marco van de Voort wrote: Have a look at http://www.freepascal.org/faq.html#dotnet specially the last paragraph. Well the last paragraph is Palmos . It simply dead. But with android you can earn money. Thats the big difference. no, the last paragraph of the What about .NET? entry: These problems are pretty much similar for the Java (bytecode) too. One has to mutilate the language, and rewrite the libraries from scratch on the base libraries of the target (Java/.NET). Such an attempt would have little synergy with the FPC project as it is today. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Laz / Fpc function listing
On 17/11/2007, SteveG [EMAIL PROTECTED] wrote: Would anybody know if there is a listing (or some way of building one) of all functions available for Lazarus and/or Fpc ? Why not look at the online (fpdoc) documentation... or use the Lazarus 'Find in files...' search feature and search the source folders for a keyword. Working my way (slowly) thru the source tree now - has the added advantage of learning a bit more about how Laz is put together as well Just looking for a lazy way out :) My main issue is how to find (ie where to look) for cross platform functions etc - eg GetKeyState in Win - perhaps it has an equivalent function within Laz/Fpc for crossplat's will try the 'find in files' though - Thanks i usually start with these: http://freepascal.org/docs-html/ http://lazarus-ccr.sourceforge.net/docs/ and the wiki contains a lot of useful stuff, too: http://wiki.lazarus.freepascal.org/Lazarus_Documentation henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] [fpc] Request about winCE compatibility
On 14/11/2007, Alvise Nicoletti [EMAIL PROTECTED] wrote: For example, can I ask you if that one is ARM compatible? Acer c500 : http://global.acer.com/PRODUCTS/pda/spec_pda_c500.htm The CPU should be a: Samsung S3C2442 A application processor at 300 MHz i've used fpc lazarus with the acer n30 without problems. the n30 also uses a samsung cpu (but a bit slower than the c500). i've even managed to talk to usb devices. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] manage multiple fpc/laz version
On 12/11/2007, Bee [EMAIL PROTECTED] wrote: Hi all, Sorry if my question would sound silly. I'd like to have these: - Lazarus stable (9.22) using FPC stable (2.2.0) - Lazarus fixes (9.24?) using FPC fixes (2.2.1) - Lazarus devel (9.25? or 9.26?) using FPC devel (2.3.1) All sources are taken from SVN. Now, I had succeed getting all sources from SVN. I also had succeed compile all FPC versions (using 'make' etc for each version based on FPC 2.0.4). I also had succeed compile Lazarus stable (9.22) using FPC 2.0.4. But, I still failed to compile Lazarus fixes (9.24? from SVN) using different FPC version. It keeps yelling that it couldn't find required units though all units are already in appropriate folders. So, what I have suppose to do to achieve that? How to tell Lazarus 'make' to use different FPC version and get appropriate unit for each version? Now, I got stuck here. :( FYI, this is my first experience using SVN and up-to-date source for both FPC and Lazarus. I usually only use stable binary release as it always works out-of-the-box, at least for me. :) to compile lazarus with a specific version of fpc, i usually go: make all FPC=/path/to/fpc/version/ppc386 make sure that your fpc.cfg is configured so that the different versions of fpc can find their respective units. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] manage multiple fpc/laz version
On 12/11/2007, Bee [EMAIL PROTECTED] wrote: to compile lazarus with a specific version of fpc, i usually go: make all FPC=/path/to/fpc/version/ppc386 It's not about the compiler path. But about other units that are missing. Like: interfaces.pp, graphics.pp, contnrs.pp, etc. make sure that your fpc.cfg is configured so that the different versions of fpc can find their respective units. Which part of fpc.cfg need to be (re)configured? i've got these lines: -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl since i install my fpc with `sudo make install INSTALL_PREFIX=/usr`. adjust the path for your specific install location. henry _ 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.
On 06/11/2007, Jeff Steinkamp [EMAIL PROTECTED] wrote: I believe if you look at the subject line you will discover that he did start a new thread. it doesn't help just changing the subject. if you look at the headers of his email, you'll note the references header. mail clients use this to display mails in a threaded manner. his email is thus grouped under the Enhanced TODO list patch thread. the right thing to do is to create a new message if you intend to start a new thread, not to reply to an existing message. Jeff henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] fpc/xcode query: image library?
On 25/10/2007, Kurt Anderson [EMAIL PROTECTED] wrote: hi, this may be off-target for most of you, but i am floundering for resources and hope someone might be able to help. i am a biologist trying to simulate 2D diffusion under a variety of circumstances: flow, transient binding, etc. the code is actually quite simple and was built on the FPC carbon application which comes as part of the xcode integration kit. the problem for me is trying to generate image snapshots (tiff, jpeg, png, whatever, i dont care!) of the state of my diffusion simulation at different time points. i did something similar using codewarrior pascal ages ago (no idea where that code went, but would have been system 9), and recall that it was not trivial even using the metroworks libraries. so the question is: can anyone refer me to a library for free pascal, running on os x 10.4 under xcode, which will simplify writing an image file format? suggestions would also be welcome if there is an alternate version of (preferably mac based) pascal for which the libraries exist. i could also work with windows if need be. there's a lot of image stuff built into fpc already. look in packages/fcl-image/src/ drawing.pp for inspiration. alternatively (lazarus), you can just drop a timage on your form, draw what you like, then save to a file with image.picture.savetofile(). thanks very much in advance, kurt henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Getting a color based on the R,G,B components
On 17/10/2007, Adrian Maier [EMAIL PROTECTED] wrote: Hello, Is it possible to create at runtimne a TColor based on the three components R,G,B given as numbers ? function RGBToColor(R, G, B: Byte): TColor; in graphics unit. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SQLdb and 64 bits
On 17/10/2007, Alvise Nicoletti [EMAIL PROTECTED] wrote: Hi... I tryed to compile my linux service for a server with ubuntu 64 bit and mysql 5. So I changed in the code every mysql40 reference to mysql50. I tryed to change target, compile, and copy the binary to the another server, when I try to connect to the database all I get is: Can not load MySQL library libmysqlclient.so. Please check your installation. The server configuration is ubuntu 64 bit, mysql 5.0 (client and server). I need an application that works on this kind of server, so if you suspect that I can have any trouble with this in the future please notify it to me. I'm a little scared about that. Is it just a misconfiguration problem? If I do a locate libmysqlclient.so I found: /usr/lib/libmysqlclient.so.15 /usr/lib/libmysqlclient.so.15.0.0 you will need to install the -dev package (which will make the libmysqlclient.so link). henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SQLdb and 64 bits
On 17/10/2007, Henry Vermaak [EMAIL PROTECTED] wrote: you will need to install the -dev package (which will make the libmysqlclient.so link). although that should only be necessary for linking. hmm. sorry. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SQLdb : get last_inserted_id
On 12/10/2007, Alvise Nicoletti [EMAIL PROTECTED] wrote: ---8--- QryRead.Active := false; QryRead.SQL.Text := 'SELECT LAST_INSERT_ID() as PK_INGRESSO'; try QryRead.open; self.id_ingresso := QryRead.FieldByName('PK_parameter').AsInteger; must this not be: self.id_ingresso := QryRead.FieldByName('PK_INGRESSO').AsInteger;? henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] file-open SIGFPE
hi all http://freepascal.org/mantis/view.php?id=9909 does this happen to anybody else? henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] clean project directories
On 09/10/2007, Mattias Gaertner [EMAIL PROTECTED] wrote: --- 8 --- Maybe we should change the default unit output directory for projects to units/$(TargetCPU)-$(TargetOS). this is how fpcmake does it by default. very good idea. And maybe put the default .lps file into the lazarus config directory (third option). And maybe put the .lrs files into an include directory. Then a simple console utility could look like this: .lpi, .lpr, units/, .exe And a simple application like this: .lpi, .lpr, .pas, .lfm, includes/, units/, .exe Delphians will become jealous. Mattias henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] testing
On 25/09/2007, Yoyong Hernan [EMAIL PROTECTED] wrote: Oh really, so it seems like email sent by the originator does not show up in gmail? :(. Inline with this, have anyone looked at it Vincent? And how can I receive posts coming from me? Hope this is sensible. when someone replies to your post, your original message will show up. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus Development blog
On 21/09/2007, Vincent Snijders [EMAIL PROTECTED] wrote: Hi, Paul and me started a blog about Lazarus Development at http://lazarus-dev.blogspot.com/. It provides some backgrounds not suitable for an official news item and personal opinions. Vincent would it make sense to add a blogs link in the main menu on the website? (maybe under info) since the news post will disappear in a while. thanks henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Critical BUG in TBits class!
On 31/08/2007, Skybuck Flying [EMAIL PROTECTED] wrote: From: ik [EMAIL PROTECTED] procedure TBits.setSize(value : longint); begin if (Value 0) then grow(value - 1) else should work, but dunno if it's the correct solution. This is your attempt at a bug fix. (next time mention it cause it looked kinda confusing) However you didn't supply the full bug fix. What if he wants to set the size to zero to reduce the memory to zero. That should be possible ! possibly, but this is how it's advertised: http://community.freepascal.org:1/docs-html/rtl/classes/tbits.grow.html http://community.freepascal.org:1/docs-html/rtl/classes/tbits.size.html this isn't delphi compatible, as far as i can see from my delphi 7 docs. Suppose it was a longword. 0 - 1 wraps back to 4 billion. That would have allocated 4 billion bits. no, since grow checks for errors and raise the error. Also the -1 seems a logical coding mistake. (I am not sure what grow does) read the code, it's in bits.inc ;) henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] DLL using DLL
On 28/08/07, fvpats [EMAIL PROTECTED] wrote: Hi all, Another problem with DLL. When i call a function in a DLL (DLL1.DLL) from another DLL (DLL2.DLL), my string parameter is empty. you probably have to give us more information than that. what does the function look like that you are calling (the one in dll1.dll)? henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] User friendly Build Lazarus pragmatic dialog
On 28/08/07, Andreas Berger [EMAIL PROTECTED] wrote: Just a question for the experts: Wouldn't it be possible to make a similar window to choose which platform the application is compiled for (to ease cross-platform compilation)? Of course a cross-platform compilation would have to be implemented as well. i'm no expert, but you can already do this. there's target os and cpu comboboxes in the compiler options. for this to work you also need to set your compiler filename for it to use your cross compiler. it would be quite handy to have all the settings in one place, but you run the risk of creating a very schizophrenic gui (like almost everything microsoft does :) henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus klik package
On 23/08/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, Does anybody know who is maintaining the Lazarus klik package? They used a strange version number 2.7-1, so I'm not sure what the actual version is of Lazarus. that screenshot says it's 0.8.4a :) http://lazarus.klik.atekon.de/ is this it? (maintainer) http://lazarus.klik.atekon.de/recipe/ henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] CRLF problem with editor
On 23/08/07, DarekM [EMAIL PROTECTED] wrote: Hi How to disable changing EndOfLine mark by Lazarus. I have source written under Delphi with CRLF on each line. I try to edit this file under Lazarus in Linux. But unfortunately he change all lines to LF. But when I try to sent this come back by SVN whole file is inside DIFF (all lines have changed EOL). svn should take care of this if you set the eol-style property to native. i'm not really sure if this is your problem, though. you can also tell most diff programs to ignore eol chars. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] HelloWorld: gdb.exe crashes
On 22/08/07, Skybuck Flying [EMAIL PROTECTED] wrote: FreePascal and Lazarus claim to be software development tools so far it's FUD. ? do you even know what fud means? word of advice, try and be polite, otherwise the usually helpful people here might not care to reply to your posts any more. Since Delphi 2007 is total crap (which you can read about here if you interested: http://members.home.nl/hbthouppermans/Delphi2007Crap/Index.htm ) i'm sure there are other places that you can vent your frustration with like-minded people. this is not the place. and remember to search the list and bug tracker before posting. it'll save your time. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] arm-linux
On 08/08/07, Tony Maro [EMAIL PROTECTED] wrote: On Mon, 2007-08-06 at 09:55 +0100, Henry Vermaak wrote: which version of fpc are you using? my lcl compiles fine for gtk2 and arm with 2.3.1. whether it works or not is another story... FPC 2.0.4 - the standard stable packages for installing posted on the Lazarus site March 27th along with 0.9.22 of Lazarus you'll have to use a recent svn version. there's been a lot of arm fixes in trunk (they're probably merged in 2.2, though). do you need to emulate floating point instructions, or does this device have a floating point unit? if not, you'll have to compile everything with -CfSOFT. cheers henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] arm-linux
On 03/08/07, Tony Maro [EMAIL PROTECTED] wrote: On Fri, 2007-08-03 at 17:52 +0200, Luca Olivetti wrote: On that note, it still won't find libglib. On the device is only libglib-2.0.so so I assume ppcarm is trying to link to libglib-1.2 or some such... Try compiling for gtk2 instead of gtk1. Or find gtk1 libraries for the n800 and install them. GTK2 won't compile in Lazarus... I didn't realize the n800 was GTK2 - all the docs I've seen mention GTK Toolkit and don't specify. Building the LCL for GTK2 for ARM result sin Internal error 200408162 at line 277 of gtkwscomctrls.pp. The line reads: gtk_progress_configure(GTK_PROGRESS(Pointer(Pointer(wHandle))),Position,Min,Max); I tried the good old trick of just hitting Build again (took off build clean) but it still generates the same FPC internal error. which version of fpc are you using? my lcl compiles fine for gtk2 and arm with 2.3.1. whether it works or not is another story... henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] arm-linux
On 03/08/07, Tony Maro [EMAIL PROTECTED] wrote: I'm unclear of how to get the LCL built for ARM... if I try this to build any GUI app, it won't link, complaining about an incompatible crtbegin.o Well I got past that with a few #ifdef in the fpc.cfg. you shouldn't have to do this. i dunno about how to do it in the ide, but i get mine to compile by: make lcl LCL_PLATFORM=gtk2 CPU_TARGET=arm OS_TARGET=linux BINUTILSPREFIX=arm-linux- CROSSBINDIR=/opt/slugosle/bin FPC=/usr/lib/fpc/2.3.1/ppcrossarm OPT=-CfSOFT you don't need all these options, but it gives you an idea what's possible. cheers henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Nokia N800
On 30/07/07, Tony Maro [EMAIL PROTECTED] wrote: Well, I decided to go ahead and order one from Amazon - It's only $400 with a 2 GB card, case and screen protectors, so it's cheaper than the PocketPC I'll be replacing with it. So I guess I'll be the official tester ;-) I just couldn't pass up owning a Linux based handheld. my lcl compiles fine with arm-linux target. a test app compiles fine after i've given ppcrossarm the -Xd and -Flarm lib dirs. good luck and keep us posted! henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Daemonapp : how to use ?
On 26/07/07, fvpats [EMAIL PROTECTED] wrote: Thanks But i saw this demo but nothing run on my computer. Tell me if its wrong but this demo create a Test Daemon i can see in the Windows SCM ? this test should make an event log, check in there if anything went wrong. it defaults to the file name: ChangeFileExt(Paramstr(0),'.log'). henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Daemonapp : how to use ?
On 26/07/07, fvpats [EMAIL PROTECTED] wrote: Hi all, I am trying to use daemonapp unit (for windows) but i don't know if it's a good idea. I would like to manage apache daemon : install, start, stop, restart, test if installed, ... Can you help me ? I didn't find any informations on the net. there's a test app under packages/fcl-base/tests/daemon.pp. this will give you some clues. here's the link: http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/packages/fcl-base/tests/daemon.pp?view=markup henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] GTK2 for arm-linux
On 25/07/07, Koenraad Lelong [EMAIL PROTECTED] wrote: Henry Vermaak schreef: On 23/07/07, Marc Weustink [EMAIL PROTECTED] wrote: ... does this viper run a big or little endian kernel? my vulcan is big endian and i can't get any joy out of it when i compile fpc with endian_big. it would be _very_ cool to be able to use lazarus with these little devices. AFAIK it's little endian. How to verify ? Yes, it's nice to have FPC for that device, it would be perfect to be able to use Lazarus (and GTK2). yes, it's little endian (according to the docs). let us know if you make progress on it. good luck! henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] GTK2 for arm-linux
On 23/07/07, Marc Weustink [EMAIL PROTECTED] wrote: Koenraad Lelong wrote: Marc Weustink schreef: Sam Liddicott wrote: I may be asking obvious questions here, but you didn't reveal a lot about your setup. Do you event have a DISPLAY environment variable set? Instead of setting your env, you can also start your app like: your_app --display=yourserver:0 Marc Tried this, and got another result. ./project1 --display=viper:0 gives : [FORMS.PP] ExceptionOccured Sender=EReadError Exception=Invalid Filer Signature Stack Trace: ... TApplication.HandleException Invalid Filer Signature Stack trace: ... then a form appears (with a red circle with a white bar in it) : Invalid Filer Signature Press OK to ingore and risk data corruption. Press Cancel to kill the program [ OK ] [ Cancel ] And the form seems to respond to a click on one of the buttons, it terminates the application. This is some progress, thanks. Other suggestions ? at leas this is no: Gtk-WARNING **: cannot open display: so you now have your display and ran into a complete different problem. Exception=Invalid Filer Signature: maybe some endian issue or a corrupt file or a bad compiled string constant (the form layout is stored internally in a string) does this viper run a big or little endian kernel? my vulcan is big endian and i can't get any joy out of it when i compile fpc with endian_big. it would be _very_ cool to be able to use lazarus with these little devices. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] The Gtk2 IDE and the november bounty
On 20/07/07, Henry Vermaak [EMAIL PROTECTED] wrote: mine is fast (and my computer is not high tech). but i've just realised that i can't move the combobox around on the form designer by dragging with the mouse. this used to work :( just realised that this is because the combobox is inside a tab. maybe tabs are doomed for the moment. a combobox straight onto a form works as expected. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TButton.Color
On 19/07/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: I'm afraid you are wrong here! TButton under Delphi and Kylix has a Color property, which was introduced by TControl. And yes under Delphi it does change the button's face color. We have used this in some of our multimedia applications. that's weird, i can't find button.color in delphi 7. which delphi are you talking about? henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Carbon native IDE
On 12/07/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: Hi, I just tested the Lazarus IDE with carbon, and it loads and looks reasonable: http://magnifier.sourceforge.net/photos/Fullscreen_1.png =) It cannot be used, because SynEdit doesn't work (lot's of bugs: no Caret, when moves around the text the new text is painted over the old text, no scrollbars, etc, etc). But, nevertheless, it's a great progress already =) this is great news, well done to everyone involved! :) henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Spell Check and Thesaurus
On 12/07/07, Christian U. [EMAIL PROTECTED] wrote: Leonardo M. Ramé schrieb: Does anybody knows an Open Source Spell Check and/or Thesaurus component for FreePascal/Delphi? you can use aspell to do this, and control it with TProcess. regards Christian Thanks in advance, Leonardo M. Ramé http://leonardorame.blogspot.com here's some info for aspell. you might be able to use libaspell. http://aspell.net/man-html/Writing-programs-to-use-Aspell.html henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: gtk2 combobox
On 25/06/07, Henry Vermaak [EMAIL PROTECTED] wrote: hi all is anybody experiencing this? (see attached) gtk2 combobox with csdropdownlist. update: this offset happens whenever the combobox is inside a tab. the cap i've sent is a combobox inside a tab, which is inside another tab. can anyone confirm? thanks henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: gtk2 combobox
On 02/07/07, Henry Vermaak [EMAIL PROTECTED] wrote: On 25/06/07, Henry Vermaak [EMAIL PROTECTED] wrote: hi all is anybody experiencing this? (see attached) gtk2 combobox with csdropdownlist. update: this offset happens whenever the combobox is inside a tab. the cap i've sent is a combobox inside a tab, which is inside another tab. can anyone confirm? update update: false alarm, sorry. my lfm file got mangled somehow and the editor wouldn't let me resize the combo boxes. i just edited manually and now it looks fine. at least i know now how scary the gtk2 interface code is :) henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: gtk2 combobox
On 02/07/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 02/07/07, Henry Vermaak [EMAIL PROTECTED] wrote: now it looks fine. at least i know now how scary the gtk2 interface code is :) Yeah, my personal experience with the GTK2 interface wasn't great either. I'm back to GTK1, but now I have another issue. With all the GTK2 changes, it breaks GTK1 from time to time. I'm now getting way less updates for Lazarus due to this. Once I get a revision that works for me, I keep it for a few weeks. PS: I'm not knocking the GTK2 interface developers. :) You guys are doing a great job. The GTK2 interface has improved a lot since a few months back. I would have loved to help wink, but the fpGUI framework is keeping me to busy at the moment. it's a bit hit and miss sometimes, but i think it's improved greatly. i did hit a problem the other night when i tried to compile some win32 code under gtk2. an onshow handler fired before something was shown and caused a crash. i'll look into that one if i get time. i feel that the ide is quite usable in gtk2 (i wrote large parts of an application with it). most of my problems are due to my prolific use of the pagecontrol/tabsheets, though. i'd also love the gtk2 stringgrid to be a bit less sluggish and less flickery. it takes me a long time to understand the code, though, but i'm hoping to improve on it someday. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Message box highlight colours
On 30/06/07, Brad Campbell [EMAIL PROTECTED] wrote: G'day all, This is my last resort, I'm going mental. i consider that a virtue... Something, somehow has changed the highlight settings on my object inspector treeview and compiler message box to a Dark blue/purple background with black text (which is nearly impossible to read). i can't even find a way to change these settings. have you tried to fiddle around with your window manager settings (like themes)? I've checked everything I can find in all the options box and I seem to be able to change every option but this one. Someone pretty please tell me where I can change this setting ? Brad henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] gtk2 combobox
hi all is anybody experiencing this? (see attached) gtk2 combobox with csdropdownlist. henry attachment: cmb.png
Re: [lazarus] Graphics32 Carbon beta-testing
On 19/06/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: hehehe... OpenSource users are never happy with what someone has accomplished! They always find fault. Be nice to Felipe, it took him quite some time to do the port. All the other platforms will be supported in due time - even quicker if others help. One platform at a time. ;-) Now for me to test Graphics32 on a Mac, I would first have to buy one! Anybody know how I can get that idea pass the wife? :-( ah, that's easy. you just show her a couple of pictures of a mac mini. then she goes hh, it's so pretty and cute!. the you practically _have_ to buy one ;) i find it harder to scrape up the funds myself... So when will we be able to go buy OS X in the shop and install it on our non-Mac hardware? Damn Apple!! Regards, - Graeme - henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TNoteBook vs TPageControl
On 18/06/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, What is the difference between these two components? Which one would be more reliable in a production environment? The product will be released of Windows and Linux. i'm using lots of pagecontrol/tabsheets in a project at the moment. they work very well. only complaint thus far is that i can't seem to select them reliably in the visual editor. i need to select them in the object inspector. Regards, - Graeme - henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TNoteBook vs TPageControl
On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote: Also, in both, if you are designing a tab, then flip over to another tab, any new components dropped onto the tab you are now on will not be displayed at design time, only the resize blocks will be there to tell you where it is. This happens in Gtk2, not sure about Gtk1. Workaround is to save the project and then reopen it, then you can go on designing the other tab. yes. everything works o.k. if you use the object inspector to select the tabs, though. i haven't had time to look into this (i'm not brave enough, actually). Charl henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TNoteBook vs TPageControl
On 18/06/07, Christian Ulrich [EMAIL PROTECTED] wrote: I use TPagecontrol at time, in Windows it works well in GTK it isnt visible after the second Form.Show so its useless in an productive Enviroment. Dont know about TNotebook. mine doesn't even work in windows. i wouldn't call it useless - just a bother to select components in the o.i. instead of visually. regards Christian henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] inputdialog
On 14/06/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Not to mention the other problems. The buttons height is wrong and the buttons don't have a consistent width. The constraints should be MaxHeight = 25, MinHeight = 25 and MinWidth = 75. indeed. it looks like this problem disappears when you set the width. maybe the client size of the edit box is not initialised properly? anyhow, i think setting the width to 0 is a harmless hack (hopefully), so i've attached a patch and a picture of what the fixed one looks like. anyone care to apply? :-) Graeme. thanks henry attachment: edit-fixed.png inputdialog.patch Description: Binary data
[lazarus] inputdialog
hi all see attached for a weird anomaly (under win) when you set the edit text to a long string (half of the first character gets cut off). i've had a look in inputdialog.inc and it seems to go away when you change the taborder (so maybe in the selection code?). anyone know where to look for the problem? thanks henry attachment: edit.png
Re: [lazarus] international dates
On 02/06/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: Hello, This is a known problem. The problem is that the variables which control the date/time/currency formatting in the SysUtils unit are not initialized on Unix. This is an open issue which must still be resolved. (it takes some work to do this, unfortunately) i looked into this some time ago. the function you really want to emulate is nl_langinfo and (as far as i could understand) it parses all the locale files to populate big records with the correct information. these locale files are a libc invention to start with (so the format might change, but unlikely) and they are not text files! so you have to look at ulrich drepper's code on what the data structures look like and how to parse them (which are mostly macros, by the way). sorry for my hand-wavy description, but i didn't have enough time to go into this at the time. i keep telling myself there must be an easier way and i wonder why those files aren't simply text files (like everything else on linux). maybe i'll get a rainy day to look into this again. I have a unit which does this for you. It checks the KDE international settings or the C library settings. It is not included by default in SysUtils because it creates a dependency on the C library, but I can send this unit to you in private. Michael. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] StringReplace - TReplaceFlags
On 23/05/07, Alvise Nicoletti [EMAIL PROTECTED] wrote: :O Sorry, I didn't sleep tonight :O *hits himself with a nailed whip* kinky, although not really my thing ;) _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
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 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] ide installation on ubuntu
On 14/05/07, Alvise Nicoletti [EMAIL PROTECTED] wrote: However: how difficult can it be to install zeos on lazarus for linux? I prefer to use light libraries like I did in the past and I like SQLdb... however i need to be sure that all works and it's stable... if you want something really light, just look at the example code under fpc/packages/base/mysql. it calls the mysql libs directly. otherwise look at the examples under fpc.packages/fcl-db/src/sqldb/examples for the oo approach. remember to install the mysql*-dev packages (in ubuntu) to make sure they'll link. also look at the database faq in the wiki. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] ide installation on ubuntu
On 14/05/07, Alvise Nicoletti [EMAIL PROTECTED] wrote: Thank you. You're talking about the cvs i suppose, I'll try to give a look at them. i'm not that experienced with daemons, but it looks like fpc has done a lot of the work for you with daemonapp.pp. this will be the right thing to use, so look at fpc/packages/fcl-base/tests/daemon.pp for an example. is there a wiki page for daemonapp? i couldn't find one. good luck! henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Gtk 2 IDE looking good
On 09/05/07, Micha Nelissen [EMAIL PROTECTED] wrote: What window manager and gtk 2 theme / style ? this was tested with icewm (theme gertplastic) and latest fpc. i'll try and test it with metacity to see if anything is consistent. i've had some problems with one of the ubuntu themes before, but haven't tried the latest ones. Micha henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Gtk 2 IDE looking good
On 10/05/07, Andrew Haines [EMAIL PROTECTED] wrote: I have problems using fpc 2.3.1(x86_64) with lazarus gtk2. What version of fpc did you compile lazarus with? Try 2.0.4. Also try changing your theme. ah, o.k. will try 2.0.4 too. any ideas about the problems with 2.3.1, or is it a 64 bits problem? Regards, Andrew thanks henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Gtk 2 IDE looking good
On 10/05/07, Henry Vermaak [EMAIL PROTECTED] wrote: On 09/05/07, Micha Nelissen [EMAIL PROTECTED] wrote: What window manager and gtk 2 theme / style ? this was tested with icewm (theme gertplastic) and latest fpc. i'll try and test it with metacity to see if anything is consistent. i've had some problems with one of the ubuntu themes before, but haven't tried the latest ones. tested with metacity with some ubuntu theme and everything works o.k. couldn't get to crash it at all - looks very nice indeed. i haven't had problems with icewm at all, though. any ideas to what would cause the problems? henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Gtk 2 IDE looking good
On 09/05/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: Here the Gtk 2 IDE crashes when I delete components from a Form. Can anyone confirm before I post a bug report? (this would be the biggest show stopper so far) i can't reproduce that, but since i've tried head gtk2 interface 10 minutes ago, it's crashed about 10 times. the alarming thing is that it crashes my whole window manager and i have to go and kill -9 all the processes :( when i hit f12, the form doesn't show up. i can find it in my window list, but it won't bring it to the front. the only way to find it is when i minimise the editor window (usually). also, the View Forms function causes a crash almost every time i try and select a form to view (related to above?). if i enable the debugger, it crashes when the program finishes (almost every time...). it seems a bit random, though, on the whole. i'm sure other people will be able to reproduce, though. if i had to guess, i think many crashes are due to showing/hiding windows. thanks, -- Felipe Monteiro de Carvalho henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Plug-in functionality
On 18/04/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: On 4/18/07, Lee Jenkins [EMAIL PROTECTED] wrote: That may be my mistake then Christian. I thought I read that somewhere, I've never tried it. Nonetheless, that is good news. What doesn´t work on Free Pascal is creating a dll that exports classes, like for example building the full fpc runtime library into a DLL. Exporting normal functions works ok. yes, dlls do work with lazarus. however, i've had a problem recently (when using wince dlls) that lazarus wouldn't find them. i think the problem was that lazarus was trying to look for static libs. the only way i could fix it was to add -sh to the options and edit the ppas.bat file (adding -llibname right at the end of the arm-wince-ld command line). that was strange, but usually it Just Works. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] New name for the win32 widget set?
On 18/04/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: I would vote for gdi or winapi i'd vote for winapi, since the gdi is not the widget set and lazarus doesn't call it directly (?). henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] wince GetControlText
when i try to use the Text property in the edit control as the text in a MessageDlg function, it gives me a Bus error or misaligned data access error. i tracked this down to be the FreeMem(tmpWideStr) call in the GetControlText function. it makes sense to me to use the SysFreeString function when you've used SysAllocStringLen - and when i changed this to SysFreeString(tmpWideStr), it started working. can any wince geniuses confirm this? this is on line 1135 in winceproc.pp. i'd just like to quote an hilariously vague line out of msdn: Passing invalid (and under some circumstances NULL) pointers to this function causes an unexpected termination of the application. this is on the SysAllocStringLen page - a function which is supposed to be able to handle a null param... henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] wince GetControlText
On 13/04/07, zaher dirkey [EMAIL PROTECTED] wrote: I posted as bug in mantis, and worked fine for me, but not sure if that the correct way to resovle the problem, i think when we use SysAllocStringLen we must use SysFreeString. Check it http://www.freepascal.org/mantis/view.php?id=8676 that's it. sorry, i need to search mantis before i post anything here. it'd save me some time. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Fonts in gtk1 (partially offtopic)
On 07/03/07, Adrian Maier [EMAIL PROTECTED] wrote: Hello, I am compiling Lazarus with the gtk1 interface (in Mandriva Linux 2007), and unfortunately can't find any font for the code editor that looks acceptable. a) I'm wondering what fonts are other people using? b) In the Select a font dialog when selecting most of the fonts, it says The selected font is not available. What does this mean? Is it possible to do something so that those fonts can be used? c) Also, when running my application (built with lazarus) it also uses a very ugly (hard-to-read) font. In order to change it is it true that it can be configured with the ~/.gtkrc file? Does anyone happen to know some links with clear information about setting fonts for gtk1 applications? Cheers, Adrian Maier see this: http://wiki.lazarus.freepascal.org/Lazarus_Faq#I_have_Ubuntu_Breezy_and_my_fonts_in_Lazarus_IDE_look_too_big it works for me, but you might have to fiddle a bit. i also use the terminus font for the editor. was the cleanest one i could find... henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] OT: Döner was Re: Ideas to implement AllocateHwnd
On 26/02/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: One interresting thing is that the most popular brazilian fast food restaurant is called Habib´s , and serves arabian food. The food is somewhat similar, but also not that much. Another diference is that in Brazil middle eastern imigrants are mostly from Lebanon and Syria, and not Turkey, even thougth they are (incorrectly) refered to as turks by the common people. -- Felipe Monteiro de Carvalho i was astonished at the amount of lebanese restaurants in brazil. i still love pamonha, though. the whole of the u.k. is riddled by kebab vans that cater for (mostly drunken) people that pour out of the pubs at night. ah, fond memories. we have a van just outside my flat that's called boss's kebab *center*, which is especially funny because of the fact that only 2 people can fit in it. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] OT: Döner was Re: Ideas to implement AllocateHwnd
It´s funnny that I grew up at Piracicaba, country side of São Paulo state, and Piracicaba is known as the city of Pamonha, even thought this is a complete invention, and has really nothing to do with the city =) It´s more like the city of sugar cane. People sell the juice that comes out of sugar cane on small vans =) I like sugar cane quite a lot, but I don´t like pamonha very much. ah, caldo de cana. we used to pick the canes from farms in natal (south africa) when i was a kid. very nice. anyway, i digress... -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Mailing list archives
Greetings, I just joined the list and am looking for a current mailing list archive before I start asking questions that have already been answered. Looking at the web site here http://www.lazarus.freepascal.org/list_archives/lazarus/maillist.html shows the last update in April 2006. Is there a more current location to look? Thanks, Gus hi gus gmane seems to work o.k. just point whatever reader you use at news.gmane.org and search and subscribe to whichever list you want. remember to check the free-pascal one too. read here for more ways to read the lists: http://dir.gmane.org/gmane.comp.compilers.free-pascal.general http://dir.gmane.org/gmane.comp.ide.lazarus.general henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] function esd_play_file
On 15/01/07, Sönmez Kartal [EMAIL PROTECTED] wrote: Thanks for tip but it is still giving same error. Maybe, I have to do something to get able to use libesd.so file. Any ideas? make sure that your libesd.so file is somewhere ld can find it (e.g. /lib or /usr/lib). it won't work if it's in the same folder. try `locate libesd`. you might have to make a symlink if it's not called libesd.so. Happy coding thanks. henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Problem with message handling
hi gabor the event function is there so you can give the handle to your event (which you get from CreateEvent). then you can create a thread that blocks on this event with one of the wait functions (WaitForSingleObject, for instance). when the reader receives a scan, it will set the event and your thread will resume and process the scan buffer. now this method is also platform specific, since the event functions are in the windows unit. can anyone comment on this for linux? my hunch is that a similar thing must exist... henry On 24/11/06, Gabor Boros [EMAIL PROTECTED] wrote: I am developing an application for a mobil computer with an integrated barcode scanner which is running WinCE. The API presents two solutions. DWORD SCAN_ReadLabelMsg(HANDLE hScanner,LPSCAN_BUFFER lpScanBuffer, HWND,UINT uiMsgNo, DWORD dwTimeOut, LPDWORD lpdwRequestID); DWORD SCAN_ReadLabelEvent(HANDLE hScanner,LPSCAN_BUFFER lpScanBuffer, HANDLE hEvent,DWORD dwTimeOut, LPDWORD lpdwRequestID); I use first because I don't know what is Event in the second case. Gabor Micha Nelissen írta: Gabor Boros wrote: Hi, My problem is, the Scan procedure not executed. I tried with Delphi and working. I am missed something or is this a bug? Message passing/handling is in general not to be relied upon, for cross-platform reasons. There are other alternatives usually. What is it you want to accomplish ? Micha _ 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] Lazarus 0.9.18 in Ubuntu impossible rebuild gtk2
enzo libgdk-x11-2.0.so is in the package called libgtk2.0-dev, make sure that is installed. henry On 24/09/06, v.scozzaro [EMAIL PROTECTED] wrote: Dean Zobec ha scritto: v.scozzaro ha scritto: Install ubuntu from http://sourceforge.net/project/showfiles.php?group_id=89339package_id=204004release_id=447674 is ok run lazarus is ok run project is ok select gtk2 in configure Build Lazarus rebuild this message error /usr/bin/ld: cannot find -lgdk-x11-2.0 Seems that libgdk 2.0 devel package is missing, you have to install it. Ciao, Dean _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives This [EMAIL PROTECTED]:/home/vincenzo# apt-get install libgdk Lettura della lista dei pacchetti in corso... Fatto Generazione dell'albero delle dipendenze in corso Reading state information... Fatto E: Impossibile trovare libgdk [EMAIL PROTECTED]:/home/vincenzo# Not find libgdk! B Sulution? Ciao by Enzo _ 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] new translations
interesting reading about different locales for afrikaans. i had my firefox in afrikaans for a bit, but i don't know all the computer terms. it is my mother tongue, though. good luck, chaps henry (oxford, u.k.) On 21/09/06, Graeme Geldenhuys [EMAIL PROTECTED] wrote: I was wondering about that myself, then I found in the Linux locale directory a refernce to en_ZA and af_ZA (English and Afrikaans). Also from a country point of view AF is for Afghanistan. See http://www.unicode.org/onlinedat/countries.html So to be save, I thought I would use af_ZA so there can be no confusion. South Africa has way to many official languages. 11 to be exact!! Is there any other country that can beat that! :-) Regards, - Graeme - On 21/09/06, Vincent Snijders [EMAIL PROTECTED] wrote: Graeme Geldenhuys wrote: Hi A.J. All changes to the IDE has already been done, so Afrikaans appears in the language dropdown and it recognised the *.af_ZA.po files. Why not just *.af.po? Are there other (incompatible) version of Afrikaans besides af_ZA? Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- There's no place like 127.0.0.1 _ 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] gtk2 showmessage error
Hello all I've noticed something strange in one of my programs that I've compiled for gtk2. When I call ShowMessage or MessageDlg (with mtInformation) the program crashes with an Invalid floating point operation error. (The program runs fine if compiled for gtk...). The strange thing is that when I run the same program with MessageDlg with mtError, it works fine. Can anyone confirm this, or is there something wrong with my setup? (I'm running the latest snapshot lazarus with fpc 2.0.4 on Ubuntu, although the same happened on previous versions of lazarus and fpc). Thanks Henry _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] gtk2 showmessage error
I've tested it on my laptop (that's running the exact same versions of ubuntu, lazarus and fpc) and it works ok! So I won't file the bug report after all. Must be something wrong with my other system... Thanks Henry On 08/09/06, Mattias Gaertner [EMAIL PROTECTED] wrote: On Fri, 08 Sep 2006 15:43:18 +0100 Henry Vermaak [EMAIL PROTECTED] wrote: Hello all I've noticed something strange in one of my programs that I've compiled for gtk2. When I call ShowMessage or MessageDlg (with mtInformation) the program crashes with an Invalid floating point operation error. (The program runs fine if compiled for gtk...). The strange thing is that when I run the same program with MessageDlg with mtError, it works fine. Can anyone confirm this, or is there something wrong with my setup? (I'm running the latest snapshot lazarus with fpc 2.0.4 on Ubuntu, although the same happened on previous versions of lazarus and fpc). Please create a bug report, so this won't be forgotten. Mattias _ 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] gtk2 showmessage error
Ah, that's it. It works on the human theme, except that the mtInformation image changes (dots all over it) sometimes. It crashes on the silicon theme. Why would this happen and why only for mtInformation? Henry On 08/09/06, Micha Nelissen [EMAIL PROTECTED] wrote: Henry Vermaak wrote: I've tested it on my laptop (that's running the exact same versions of ubuntu, lazarus and fpc) and it works ok! So I won't file the bug report after all. Must be something wrong with my other system... Not necessarily, some gtk themes/engines are more 'robust' than others. Reproduceability is important nevertheless, of course. Micha _ 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