[Lazarus] creating a Lazarus package NoGUIApplication

2010-03-11 Thread Michael Schnell
Hi Experts, I'd like to create an opens source Lazarus package NoGUIApplication, that allows for creating a Linux Application that allows for event driven programming but avoids any binding to the GUI. Same can be used in GUI-Less embedded systems. If that works, I'd like to add a Lazarus

Re: [Lazarus] creating a Lazarus package NoGUIApplication

2010-03-11 Thread Michael Schnell
I found that I can link to the Widget Type I want to use by including the appropriate directory ($(LazarusDir/interfaces/nogui) in the include path. With that I was able to create an Application without doing new-Application but by new-program. So I suppose I can copy interfaces/nogui somewhere,

Re: [Lazarus] creating a Lazarus package NoGUIApplication

2010-03-11 Thread Michael Schnell
On 03/11/2010 05:04 PM, Mattias Gaertner wrote: On Thu, 11 Mar 2010 16:41:58 +0100 Michael Schnell mschn...@lumino.de wrote: I found that I can link to the Widget Type I want to use by including the appropriate directory ($(LazarusDir/interfaces/nogui) in the include path. include

Re: [Lazarus] creating a Lazarus package NoGUIApplication

2010-03-11 Thread Michael Schnell
On 03/11/2010 05:45 PM, Vincent Snijders wrote: There is also no event loop. So I don't think you want to use it. Of course I do know that I need to enhance the nogui widget type greatly to allow for this. If somebody feels that the current nogui widget set is useful at all, I will call the new

Re: [Lazarus] creating a Lazarus package NoGUIApplication

2010-03-12 Thread Michael Schnell
On 03/12/2010 03:10 AM, Hans-Peter Diettrich wrote: Mattias Gaertner schrieb: The strange thing is, that every time I read your mails in the last weeks about nogui and lazarus, I thought you meant the nogui widgetset. AFAIR the wish was an application with message processing, but without a

Re: [Lazarus] [ Slightly Off Topic ] Background Why I love Lazarus Pascal

2010-03-12 Thread Michael Schnell
Yes, well, I think that the Lazarus developers are *trying* to be proactive and support as many new environment as possible. What about Lazarus for CIL (aka .NET aka Mono) ? AFAIK, the FPC developers are not at all inclined to start a project to do an FPC that creates CIL code. AFAIK, some

Re: [Lazarus] New version of WebDesign available

2010-03-12 Thread Michael Schnell
On 03/12/2010 12:42 PM, Joost van der Sluis wrote: This package can be used to develop webpages for FCL-Web using a Lazarus-designer. Can you elaborate what the package does and or provide a link to a documentation ? it seems to be something similar to ExtP (which is a Lazarus package to

Re: [Lazarus] New version of WebDesign available

2010-03-12 Thread Michael Schnell
On 03/12/2010 01:46 PM, Joost van der Sluis wrote: See my mail from jan 24th. Thanks. Found it in the Backlog. (I (was not subscribed to this mailing list at this date) Do these web-applications support persistent CGI programs using AJAX / Comet ? If yes, how is this done ? If no, do you

Re: [Lazarus] Run two build simultaneously

2010-03-15 Thread Michael Schnell
On 03/13/2010 12:52 PM, Paul van Helden wrote: I create a config directory for each build and start them like this: c:\lazarus-latest\lazarus.exe --primary-config-path=c:\lazarus-latest\config c:\lazarus-stable\lazarus.exe --primary-config-path=c:\lazarus-stable\config This obviously is

Re: [Lazarus] creating a Lazarus package NoGUIApplication

2010-03-15 Thread Michael Schnell
On 03/15/2010 12:31 PM, Joost van der Sluis wrote: It works perfectly. You can use it to compile any fcl-web application against. So that there are no dependencies on external gui-libraries (like gtk, qt etc) OK. Works here obviously means that it helps the application to be compiled, but

[Lazarus] Creating a Widget Type using a Lazarus packet.

2010-03-15 Thread Michael Schnell
Is it possible to add a new Widget Type to the 9 existing ones by installing a packet in Lazarus ? If Yes: How to create such a packet ? if No: What to do to provide a new Widget Type as an open source Lazarus Add-on ? Thanks, -Michael -- ___ Lazarus

Re: [Lazarus] New version of WebDesign available

2010-03-15 Thread Michael Schnell
In your mail from jan 24 I found: adds some functionality for server based and client site event handling This sounds as if persistent CGI would be supported. Would it be possible to create a CGI that allows for this: - The Browser surfs to the CGI location - some Web page is shown

[Lazarus] windres: can't open manifest

2010-03-15 Thread Michael Schnell
I tried to do another test on windows. I just wanted to create a new empty application and start it. I got the error message: c:\lazarus\fpc\2.2.4\bin\386-win32\windres.exe: can't open file 'project1.manifest': No such file or directory project1.lpr(20.1) Error: Error while linking. I deleted

Re: [Lazarus] windres: can't open manifest

2010-03-15 Thread Michael Schnell
On 03/15/2010 04:17 PM, Paul Ishenin wrote: To do the tests better to also use lazarus test version (0.9.29) which already does not have such problems. I really would like to do that. But for my tests I need to install the same versions of Lazarus and FPC on Windows and Linux. 9.28.2 was the

Re: [Lazarus] New version of WebDesign available

2010-03-17 Thread Michael Schnell
On 03/15/2010 08:56 PM, Joost van der Sluis wrote: Another example (avoiding any hardware binding) would be a simple http chat cgi. Not without polling I'm not sure what you mean by polling here. Of course a chat CGI (and the other examples I mentioned) do need polling for remote

Re: [Lazarus] windres: can't open manifest

2010-03-17 Thread Michael Schnell
On 03/16/2010 12:04 AM, Paul Ishenin wrote: Just checkout the lazarus sources into some directory and run make bigide after that. If you need all other packages which are installed with lazarus usually then rebuild the IDE from the IDE itself after. Sound easy :) This will give me the most

Re: [Lazarus] creating a Lazarus package NoGUIApplication

2010-03-17 Thread Michael Schnell
On 03/15/2010 04:24 PM, waldo kitty wrote: i'm very intrigued by your proposal and work on this... i'm very interested in it for a idea i've had for a long time but had no real pointer to how to accomplish it... Same here. I have been discussing this issue in the fpc-develop mailing list

Re: [Lazarus] creating a Lazarus package NoGUIApplication

2010-03-17 Thread Michael Schnell
On 03/16/2010 08:49 AM, Michael Van Canneyt wrote: CGI is standardized since ages, and is independent of the server software. I programmed my first CGI apps for NCSA httpd server 15 years ago, and things haven't changed since. Absolutely true for Standard CGI. Here, with a HTTP request, the

Re: [Lazarus] creating a Lazarus package NoGUIApplication

2010-03-17 Thread Michael Schnell
On 03/15/2010 08:54 PM, Joost van der Sluis wrote: Fcl-web is a framework on which you can make 'anything' you want. You can use FCGI and your program will be persistent. You can use the webmodules. If you do, you can let the framework create a new webmodule for every call. (REST) But you can

Re: [Lazarus] New version of WebDesign available

2010-03-17 Thread Michael Schnell
On 03/17/2010 10:42 AM, Michael Van Canneyt wrote: If I understand your explanation correct, all this already exists since quite some time in the fastcgi application type. See the custfcgi and fpfcgi unit. Is there an example of a fastcgi project that uses a TTimer or something similar ?

Re: [Lazarus] New version of WebDesign available

2010-03-17 Thread Michael Schnell
On 03/17/2010 01:32 PM, Michael Van Canneyt wrote: It cannot use a TTimer, since TTimer presupposes a GUI and an X server. That is what I did expect. It can use a TFPTimer, which does not suppose a GUI and X server. Sounds good. So it might have an event queue. I'll take a look at

Re: [Lazarus] creating a Lazarus package NoGUIApplication

2010-03-17 Thread Michael Schnell
On 03/17/2010 01:28 PM, Michael Van Canneyt wrote: This is fastcgi, which is supported by FPC, see my other mail. Ah fastcgi. Thanks for the pointer. I already did come across this name during my researches. My old mind has no problem remembering concepts, but it has difficulties remembering

Re: [Lazarus] New version of WebDesign available

2010-03-17 Thread Michael Schnell
On 03/17/2010 02:34 PM, Joost van der Sluis wrote: No, it implements a fastCGI application. You can not use it for what you want. Otoh, what you want is not necessary to build a persistent web-application. That can be done much easier. (As is done in the fastCgi application) I see. What I

Re: [Lazarus] New version of WebDesign available

2010-03-17 Thread Michael Schnell
On 03/17/2010 03:06 PM, Michael Van Canneyt wrote: There is no reason why fcl-web cannot be used for this; it is totally event driven. The only event currently defined is the request from the client. I see. If nothing else is needed you are fine. :) -Michael --

Re: [Lazarus] New version of WebDesign available

2010-03-17 Thread Michael Schnell
On 03/17/2010 03:10 PM, Paul Breneman wrote: http://www.embeddedarm.com/products/board-detail.php?product=TS-TPC-7390 Nice ! The work I'm doing here is triggered by the need to use a very low power consuming processor PCB for this Delphi-program. This will be an ARM in the first intended

Re: [Lazarus] New version of WebDesign available

2010-03-17 Thread Michael Schnell
I suppose a major part of the Lazarus users are Windows converts, so the Lazarus team is in the same boat :) -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] windres: can't open manifest

2010-03-19 Thread Michael Schnell
I'll give it a try -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] windres: can't open manifest

2010-03-22 Thread Michael Schnell
On 03/17/2010 11:58 PM, Paul Ishenin wrote: You can use 2.4.0 prebuilt packages but there are some bugs with resources in 2.4.0 which was already fixes in the svn version. So you can install 2.4.0 and checkout an svn version. Then do make clean all, sudo make install. Depends on your linux you

Re: [Lazarus] windres: can't open manifest

2010-03-22 Thread Michael Schnell
On 03/17/2010 11:58 PM, Paul Ishenin wrote: Then do make clean all, sudo make install. Depends on your linux you need also to pass install directory (for make install) or fpc will be installed in /usr/local/lib After installing the fpc 2.4.0 RPM, doing fpc I get Free Pascal Compiler version

Re: [Lazarus] windres: can't open manifest

2010-03-22 Thread Michael Schnell
On 03/22/2010 04:48 PM, Vincent Snijders wrote: Michael Schnell schreef: I was not able to install fpc-src 2.4.0-1 from Sourceforge due to MD5-error. So I suppose Lazarus will not work out of the box, as same needs the FPC sources. From what mirror did you download? I'll check this. Anyway

Re: [Lazarus] windres: can't open manifest

2010-03-22 Thread Michael Schnell
Update: When I try to use rebuild only the LC (without packages) I get Can't find unit Interfaces used by Lazarus. Searching the Wiki -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Michael Schnell
On 03/23/2010 09:30 AM, Vincent Snijders wrote: Michael Schnell schreef: On 03/22/2010 04:48 PM, Vincent Snijders wrote: From what mirror did you download? ftp://fr2.rpmfind.net/linux/fedora/development/13/i386/os/Packages/ncurses-base-5.7-7.20100130.fc13.i686.rpm Is that bad in any way

Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Michael Schnell
On 03/17/2010 11:58 PM, Paul Ishenin wrote: Anyway, all that info is available in the wiki. Try to find it. In fact it was quite easy. I did not even need to check the Wiki. Just setting the appropriate paths in Environmet (and restarting Lazarus after that !! ) did the trick and I now can

[Lazarus] (how) is it possible to add a new Widget Type to Lazarus, using a Lazarus packet ?

2010-03-23 Thread Michael Schnell
I already asked this hidden in a another thread, but got no answer: (how) is it possible to add a new Widget Type to Lazarus using a Lazarus packet ? Thanks, -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] (how) is it possible to add a new Widget Type to Lazarus, using a Lazarus packet ?

2010-03-23 Thread Michael Schnell
On 03/23/2010 12:44 PM, Paul Ishenin wrote: This is not possible at the moment. That is really bad news :(. How to proceed ? I think a package can add a directory with files. I do know that I can add a New-xyzApplication Project Type by doing a Package. I suppose this Project Type can define

Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Michael Schnell
On 03/17/2010 11:58 PM, Paul Ishenin wrote: If I do a test in project options I get seven Warnings: WARNING: ppu exists twice: /usr/lib/fpc/2.4.0/units/i386-linux/httpd20/httpd.ppu, /usr/lib/fpc/2.4.0/units/i386-linux/httpd13/httpd.ppu WARNING: ppu exists twice:

Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Michael Schnell
On 03/23/2010 03:11 PM, Paul Ishenin wrote: please check your /etc/fpc.cfg and if exists .fpc.cfg It must to point to corrct fpc units. in /etc/fpc.cfg I see this: #IFDEF FPCAPACHE_1_3 -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd13/ #ELSE #IFDEF FPCAPACHE_2_0

Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Michael Schnell
On 03/23/2010 03:11 PM, Paul Ishenin wrote: Also check that your ppc386 symlink points to correct fpc version. Now I've got another very peculiar problem. I copied the ppc386 executable the fpc make created in the compiler directory to the directory the /usr/bin/ppc386 symlink points to

Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Michael Schnell
On 03/23/2010 04:18 PM, Paul Ishenin wrote: The best solution was to make install to the /usr/lib instead of default location. But I don't remember the arguments. it's make install INSTALL_PREFIX=/usr/bin seems to work ! Thanks! -Michael -- ___

Re: [Lazarus] windres: can't open manifest

2010-03-23 Thread Michael Schnell
It finally works. I now really get Free Pascal Compiler version 2.5.1 [2010/03/23] for i386 when I do fpc so I do have the compiler that is built from the svn. I rebuilt Lazarus and the LCL. But the problem now is that I can't step into LCL units with F7. Is it normal that doing rebuild LCL

Re: [Lazarus] windres: can't open manifest

2010-03-24 Thread Michael Schnell
On 03/24/2010 01:22 AM, Hans-Peter Diettrich wrote: That looks like a misplaced fpc source directory. The RPMs put fpc into /usr/lib/, the source erroneously into /usr/shared/. Right ! two different versions of FPC 2.4.0 were installed :(. Works now. Thanks ! -Michael --

Re: [Lazarus] windres: can't open manifest

2010-03-24 Thread Michael Schnell
On 03/23/2010 04:40 PM, Michael Schnell wrote: it's make install INSTALL_PREFIX=/usr/bin For the record, actually it is: make install INSTALL_PREFIX=/usr -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] windres: can't open manifest

2010-03-25 Thread Michael Schnell
On 03/24/2010 05:50 PM, Hans-Peter Diettrich wrote: Michael Schnell schrieb: That looks like a misplaced fpc source directory. The RPMs put fpc into /usr/lib/, the source erroneously into /usr/shared/. Right ! two different versions of FPC 2.4.0 were installed :(. Works now. Thanks ! Can

Re: [Lazarus] windres: can't open manifest

2010-03-26 Thread Michael Schnell
On 03/25/2010 12:12 PM, Vincent Snijders wrote: What happens if you execute the same command lines as I did in a console? What is the exact output? rpm -K fpc-2.4.0-1.src.rpm fpc-2.4.0-1.src.rpm: sha1 md5 OK md5sum fpc-2.4.0-1.src.rpm 2394ebb4ce81d6d16663ec4c5ac03313

Re: [Lazarus] windres: can't open manifest

2010-03-26 Thread Michael Schnell
On 03/25/2010 12:28 PM, Vincent Snijders wrote: Michael Schnell schreef: Seemingly on SUSE the FPC RPM uses a different install directory than the fpc make default. I feel that this is not a good idea. Moreover the Lazarus RPM is broken. Maybe this could be fixed

Re: [Lazarus] Ord of a UTF8 char

2010-03-29 Thread Michael Schnell
On 03/27/2010 06:05 AM, Antônio wrote: Ord('a') makes sense to the compiler, Ord('á') does not. Why? In the Unicode world a non-ASCII-character is not an 8 bit entity. So, with the current compiler version, (unexpectedly) a single quoted non-ASCII character is an UTF-8 coded string, while a

Re: [Lazarus] Ord of a UTF8 char

2010-03-29 Thread Michael Schnell
On 03/27/2010 07:24 PM, Antônio wrote: // What the meaning of s[i] at this position? Nothing that makes sense unless you want to deal with the internals of UTF-8 coding. IMHO you better use the appropriate RTL function to convert the string to a 32 bit Unicode string. Now you can do

Re: [Lazarus] A question about files managing

2010-03-29 Thread Michael Schnell
On 03/26/2010 02:58 PM, Andrew Brunner wrote: I always use copyfile and check the error and then delete the file if needed. This ensures that the file was actually copied. It's just better that way :-) *Renaming* a file to a different directory does not offer any risk (either the file is

[Lazarus] trying to use the standard NoGUI Widget Type

2010-03-29 Thread Michael Schnell
On Friday I) was able to create an application and change the Widget Type to NoGUI. I could Build the application at step to see what happens. I now upgraded Lazarus to the latest SVN revision to stay in sync with the proceedings (and did a clear and build all for Lazarus). After that I can't

Re: [Lazarus] trying to use the standard NoGUI Widget Type

2010-03-29 Thread Michael Schnell
On 03/29/2010 11:57 AM, Duncan Parsons wrote: Might not be relevant, depends on which OS you're using.. But you use two different capitalisations in your text here - on *nix based systems this will make a difference. No code done by myself is in use with this project, it's all coming from

Re: [Lazarus] trying to use the standard NoGUI Widget Type

2010-03-29 Thread Michael Schnell
rebuilding FPC and then Lazarus from scratch did the trick. Thanks, -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] (how) is it possible to add a new Widget Type to Lazarus, using a Lazarus packet ?

2010-03-30 Thread Michael Schnell
In fact I found that it's very easy to create and debug your own Widget Type. You just create a unit called interface and add it to the project. I suppose adding the directory to the path would suffice. (So, using a Lazarus Package, the application generator defined by same can be configured to

[Lazarus] Error when recompiling the svn revision 24483

2010-04-07 Thread Michael Schnell
I'm trying to recompile the latest Lazarus (using a quite recent FPC: version 2.5.1 [2010/03/29] for i386) Here I get: LCL completed Package Registration completed IDE Interface completed SynEdit completed Examples completed

Re: [Lazarus] Error when recompiling the svn revision 24483

2010-04-07 Thread Michael Schnell
On 04/07/2010 10:32 AM, Paul Ishenin wrote: Please update. Thanks, Works. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] New feature - View same source in multiple Windows

2010-04-09 Thread Michael Schnell
You can even move tabs between multiple code explorer Windows. GREAT ! -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] New feature - View same source in multiple Windows

2010-04-09 Thread Michael Schnell
On 04/08/2010 07:18 PM, Hans-Peter Diettrich wrote: Copy seems not to work on Linux, right now? It does not work here either: Suse 11.1- -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] New feature - View same source in multiple Windows

2010-04-09 Thread Michael Schnell
On 04/07/2010 08:41 PM, Martin wrote: You can now spread the open units across multiply Windows (Context-Menu Move to new Window). I suppose the cursor position can be different with the several instances of the same file. sounds good. (Might be feasible with multiple tabs for the same file, as

Re: [Lazarus] New feature - View same source in multiple Windows

2010-04-09 Thread Michael Schnell
On 04/07/2010 08:41 PM, Martin wrote: You can now spread the open units across multiply Windows (Context-Menu Move to new Window). I suppose the cursor position can be different with the several instances of the same file. sounds good. (Might be feasible with multiple tabs for the same file, as

Re: [Lazarus] New feature - View same source in multiple Windows

2010-04-09 Thread Michael Schnell
On 04/09/2010 09:22 AM, Michael Van Canneyt wrote: The top one, if it shows the source file. Otherwise the last created instance ? Sound nice. I asked because (with some older version) sometimes a new tab was created with the file already displayed in another tab. Seems top be fixed with a

Re: [Lazarus] New feature - View same source in multiple Windows

2010-04-09 Thread Michael Schnell
On 04/09/2010 12:22 PM, Martin wrote: GTK2 or QT? KDE 4 Does it work, if you MOVE another tab to a new window before (open a new window this way first), and then copy a tab (or drag?) How does it manifest exactly? Does the Window Open. does the tab show (empty or with something?)? Title

Re: [Lazarus] New feature - View same source in multiple Windows

2010-04-09 Thread Michael Schnell
On 04/09/2010 12:34 PM, Martin wrote: That must have been, when you still had to compile with -dSyndualView ? maybe this is what silly me did not do ;) -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] New feature - View same source in multiple Windows

2010-04-09 Thread Michael Schnell
On 04/09/2010 12:31 PM, Martin wrote: For each tab (of all tabs of a unique source code), the order of which one was last focused/active is remembered... Sounds great ! Thanks, -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Position of second Source editor Window not saved

2010-04-21 Thread Michael Schnell
In many situations (easily reproducible: when closing and restarting Lazarus), the position and size of the second source editor Window is reseted to some kind of default (e.g. it appears at the left of my two monitors). Thanks for listening, -Michael --

Re: [Lazarus] include fies in project

2010-04-21 Thread Michael Schnell
On 04/21/2010 09:41 AM, Mattias Gaertner wrote: Add the include file to the project. So the IDE checks for changes. Great ! Thanks. FPC checks include files automatically (contrary to Delphi). Even if the file that includes the modified file is not a project file (but the included one

Re: [Lazarus] include fies in project

2010-04-21 Thread Michael Schnell
On 04/21/2010 09:58 AM, Michael Van Canneyt wrote: If the include file is part of a unit that is needed by the compiler, the unit is recompiled. Nice ! A major advantage regarding Delphi :). -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Position of second Source editor Window not saved

2010-04-21 Thread Michael Schnell
On 04/21/2010 10:57 AM, Martin wrote: Go to the enviroment menu = options = enviroment = window. The 2nd window is on the bottom of the list. Ensure that Restore window geometry is selected. Great ! it works. I( did not suppose that this is a configurable option. Nonetheless, as all other

Re: [Lazarus] SendMessage Bug Work Around.

2010-04-23 Thread Michael Schnell
On 04/22/2010 06:34 PM, José Mejuto wrote: So, LCL.SendMessage is a compatibility layer that transform the windows message style in an operation over the current widgetset. In GTK a message like WM_SHOW will be converted in a sequence of GTK operations to show or hide a window/control. This

Re: [Lazarus] SendMessage Bug Work Around.

2010-04-23 Thread Michael Schnell
On 04/23/2010 11:58 AM, John vd Waeter wrote: AFAIK: In Windows PostMessage puts a message in the queue and returns immediately. SendMessage puts the message in the queue and returns with a result after the message has been handled. But I might be wrong... You might be right. Yet, I only

Re: [Lazarus] SendMessage Bug Work Around.

2010-04-23 Thread Michael Schnell
On 04/23/2010 01:20 PM, David W Noon wrote: SendMessage() places a message on a message queue and waits for a return code from the WndProc or DlgProc that processes the message; That is clear to me after I found that SendMessage returns a value taken from the receiving entity. But this seems

Re: [Lazarus] SendMessage Bug Work Around.

2010-04-23 Thread Michael Schnell
On 04/23/2010 02:29 PM, Duncan Parsons wrote: Yep - PostMessage is asynchronous communication, SendMessage is synchronous. A useful analogy would be Post as UDP, Send as TCP. As Lazarus does not provide any help on these RTL functions but the call parameters, the only available

Re: [Lazarus] SendMessage Bug Work Around.

2010-04-26 Thread Michael Schnell
On 04/23/2010 05:37 PM, Duncan Parsons wrote: Windows does 'something' with WM_COPYDATA such that the memory is shared between both processes, whether they be in the same application space or not. Interesting stuff ! Thanks, -Michael -- ___

Re: [Lazarus] SendMessage Bug Work Around.

2010-04-26 Thread Michael Schnell
On 04/23/2010 05:37 PM, Duncan Parsons wrote: Note in http://msdn.microsoft.com/en-us/library/ms644950(VS.85).aspx where it says 'The sending thread is blocked until the receiving thread processes the message. However, the sending thread will process incoming nonqueued messages while waiting

Re: [Lazarus] Anyone done any work with SMS (text messaging)?

2010-04-27 Thread Michael Schnell
Do you intent to (1) using attach a wireless modem via (1a) a (RS232-) serial interface or (1b) USB to the sending computer or do you intent to (2) use some site in the Internet that is accessed via (1a) E-Mail or (2b) HTTP. (1a): we did something like that but not with a PC and Pascal but with a

Re: [Lazarus] SendMessage Bug Work Around.

2010-04-27 Thread Michael Schnell
On 04/26/2010 06:45 PM, Sven Barth wrote: I don't know how big your interest is in this topic, but you might take a look at the source code of ReactOS. There you can see what's happening inside a SendMessage. Thanks. I'll not do this :) It's funny that the API documentation provided by

Re: [Lazarus] Anyone done any work with SMS (text messaging)?

2010-04-27 Thread Michael Schnell
On 04/27/2010 10:50 AM, Wildfire wrote: I'll be using a USB attached modem to send the SMS's direct. Ant this does work in Linux ? Great ! -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Anyone done any work with SMS (text messaging)?

2010-04-28 Thread Michael Schnell
On 04/28/2010 12:33 PM, Wildfire wrote: The AT command set for handling SMS can be found in the link below if it's of interest to you. http://www.cellular.co.za/sms_at_commands.htm As the first thing to so is make it accessible on the Linux box at all, the third party drivers for Linux need to

Re: [Lazarus] Lazarus make me create better apps

2010-05-06 Thread Michael Schnell
On 05/06/2010 10:29 AM, Florian Klaempfl wrote: Those two statements describe things very good: I started FPC in June 1993, ... July 2000 for version 1.0 Now we all hope for the due Lazarus 1.0 release :) :) :) -Michael -- ___ Lazarus

Re: [Lazarus] Lazarus make me create better apps

2010-05-06 Thread Michael Schnell
On 05/05/2010 06:29 PM, Razvan Adrian Bogdan wrote: The mobile world is now a perfect place for Lazarus to sink it's teeths into if it knows how to occupy this space where there is little competition on the RAD side of things. On the web part after many years of Java slows apps, PHP code that

Re: [Lazarus] Stand-alone (external) Form Designer?

2010-05-06 Thread Michael Schnell
Lazarus creates the forms and their content with pascal-generated code, as well in the design phase as when the program executes. The only difference is that when running in the design phase the component's code sees the designing flag set. It's just the same (pascal) code that runs. So there is

Re: [Lazarus] Lazarus make me create better apps

2010-05-06 Thread Michael Schnell
On 05/06/2010 01:34 PM, Michael Van Canneyt wrote: On Thu, 6 May 2010, Michael Schnell wrote: 1) new __functional__ GUI-less Widget Type As discussed many times before: You don't need a full-blown widget type for this. You simply need an event queue. That is exactly what I request

Re: [Lazarus] Suggestion: Remove GTK1 support from IDE and LCL.

2010-05-07 Thread Michael Schnell
BTW.: line numbers taken from svn version 25236 -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus make me create better apps

2010-05-07 Thread Michael Schnell
On 05/06/2010 11:35 AM, Graeme Geldenhuys wrote: I can list 1000's of programs that don't adhere to the OS theme. I don't even expect any new program I need to use to do that :). -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Lazarus make me create better apps

2010-05-07 Thread Michael Schnell
On 05/07/2010 01:29 PM, Razvan Adrian Bogdan wrote: Web programming in Lazarus/Delphi can be done in 3 ways: - Non persistent safe CGI, AKA doing a Command Line tool: Hard to debug with Lazarus. - Persistent building a module/plugin (not safe), or using FastCGI, SCGI or a small HTTP server

Re: [Lazarus] LCL messaging system SendMessage and Multi-Threads

2010-05-07 Thread Michael Schnell
On 05/07/2010 03:18 PM, Andrew Brunner wrote: Ok. I'm familiar with Synchronize methods but wasn't sure if they were actually executed via the Main Thread and could truly solve the GUI concerns (especially on Linux but even on OSX and Windows). That is what Synchronize has been invented

Re: [Lazarus] LCL messaging system SendMessage and Multi-Threads

2010-05-07 Thread Michael Schnell
On 05/07/2010 05:12 PM, Zaher Dirkey wrote:IMHO, PostMessage is decently implemented in the LCL, works fine and the documentation from the Windows API description applies, So I do use it. For SendMessage the documentation from the Windows API description does not apply and as there is no

Re: [Lazarus] LCL messaging system SendMessage and Multi-Threads

2010-05-07 Thread Michael Schnell
When I said that the Windows documentation of PostMessage can be used, I did not think of the description of the messages to be sent by PostMessage. Same might be Windows-specific and in the LCL not ported (or portable) to Linux Widget Types like GTK. Here I suppose a documentation is lacking and

Re: [Lazarus] Using fcl-xml with lcl and constant Utf8Encode/Decode conversion

2010-05-11 Thread Michael Schnell
On 05/10/2010 06:48 PM, Marco van de Voort wrote: Work has started on such feature in FPC (cpstrnew, base types for D2009 compatibility ), to be merged into 2.5.1 or even later, but nothing has been committed in the last 5 months. (Why) Has this (IMHO very important) project stopped ? I do

Re: [Lazarus] MAC Address on Linux

2010-05-11 Thread Michael Schnell
On 05/10/2010 09:58 PM, Leonardo M. Ramé wrote: I'm looking for this because I'm trying to implement a licensing system IMHO the only decent licensing system, that - is (quite) safe against abuse - does not impose a great possibility to unwillingly disallow a licensed customer to use the

Re: [Lazarus] Using fcl-xml with lcl and constant Utf8Encode/Decode conversion

2010-05-11 Thread Michael Schnell
On 05/10/2010 08:14 PM, Graeme Geldenhuys wrote: This reminds me, I still have some local commits of work I have done over December on the cpstrnew branch. I'll see if I can make some time this week and push those to SubVersion. Please let me know if you did this. Maybe I can help doing

Re: [Lazarus] MAC Address on Linux

2010-05-11 Thread Michael Schnell
On 05/11/2010 12:19 PM, Graeme Geldenhuys wrote: Many of them are public schools. If I would be a manager of a school, I would not use any non-open source software anyway. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] MAC Address on Linux

2010-05-11 Thread Michael Schnell
On 05/11/2010 12:55 PM, Henry Vermaak wrote: Please keep your opinion to yourself if it's not related to the topic :-) -Michel -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Using fcl-xml with lcl and constant Utf8Encode/Decode conversion

2010-05-11 Thread Michael Schnell
On 05/11/2010 12:14 PM, Graeme wrote: I can only speak for myself (but am sure others have similar stories).,,, I also consider the CodePage enabled String type a *very important feature* missing in FPC. So you assume that the other powers agree on this, too ? On the German Lazarus

Re: [Lazarus] Using fcl-xml with lcl and constant Utf8Encode/Decode conversion

2010-05-11 Thread Michael Schnell
On 05/11/2010 01:22 PM, Graeme Geldenhuys wrote: Hint: You can use Lazarus IDE to compile the compiler. Compiler project files (pp*.lpi) are in the fpc/compiler/ directory. You then use that new compiler to compile the RTL. Nice. As I recently tried it was easy to compile the compiler

Re: [Lazarus] MAC Address on Linux

2010-05-11 Thread Michael Schnell
On 05/10/2010 09:58 PM, Leonardo M. Ramé wrote: I'm looking for this because I'm trying to implement a licensing system It does not make much sense to use the MAC address for enforcing a license. The MAC address the card uses can be configured in the System setup to be any value desired. Even

Re: [Lazarus] Using fcl-xml with lcl and constant Utf8Encode/Decode conversion

2010-05-11 Thread Michael Schnell
On 05/11/2010 04:32 PM, Graeme Geldenhuys wrote: I struggled in the beginning as well. I had to create a build script and modify my fpc.cfg file to include the correct paths to run multiple FPC versions. Hmm. The trunk version does compile just fine. Here is my build script. I also

Re: [Lazarus] Using fcl-xml with lcl and constant Utf8Encode/Decode conversion

2010-05-11 Thread Michael Schnell
I suppose the script is for compiling the RTL rather than the compiler itself. I moved the fpc.cfg file into the cpstrnew directory besides the main Makefile. No change :(. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Using fcl-xml with lcl and constant Utf8Encode/Decode conversion

2010-05-12 Thread Michael Schnell
On 05/12/2010 10:56 AM, Graeme Geldenhuys wrote: What amazes me though is that MSEide has one single unit for GDB support. Lazarus has 6+ large units. Yet MSEide seems to have more GDB implemented features. Go figure! :) What hurts me especially in Lazarus is that there is no way to do

Re: [Lazarus] Using fcl-xml with lcl and constant Utf8Encode/Decode conversion

2010-05-12 Thread Michael Schnell
On 05/12/2010 12:36 AM, Graeme Geldenhuys wrote: I renamed the file for the email attachment. The fpc.cfg file should be in /etc/ if it must be global (and the filename stays as in the attachment), or as ~/.fpc.cfg if it's only meant for your user. Note the . in-front of the file name, I

Re: [Lazarus] StretchDraw and antialiasing in 0.9.28

2010-05-12 Thread Michael Schnell
On 05/12/2010 01:16 PM, Graeme Geldenhuys wrote: but maybe that algorithm could be coded as an interpolation class. A well know quite versatile resizing Algorithm is Lanczos (http://en.wikipedia.org/wiki/Lanczos_algorithm). I suppose you can find a lot implementations of same in source

Re: [Lazarus] Lazarus make me create better apps

2010-05-18 Thread Michael Schnell
On 05/17/2010 09:01 PM, Bee Jay wrote: Well... with pascal you got Lazarus or Delphi, VCL or LCL, and also both community. in fact for Pascal you can use (at least): - Delphi-IDE, Delphi Compiler, VCL (Windows only, but I recently learned that the latest version can compile for Linux) -

  1   2   3   4   5   6   7   8   9   10   >