Re: [fpc-devel] Lazarus: A new widgest set
On Friday 29 February 2008 14.16:18 Michael Schnell wrote: > In fact I still don't know what it really is. > > At home I monitored the newsgroup for a while and once same was > canceled, I thought the thing would be dead. (Like other Delphi related > project I monitored died: Kylix / Cross-Kylix / Cross FPC and I had the > impression that Lazarus would be collecting everyone remaining.) > The MSEide+MSEgui newsgroup: news://news.grid-sky.com/public.mseide-msegui.talk (more than 10'000 messages). You monitored probably the public.kylix.talk newsgroup and there I fond your post from 2006-01-09: " Martin Schreiber wrote: > There is another alternative to Delphi-Kylix: > > http://mypage.bluewin.ch/msegui/ > Downloaded and installed. Firsts tests Worked on the spot ! Even debugging (single stepping). I'll go on testing tomorrow. -Michael " ;-) > > Should I use Windows or Linux ? > Linux of course. > I'll take a look. > You are welcome. :-) Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
MSEide+MSEgui compiles with Delphi7 with exception of DB components and therefore the adjacent MSEifi DB components. It should be possible to patch FPC db.pas in order it can be compiled with Delphi. MSEide uses gdb as Lazarus does, gdb integration of MSEide is possible a little bit better than the Lazarus one (widestrings, dynamic arrays...). MSEide and Lazarus both suffer from gdb problems on win32. We don't need visual db components. So no problem here. No, VCL/LCL widgets and MSEgui widgets are incompatible. OK. That is understandable Is it easy to install and try the MSE IDE ? I can't believe it, you never tried MSEide+MSEgui? In fact I still don't know what it really is. At home I monitored the newsgroup for a while and once same was canceled, I thought the thing would be dead. (Like other Delphi related project I monitored died: Kylix / Cross-Kylix / Cross FPC and I had the impression that Lazarus would be collecting everyone remaining.) Installation instructions: http://www.homepage.bluewin.ch/msegui/ and in README.TXT in the distribution. For the ifipipe demo you need the SVN trunk version and the compiler option -dmse_with_ifi. Should I use Windows or Linux ? I'll take a look. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Friday 29 February 2008 11.27:47 Michael Schnell wrote: > > Sure, it is the purpose of MSEifi to connect client MSEgui objects and > > events with server events and data by the use of an universal client > > program. > > Sounds good. Let me elaborate a bit more: The program in question needs > to be ported from a a project running in Delphi. > > I do know how to port Delphi projects to Lazarus, and I do know how to > debug using Lazarus, but I have no idea how to port Delphi projects to > MSE and how to do debugging with MSE. Our programmers are trained on > Delphi and I do feel that they will be able to work with Lazarus quite > easily. > MSEide+MSEgui compiles with Delphi7 with exception of DB components and therefore the adjacent MSEifi DB components. It should be possible to patch FPC db.pas in order it can be compiled with Delphi. MSEide uses gdb as Lazarus does, gdb integration of MSEide is possible a little bit better than the Lazarus one (widestrings, dynamic arrays...). MSEide and Lazarus both suffer from gdb problems on win32. > I suppose you rather suggest to completely use MSE tools, but might it > be a viable option to do the project in Lazarus and use MSEifi nonetheless > ? > No, VCL/LCL widgets and MSEgui widgets are incompatible. > Is it easy to install and try the MSE IDE ? > I can't believe it, you never tried MSEide+MSEgui? Installation instructions: http://www.homepage.bluewin.ch/msegui/ and in README.TXT in the distribution. For the ifipipe demo you need the SVN trunk version and the compiler option -dmse_with_ifi. Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Sure, it is the purpose of MSEifi to connect client MSEgui objects and events with server events and data by the use of an universal client program. Sounds good. Let me elaborate a bit more: The program in question needs to be ported from a a project running in Delphi. I do know how to port Delphi projects to Lazarus, and I do know how to debug using Lazarus, but I have no idea how to port Delphi projects to MSE and how to do debugging with MSE. Our programmers are trained on Delphi and I do feel that they will be able to work with Lazarus quite easily. I suppose you rather suggest to completely use MSE tools, but might it be a viable option to do the project in Lazarus and use MSEifi nonetheless ? Is it easy to install and try the MSE IDE ? -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Friday 29 February 2008 10.49:11 Michael Schnell wrote: > > Before I knew about MSEifi I intended to attach the remote GUI on a > "per-control" base via a propriety protocol (e.g. using RemObjects). But > this would imply handling any program done that way individually, which > of course is not really desirable. Do you think MSEifi will help ? > Sure, it is the purpose of MSEifi to connect client MSEgui objects and events with server events and data by the use of an universal client program. > An additional consideration is to provide a miniature remote GUI for the > primary firmware (done in ANSI C) of the device in a way consistent with > the GUI planned for the future Pascal add-on. Do you think MSEifi will > help with that ? > I don't know. Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
It depends what effort you plan to invest into testing and debugging. ;-) Missing pieces: - Documentation. - SSL on win32. - Consistent error handling and error recovery. - Pascalscript import units for complete MSEgui. - MSEifi webbrowser plugin. - Some convenience tools in MSEide for MSEifi project handling. As I pointed out, we (on the long run) have to do two projects which include remote a GUI. (1) Server done in Delphi running on a dedicated PC, no chance to install any non-standard software on the "Terminal" or use any non-standard protocols (2) Server is an embedded device, software done in Free Pascal, there can be our software on the "Terminal", protocol: any kind of TCP/IP. I feel that MSEifi might help doing (2), as it needs software (at least a dll for the plugin) installed on the Terminal. So I suppose I don't need SSL, Pascalscript and a browser plugin. Regarding convenience tools: This project is not going to be started soon. It's an add-on for a Linux based embedded device that we are planning. First the hardware and the main function is to be crafted, this add-on will be the second step. And this step includes porting the Free Pascal compiler to the NIOS CPU (unless this is done by somebody else before we can start). Before I knew about MSEifi I intended to attach the remote GUI on a "per-control" base via a propriety protocol (e.g. using RemObjects). But this would imply handling any program done that way individually, which of course is not really desirable. Do you think MSEifi will help ? An additional consideration is to provide a miniature remote GUI for the primary firmware (done in ANSI C) of the device in a way consistent with the GUI planned for the future Pascal add-on. Do you think MSEifi will help with that ? MSEide is GPL, MSEgui and MSEifi use the same modified LGPL license as the FPC RTL. The code is on Sourceforge: http://sourceforge.net/svn/?group_id=165409 Sounds good ! During my investigations on open source software licenses I heard about some drawbacks when using LGPL code in embedded devices (it might be problematic to provide the requested support for the users to upgrade to a new version of the LGPL'ed libraries when statically linking, which is why sometimes it's recommended not to use the µCLinux version of glibc). But I do think this should be solvable, as I don't think it's intended by the FSF and the individual copyright holders to prevent the use of LGPL'ed code in embedded devices, only because they don't have an MMU and thus don't support .so's. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Friday 29 February 2008 09.32:23 Michael Schnell wrote: > This does work nicely ! > > Any chance to be able to use this in the foreseeable future ? > It depends what effort you plan to invest into testing and debugging. ;-) Missing pieces: - Documentation. - SSL on win32. - Consistent error handling and error recovery. - Pascalscript import units for complete MSEgui. - MSEifi webbrowser plugin. - Some convenience tools in MSEide for MSEifi project handling. > What kind of license do you intend to use ? (Sourcecode is a must for > us, of course.) > MSEide is GPL, MSEgui and MSEifi use the same modified LGPL license as the FPC RTL. The code is on Sourceforge: http://sourceforge.net/svn/?group_id=165409 Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
This does work nicely ! Any chance to be able to use this in the foreseeable future ? What kind of license do you intend to use ? (Sourcecode is a must for us, of course.) Thanks agian, -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
I made a demo of MSEifi with a server and a client connected by pipes. Win32 binaries: http://msedocumenting.svn.sourceforge.net/viewvc/msedocumenting/mse/trunk/help/tutorials/mseifi/ifipipedemo/bin/i386-win32/ifipipedemoclient.exe?view=log and http://msedocumenting.svn.sourceforge.net/viewvc/msedocumenting/mse/trunk/help/tutorials/mseifi/ifipipedemo/bin/i386-win32/ifipipedemoserver.exe?view=log Download ifipipedemoclient.exe and ifipipedemoserver.exe into , cd , run ifipipedemoclient.exe, click 'connect'. Screenshot: http://www.homepage.bluewin.ch/msegui/pics/mseifidemo.png Great thanks ! I'll take a look ASAP ! -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Tuesday 19 February 2008 16.55:16 Martin Schreiber wrote: > On Tuesday 19 February 2008 15.53:16 Michael Schnell wrote: > > > If you compile the SVN trunk version with -dmse_with_ifi you will get > > > the MSEifi components in the component palette. > > > > Of course I really would like to help beta-testing this. Unfortunately, > > due to a firewall jail I am working in, I can't access an SVN. > > You can't use opensource projects without SVN access, you must solve the > problem. > > > Have I been correct assuming that I can do a "secondary" GUI using > > MSE(-ifi), i.e. taking a normal (existing) Delphi or Lazarus program > > that does feature it's normal GUI and add some MSE code (and widget > > definitions) plus a transport channel and then I can create controls > > that are visible on the screen of the remote machine. Moreover when the > > remote user "clicks" a control that had bee defined in that way, an > > event should be triggered (in a thread > enable event driven programming in a thread> or in the main thread). > > Correct. I never tried a Delphi or Lazarus applications as server, I use > MSEgui or MSEnogui applications. > > > Have I been correct assuming that either a Pascal program or a browser > > plugin (is that Java code ?) can be used as a target of the transport > > channel, and both should show a user interface that had been defined by > > the master program ? > > Correct. The browser plugin doesn't exist up to now. I think it will be a > Pascal dll/so. > > > It would be great if you could send me an example (at best a windows > > exe, using http) and the browser plugin, so that I can see what MSE can > > do. > > I'll see what I can do but not in the next days. > I made a demo of MSEifi with a server and a client connected by pipes. Win32 binaries: http://msedocumenting.svn.sourceforge.net/viewvc/msedocumenting/mse/trunk/help/tutorials/mseifi/ifipipedemo/bin/i386-win32/ifipipedemoclient.exe?view=log and http://msedocumenting.svn.sourceforge.net/viewvc/msedocumenting/mse/trunk/help/tutorials/mseifi/ifipipedemo/bin/i386-win32/ifipipedemoserver.exe?view=log Download ifipipedemoclient.exe and ifipipedemoserver.exe into , cd , run ifipipedemoclient.exe, click 'connect'. Screenshot: http://www.homepage.bluewin.ch/msegui/pics/mseifidemo.png Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
At my work, http access is broken too, but https not, so try to use that. Thanks for the hint ! -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Michael Schnell schreef: You can't use opensource projects without SVN access, you must solve the problem. Some SNV systems can be configured to be used via an http proxy. I did try with Tortoise, but did not get this working. I might be able to make our *IT* open a port for a single SNV server it I really need it, but I'm sure I can't have much more. I suppose I need to access a µCLinux SNV some day. At my work, http access is broken too, but https not, so try to use that. Vincent ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
You can't use opensource projects without SVN access, you must solve the problem. Some SNV systems can be configured to be used via an http proxy. I did try with Tortoise, but did not get this working. I might be able to make our *IT* open a port for a single SNV server it I really need it, but I'm sure I can't have much more. I suppose I need to access a µCLinux SNV some day. Correct. I never tried a Delphi or Lazarus applications as server, I use MSEgui or MSEnogui applications. So it _can_ be used as a secondary GUI ! Great ! Correct. The browser plugin doesn't exist up to now. I think it will be a Pascal dll/so. Unfortunately our customers (i.e. their *IT*) does not allow installing any software on the user's PC. They need to access the software we provide and that runs on servers that we sell them via http - of course via a proxy. I don't know if "installing" a dll can be accomplished. Right now, due to the lack of any alternatives, our developers on that project consider using ASP.NET. I would see a solution that is similar to MSE but uses the controls the browser provides natively (linked to some Java code for the event handling) plus some that might be completely defined in Java (similar to what is done with AJAX). I'll see what I can do but not in the next days. Great ! Looking forward to this. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Tuesday 19 February 2008 15.53:16 Michael Schnell wrote: > > If you compile the SVN trunk version with -dmse_with_ifi you will get the > > MSEifi components in the component palette. > > Of course I really would like to help beta-testing this. Unfortunately, > due to a firewall jail I am working in, I can't access an SVN. > You can't use opensource projects without SVN access, you must solve the problem. > Have I been correct assuming that I can do a "secondary" GUI using > MSE(-ifi), i.e. taking a normal (existing) Delphi or Lazarus program > that does feature it's normal GUI and add some MSE code (and widget > definitions) plus a transport channel and then I can create controls > that are visible on the screen of the remote machine. Moreover when the > remote user "clicks" a control that had bee defined in that way, an > event should be triggered (in a thread enable event driven programming in a thread> or in the main thread). > Correct. I never tried a Delphi or Lazarus applications as server, I use MSEgui or MSEnogui applications. > Have I been correct assuming that either a Pascal program or a browser > plugin (is that Java code ?) can be used as a target of the transport > channel, and both should show a user interface that had been defined by > the master program ? > Correct. The browser plugin doesn't exist up to now. I think it will be a Pascal dll/so. > It would be great if you could send me an example (at best a windows > exe, using http) and the browser plugin, so that I can see what MSE can do. > I'll see what I can do but not in the next days. Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
As a pertinent aside here, I learned most of what I know about X from Niall Mansfield's book The Joy of X (Addison Wesley, 1993). Great overview, lots of good technical figures. Not an implementation guide, by any means, but it made the X system quite clear to me, even though I don't use it much. It's 15 years old now, but the basics of X haven't changed, and copies can still be found on the used book sites online, cheap. (~$3 US plus shipping.) --73-- --JD-- Michael Schnell wrote: To me it sounds more like an X like protocol with an X server as plugin. (but then on MSEGUI instead of X widget scale) I understand that when using X you need a widget set at the X-Client site and the X layer transports informations about the primitives the widget set translates the application's GUIcontrol-definitions in, while MSE transports the (supposedly somewhat limited) GUIcontrol-definitions to the viewer's site and the "widget set" (or whatever) is handled there (maybe the browser-defined "Web-Controls" are used as a widget set). Might be an interesting concept for the "additional GUI" we need here. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
MSEifi is still in experimental state. I have working examples but they are not intended for public yet. You are the first person who showed any interrest on MSEifi and its concepts. :-) OK, I am one of the few who are forced (and like to) invest in using Pascal (Delphi-language) in deeply embedded projects. If you compile the SVN trunk version with -dmse_with_ifi you will get the MSEifi components in the component palette. Of course I really would like to help beta-testing this. Unfortunately, due to a firewall jail I am working in, I can't access an SVN. Have I been correct assuming that I can do a "secondary" GUI using MSE(-ifi), i.e. taking a normal (existing) Delphi or Lazarus program that does feature it's normal GUI and add some MSE code (and widget definitions) plus a transport channel and then I can create controls that are visible on the screen of the remote machine. Moreover when the remote user "clicks" a control that had bee defined in that way, an event should be triggered (in a thread enable event driven programming in a thread> or in the main thread). Have I been correct assuming that either a Pascal program or a browser plugin (is that Java code ?) can be used as a target of the transport channel, and both should show a user interface that had been defined by the master program ? It would be great if you could send me an example (at best a windows exe, using http) and the browser plugin, so that I can see what MSE can do. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Tuesday 19 February 2008 11.13:13 Marco van de Voort wrote: > On Tue, Feb 19, 2008 at 09:57:43AM +0100, Michael Schnell wrote: > >> MSEifi is a system where MSEgui forms and Pascalscripts are transported > >> over a communication channel and run in a clientside "MSEgui" browser or > >> browser plugin. For the server side we need equivalent event handling as > >> at the GUI clientside. > > > > For another project we need to provide access to a Free Pascal or Delphi > > program via a browser (supposedly as a "secondary GUI"). Your statement > > sounds as if this would be quite easily possible with MSEgui. > > > > Is this really possible with MSEgui ? Do you have a working example that > > I can demonstrate to those of my colleagues who are planning this project > > ? > > To me it sounds more like an X like protocol with an X server as plugin. > > (but then on MSEGUI instead of X widget scale) The MSEifi server sends the form and datamodule definitions (the MSEgui equivalent of the Delphi *.dfm files) to the client. The client "MSEgui browser" creates the forms and datamodules and loads the transferred resources. There are components to connect client and server datasets, to exchange events and to link values of data edit widgets. There is a tform descendant (tscriptform) which links Pascalscript eventhandler with the event properties of the components on client side. MSEide has the ability to load the script property of tscriptform from the pascal unit file. So if you use scriptable code only, you can run an application local in compiled form or remote in a "MSEgui browser". Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Tuesday 19 February 2008 09.57:43 Michael Schnell wrote: > > MSEifi is a system where MSEgui forms and Pascalscripts are transported > > over a communication channel and run in a clientside "MSEgui" browser or > > browser plugin. For the server side we need equivalent event handling as > > at the GUI clientside. > > For another project we need to provide access to a Free Pascal or Delphi > program via a browser (supposedly as a "secondary GUI"). Your statement > sounds as if this would be quite easily possible with MSEgui. > > Is this really possible with MSEgui ? Do you have a working example that > I can demonstrate to those of my colleagues who are planning this project ? > MSEifi is still in experimental state. I have working examples but they are not intended for public yet. You are the first person who showed any interrest on MSEifi and its concepts. :-) If you compile the SVN trunk version with -dmse_with_ifi you will get the MSEifi components in the component palette. Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Tue, Feb 19, 2008 at 11:47:48AM +0100, Michael Schnell wrote: >> To me it sounds more like an X like protocol with an X server as plugin. >> >> (but then on MSEGUI instead of X widget scale) >> > I understand that when using X you need a widget set at the X-Client site > and the X layer transports informations about the primitives the widget set > translates the application's GUIcontrol-definitions in, while MSE > transports the (supposedly somewhat limited) GUIcontrol-definitions to the > viewer's site and the "widget set" (or whatever) is handled there (maybe > the browser-defined "Web-Controls" are used as a widget set). I still don't see a difference, except maybe in richness of the widget sets, (the native Xwidgets, afaik formally known as X intrinsics are a bit basic). ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
To me it sounds more like an X like protocol with an X server as plugin. (but then on MSEGUI instead of X widget scale) I understand that when using X you need a widget set at the X-Client site and the X layer transports informations about the primitives the widget set translates the application's GUIcontrol-definitions in, while MSE transports the (supposedly somewhat limited) GUIcontrol-definitions to the viewer's site and the "widget set" (or whatever) is handled there (maybe the browser-defined "Web-Controls" are used as a widget set). Might be an interesting concept for the "additional GUI" we need here. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Tue, Feb 19, 2008 at 09:57:43AM +0100, Michael Schnell wrote: > >> MSEifi is a system where MSEgui forms and Pascalscripts are transported >> over a communication channel and run in a clientside "MSEgui" browser or >> browser plugin. For the server side we need equivalent event handling as >> at the GUI clientside. >> > For another project we need to provide access to a Free Pascal or Delphi > program via a browser (supposedly as a "secondary GUI"). Your statement > sounds as if this would be quite easily possible with MSEgui. > > Is this really possible with MSEgui ? Do you have a working example that I > can demonstrate to those of my colleagues who are planning this project ? To me it sounds more like an X like protocol with an X server as plugin. (but then on MSEGUI instead of X widget scale) ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
MSEifi is a system where MSEgui forms and Pascalscripts are transported over a communication channel and run in a clientside "MSEgui" browser or browser plugin. For the server side we need equivalent event handling as at the GUI clientside. For another project we need to provide access to a Free Pascal or Delphi program via a browser (supposedly as a "secondary GUI"). Your statement sounds as if this would be quite easily possible with MSEgui. Is this really possible with MSEgui ? Do you have a working example that I can demonstrate to those of my colleagues who are planning this project ? -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
I'll definitively take a decent look ! Thanks again, -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Monday 18 February 2008 15.35:10 Michael Schnell wrote: > >> Can MSEgui be integrated with Lazarus ? Could it be installed as another > >> widgetset > > > > Not easy. Suggestion: use MSEide. > > As in the end I and my colleagues will be porting a Delphi application, > Lazarus is by far easier to use. > Why if it is a non gui project? MSEgui component hierarchy inherits from TComponent as Lazarus and Delphi do. If you don't use TControl you can do the development with MSEide, MSEide can handle TComponent descendents in datamodules (actually even better than Lazarus because design time inter-module component linking is supported). ;-) > I suppose it should be possible to use the appropriate MSEgui units in a > Lazarus project, which supposedly needs to be set up as a "program". > > Nonetheless it would be nice to have a nonGUI widgetset set in Lazarus > or be able to define an Application that in fact is a tnoguiapplication. > Maybe it is possible to reuse some code form MSEgui to allow for a > tnoguiapplication in Lazarus. Do you think it's possible to derive > tnoguiapplication from tcustomapplication in Lazarus ? > You mean TCustomApplication from FPC FCL? Sure, TCustomApplication does nothing in DoRun. Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
MSEifi is a system where MSEgui forms and Pascalscripts are transported over a communication channel and run in a clientside "MSEgui" browser or browser plugin. As in the end I in fact consider a "remote GUI" feature for the "non Gui" project I have in mind this might be a very interesting solution. For the server side we need equivalent event handling as at the GUI clientside. I understand that GUI-related and non GUI related (such as generated by TCP/IP socket, serial interface etc.) events are necessary to be handled. In LCL with the standard widgetsets the non-GUI events are transformed into pseudo-GUI events and queued in the external event queue provided by the windowing system. As MSE seems to avoid this by handling the events internally, which of course is exactly what I want. IIRC I told you several times about MSEgui. :-) I suppose I should take a decent look at MSEgui, which I did not do due to the "gui" part of the name ;). Can MSEgui be integrated with Lazarus ? Could it be installed as another widgetset Not easy. Suggestion: use MSEide. As in the end I and my colleagues will be porting a Delphi application, Lazarus is by far easier to use. I suppose it should be possible to use the appropriate MSEgui units in a Lazarus project, which supposedly needs to be set up as a "program". Nonetheless it would be nice to have a nonGUI widgetset set in Lazarus or be able to define an Application that in fact is a tnoguiapplication. Maybe it is possible to reuse some code form MSEgui to allow for a tnoguiapplication in Lazarus. Do you think it's possible to derive tnoguiapplication from tcustomapplication in Lazarus ? -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Monday 18 February 2008 13.25:49 Michael Schnell wrote: > > You probably know that MSEgui provides the possibility to build event > > driven applications without window system? We use it in MSEifi for Linux > > servers without X. > > Hmm. What I find in the Internet on MSEgui at the first sight seems in > fact to focus on a GUI and not on a non-GUI as I am trying to accomplish. > MSEifi is a system where MSEgui forms and Pascalscripts are transported over a communication channel and run in a clientside "MSEgui" browser or browser plugin. For the server side we need equivalent event handling as at the GUI clientside. > So at the moment I don't see your point. Could you elaborate how you > think that c an be done ? > tcustomapplication has two descendants, tapplication with a OS window system based eventqueue and tnoguiapplication with an internal event queue. If you have no widgets in your application and no graphics in your system add msenogui to the uses clause, msegui otherwise. MSEgui has many useful components and classes for non gui applications (example teventthread, tthreadcomp, tpipereader...). IIRC I told you several times about MSEgui. :-) > Can MSEgui be integrated with Lazarus ? Could it be installed as another > widgetset ? > Not easy. Suggestion: use MSEide. Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Monday 18 February 2008 13.12:06 Michael Schnell wrote: > > You probably know that MSEgui provides the possibility to build event > > driven applications without window system? We use it in MSEifi for Linux > > servers without X. > > No. I did not know MSEgui yet. > I'll try to find informations right now ! > http://sourceforge.net/projects/mseide-msegui You should use the SVN trunk version, there where some extensions in tnoguiapplication after release of MSEide+MSEgui 1.6. Questions and bug reports, NNTP: news://news.grid-sky.com/public.mseide-msegui.talk Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
You probably know that MSEgui provides the possibility to build event driven applications without window system? We use it in MSEifi for Linux servers without X. Hmm. What I find in the Internet on MSEgui at the first sight seems in fact to focus on a GUI and not on a non-GUI as I am trying to accomplish. So at the moment I don't see your point. Could you elaborate how you think that c an be done ? Can MSEgui be integrated with Lazarus ? Could it be installed as another widgetset ? -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
You probably know that MSEgui provides the possibility to build event driven applications without window system? We use it in MSEifi for Linux servers without X. No. I did not know MSEgui yet. I'll try to find informations right now ! Thanks for the hint, -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Monday 18 February 2008 10.18:38 Michael Schnell wrote: > > Sorry I misunderstood your first comment on that. Of course I do agree > that the choice of the noGUI widget set should only be provided in the > official distribution when it in fact works. I I should be able to make > this happen, it should be easily usable to create GUI-less event-driven > applications. > You probably know that MSEgui provides the possibility to build event driven applications without window system? We use it in MSEifi for Linux servers without X. Martin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Zitat von Michael Schnell <[EMAIL PROTECTED]>: > > > Just press Ctrl+Shift+F1 and the help context editor of the IDE opens, > where you > > can set the wiki page for every control of the current window. > Is there a standard procedure to suggest such links as a "patch" ? How to create a patch: http://wiki.lazarus.freepascal.org/Creating_A_Patch If you are unsure that the patch might be rejected, then ask on the lazarus list or the lazarus-ide IRC channel. Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
www.freepascal.org -> Download -> Go to the Snapshot paragraph -> development page -> Find your favorite snapshot. ... and no problem d/ling this via the firewall. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Can you explain why you could not find it? Sorry for being this ignorant. I did not try to find it as I did not suppose that it publicly viewable, being something that "the fpc team" seems to create it for their own use. Is snapshot an unfamiliar name and would "nightly build" be more clear to you on the download page? Of course "snapshot" is just fine ;) -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Michael Schnell schreef: AFAIK, some SVN systems automatically provide a ZIP file of the latest state as a "nightly build". So does the fpc team. But you cannot download them, because you are behind a firewall, so you cannot browse to the download location. Can you send me access informations ? I can d/l the nightly build from my home and bring it here on an USB stick. www.freepascal.org -> Download -> Go to the Snapshot paragraph -> development page -> Find your favorite snapshot. Can you explain why you could not find it? In what step didn't you know what to choose? Is snapshot an unfamiliar name and would "nightly build" be more clear to you on the download page? Vincent ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
AFAIK, some SVN systems automatically provide a ZIP file of the latest state as a "nightly build". So does the fpc team. But you cannot download them, because you are behind a firewall, so you cannot browse to the download location. Can you send me access informations ? I can d/l the nightly build from my home and bring it here on an USB stick. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Just press Ctrl+Shift+F1 and the help context editor of the IDE opens, where you can set the wiki page for every control of the current window. Is there a standard procedure to suggest such links as a "patch" ? -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
If there is a button, then the user expects, that the button actually does something useful and not that somewhere is written, that the feature is not yet implemented. Sorry I misunderstood your first comment on that. Of course I do agree that the choice of the noGUI widget set should only be provided in the official distribution when it in fact works. I I should be able to make this happen, it should be easily usable to create GUI-less event-driven applications. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Well, then start coding. :) Maybe I'll be able to do the widget thingy quite soon in some spare time. Of course porting PF to a new cross architecture will be the more demanding project. Right now I don't even have the hardware. Once I'm familiar with same and did the porting of a C-project that is supposed to be the first step with this architecture, I might start working on this to be able to port the already existing Delphi project to that architecture. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Once I got through this, I'll try to enhance the Wiki page. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Zitat von Michael Schnell <[EMAIL PROTECTED]>: > > > There are two widgetset setting because you can use two different > > widgetsets: design time / IDE and runtime / project. > > > I found that when changing the widget set at one of the pages it is > changed accordingly at the other page. So in effect there seems to be > only one setting. Both use as default the widgetset used for building the IDE. So when you rebuild the IDE with another widgetset and restart it, then yes, the default changes. Otherwise they are independent. > > I setup the 'nogui' widgetset. > What does this mean ? Did you just try my "diff" or did you add some > functionality > > But I'm not sure if the gain is big > > enough to add it as a standard widgetset to the laz sources. > Please see my post to Micha for an explanation of what I think this is > useful for. Once I might have a truly embedded target architecture for > FP (Linux/NIOS) the significance will be obvious. Well, then start coding. :) > > Every > > extra widgetset confuses users. > > > IMHO, that is just a problem of documentation. I disagree. If there is a button, then the user expects, that the button actually does something useful and not that somewhere is written, that the feature is not yet implemented. I'm thinking about either showing the button only when the IDE is compiled with a flag or to implement 'registering widgetsets via design time packages'. > Of course I'll write some > Docu for this once it in fact should be included in the standard > distribution. In fact I don't understand fpGUI right now (but it does > not confuse me at all). Maybe I should read the Docu on that one. IMHO > it's a pity that the menus in Lazarus don't have "Help" buttons that > link to the appropriate documentation or Wiki pages (similar as LCL > components do with F1), so that documentation on those topics can be > provided. Some dialogs have a Help button. They do the same as pressing F1. Just press F1 and the wiki page for the currently focused control is opened. Just press Ctrl+Shift+F1 and the help context editor of the IDE opens, where you can set the wiki page for every control of the current window. If you find an undocumented window or if you think that a control should have a wii entry of its own, then use this editor and create a svn patch. Patches are welcome. > I did try to understand the "CGIApplication" but failed to create a > testing example due to lack of Docu (and some bigs that I did report to > the bugtracker). Yes. But Michael has created an example in the mean time. > > Probably you forgot the Makefiles. > > > I'm sure you are right with that. I did modify two Makefile.fps's > accordingly. I suppose I additionally need to create a Makefile.fpc in > the new nogui directory. > > But I don't know how to create the Makefiles form these (supposedly > using fpcmake ???) See the new wiki page. Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Zitat von Michael Schnell <[EMAIL PROTECTED]>: > Some comments / questions: > > > "rebuild the IDE with the LCL. > > Does that mean just using "Tools -> Buid Lazarus", or should we use the > "Build"-Button in "Tools -> Configure Build Lazarus", with once or > multiple times with different options (e.g. "build LCL and build IDE, or > just "Build All") ? I meant: It is not sufficient to only rebuild the IDE. Maybe it is better to say: rebuild all lazarus parts. Feel free to improve this, so that a non laz devel understands it. > "fpmake" step > > I suppose this can be done in Windows as well yes > I do hope this does not rebuild the Free Pascal compiler (which I don't > suppose to be updated to using a new widgetset) Don't worry. fpmake is only the Free Pascal Makefile generator. >[...] > "Compile your new widgetset in the IDE" > > Does this mean > - go into "Tools -> Configure Build Lazarus" > - select "Build LCL" > - select the your new widget set as "Target" > - hit Build Target is only needed when cross compiling to other operating systems and/or processor types. I forgot: To use the new widgetset in the project you need to change the project / compiler options / widgetset. This is already mentioned several times in the wiki, but some things should be told again and again. Can you write the above in the wiki, so that a non lazarus devel understands it? Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
SVN (that uses http over port 80) Of course the firewall includes a forced proxy as well. I do know that the SVN is supposed to work through a proxy, but last time I tried I was unable to get this running. I suppose some feature of the proxy is used that is not correctly working with out proxy server. I you can point me to (hopefully updated) informations on how to set up the SVN, can d/l and reinstall the SVN client and try again. Thanks, -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
- Original Message - From: Michael Schnell <[EMAIL PROTECTED]> Date: Friday, February 15, 2008 1:22 pm Subject: Re: [fpc-devel] Lazarus: A new widgest set > > > How can you download the zip-file, if you cannot use SVN (that > uses http over port 80)? If svn is blocked, you cannot browse to > the downlocation either. > > > AFAIK, some SVN systems automatically provide a ZIP file of the > latest > state as a "nightly build". > So does the fpc team. But you cannot download them, because you are behind a firewall, so you cannot browse to the download location. Vincent ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
How can you download the zip-file, if you cannot use SVN (that uses http over port 80)? If svn is blocked, you cannot browse to the downlocation either. AFAIK, some SVN systems automatically provide a ZIP file of the latest state as a "nightly build". -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
> I don't have the Free Pascal compiler sources (yet) and (sitting > behind > a firewall) I can't access the RCS. Can these be downloaded as a > zipped > file ? How can you download the zip-file, if you cannot use SVN (that uses http over port 80)? If svn is blocked, you cannot browse to the downlocation either. Vincent ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Some comments / questions: "rebuild the IDE with the LCL. Does that mean just using "Tools -> Buid Lazarus", or should we use the "Build"-Button in "Tools -> Configure Build Lazarus", with once or multiple times with different options (e.g. "build LCL and build IDE, or just "Build All") ? "fpmake" step I suppose this can be done in Windows as well I do hope this does not rebuild the Free Pascal compiler (which I don't suppose to be updated to using a new widgetset) I don't have the Free Pascal compiler sources (yet) and (sitting behind a firewall) I can't access the RCS. Can these be downloaded as a zipped file ? "Compile your new widgetset in the IDE" Does this mean - go into "Tools -> Configure Build Lazarus" - select "Build LCL" - select the your new widget set as "Target" - hit Build - Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Done. Fast ! Great ! Thanks ! :) -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
There are two widgetset setting because you can use two different widgetsets: design time / IDE and runtime / project. I found that when changing the widget set at one of the pages it is changed accordingly at the other page. So in effect there seems to be only one setting. I setup the 'nogui' widgetset. What does this mean ? Did you just try my "diff" or did you add some functionality But I'm not sure if the gain is big enough to add it as a standard widgetset to the laz sources. Please see my post to Micha for an explanation of what I think this is useful for. Once I might have a truly embedded target architecture for FP (Linux/NIOS) the significance will be obvious. Every extra widgetset confuses users. IMHO, that is just a problem of documentation. Of course I'll write some Docu for this once it in fact should be included in the standard distribution. In fact I don't understand fpGUI right now (but it does not confuse me at all). Maybe I should read the Docu on that one. IMHO it's a pity that the menus in Lazarus don't have "Help" buttons that link to the appropriate documentation or Wiki pages (similar as LCL components do with F1), so that documentation on those topics can be provided. I did try to understand the "CGIApplication" but failed to create a testing example due to lack of Docu (and some bigs that I did report to the bugtracker). Probably you forgot the Makefiles. I'm sure you are right with that. I did modify two Makefile.fps's accordingly. I suppose I additionally need to create a Makefile.fpc in the new nogui directory. But I don't know how to create the Makefiles form these (supposedly using fpcmake ???) -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Fri, 15 Feb 2008 11:58:25 +0100 Michael Schnell <[EMAIL PROTECTED]> wrote: > > > I will write some info. > > > OK, so right now I will not try this with my very limited knowledge. Makefiles are for pascal programmers a strange thing. I'm crossing fingers, that the fp package system matures, so that lazarus can get rid of them. > Please let me know when I am supposed to take a look and/or to do any > additions. Done. Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
I will write some info. OK, so right now I will not try this with my very limited knowledge. Please let me know when I am supposed to take a look and/or to do any additions. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
What is your goal? Isn't the LCL a lot of "overhead" then? What features in the LCL do you want to use? Of course nearly nothing of the LCL is used in such applications, but as it's not compiled in the executable it does not harm. So why not work along the open source stuff that already exist and rely on Lazarus as an IDE. With this method you can use a Form (which supposedly is "downgraded" to be something that is visible only in designer mode - similar to a datamodule) as a container for things like lnet Moreover you can use an Application to develop and debug your code: - you create a unit that provides a component that holds your functionality (including things like lnet that could be visually placed on a non-primary form or datamodule) - you create a visible unit with a primary form that has all controls you like for testing. Here you use the other unit and do communication between the units with functions, properties and events - you do all development and testing needed. You can do this in Linux and in Windows with everything Lazarus provides right now. - You create another main unit that does not provide the testing controls but does reference the functionality unit. - You change the wigetset to "nonGUI" and create an executable for the embedded target -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Fri, 15 Feb 2008 11:39:06 +0100 [EMAIL PROTECTED] wrote: > > > From: Michael Schnell <[EMAIL PROTECTED]> > > Vincent Snijders wrote: > > > You have lot's of questions and the few hints I gave don't seem > > to be > > > enough. Maybe it is better if I try to find some time to write a > > wiki > > > article. I don't think this question - answer - question cycle is > > > getting us anywhere soon. > > AFAIK, Mattias did exactly the same as I am trying to accomplish > > when > > introducing the FPGUI. (Partly that is why I decided to try to use > > an > > additional wigetset instead of trying to establish an additional > > application type, as I intended first.) > > > > Sure, it is really easy. But instead having a bunch of mails in the > archives, this information is at a better place in the wiki. > > I started http://wiki.lazarus.freepascal.org/Adding_a_new_interface, > please add what you already did to it. You are the one doing it, so > you know best when something is missing. Then add it. I will write some info. Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Fri, 15 Feb 2008 10:25:11 +0100 Michael Schnell <[EMAIL PROTECTED]> wrote: > > > The IDE does not compile the LCL automatically, so the > > interfaces.ppu was not created. You can compile the new widgetset > > with 'configure build lazarus'. > > > I just tried to do "clean up and build all" in 'configure build > Lazarus'. This seems to have no different effect. > > In two locations in 'configure build Lazarus' a widget set can be > selected, but to me it seems that this setting influences the way the > Lazarus executables are built so that their GUI is using this widget > set (I don't understand why there are -two_locations, though). This > is why I don't dare to set it: the result will not work. > > I suppose when one of the settings is meant to define the widget sets > that are available to be selected for the target architecture, there > should be multiple checkboxes and not just a single selection. > > Which of the two widgetset selections in 'configure build Lazarus' > should I use (if any). There are two widgetset setting because you can use two different widgetsets: design time / IDE and runtime / project. I setup the 'nogui' widgetset. But I'm not sure if the gain is big enough to add it as a standard widgetset to the laz sources. Every extra widgetset confuses users. Probably you forgot the Makefiles. Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
From: Michael Schnell <[EMAIL PROTECTED]> > Vincent Snijders wrote: > > You have lot's of questions and the few hints I gave don't seem > to be > > enough. Maybe it is better if I try to find some time to write a > wiki > > article. I don't think this question - answer - question cycle is > > getting us anywhere soon. > AFAIK, Mattias did exactly the same as I am trying to accomplish > when > introducing the FPGUI. (Partly that is why I decided to try to use > an > additional wigetset instead of trying to establish an additional > application type, as I intended first.) > Sure, it is really easy. But instead having a bunch of mails in the archives, this information is at a better place in the wiki. I started http://wiki.lazarus.freepascal.org/Adding_a_new_interface, please add what you already did to it. You are the one doing it, so you know best when something is missing. Then add it. Vincent ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Michael Schnell wrote: I want to use FP in a Linux environment that does not have a GUI. So a very restricted peudo-widget-set is needed just just handles the message queue. I suppose at best I do the message queue with pascal means (e.g. What is your goal? Isn't the LCL a lot of "overhead" then? What features in the LCL do you want to use? Micha ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Vincent Snijders wrote: You have lot's of questions and the few hints I gave don't seem to be enough. Maybe it is better if I try to find some time to write a wiki article. I don't think this question - answer - question cycle is getting us anywhere soon. AFAIK, Mattias did exactly the same as I am trying to accomplish when introducing the FPGUI. (Partly that is why I decided to try to use an additional wigetset instead of trying to establish an additional application type, as I intended first.) Thanks anyway. -Michael (Please let me know if/when you get ready with a Wiki page.) ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
You have lot's of questions and the few hints I gave don't seem to be enough. Maybe it is better if I try to find some time to write a wiki article. I don't think this question - answer - question cycle is getting us anywhere soon. Vincent ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
No. You have to edit the Makefile.fpc with a text editor. Add the new directory to the [Targets] dir key. Ok. No problem. Additionally I added a line for the nogui directory in the "cleanlaz" section of the /lcl/Makefile.fpc Then regenerate the Makefile using fpcmake Does that mean I need do rebuild the fpc compiler and not only rebuild Lazarus and reconfigure the LCL ? I'd not really like to do this right now (I'll certainly do it at a later time as I want to add a new processor architecture then) (see docs for more information). What docs are you speaking of ? Thanks, -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Michael Schnell schreef: What is missing is the adaption of the the Makefile.fpc (and the generated Makefile) in lazarus/lcl/interfaces Do you suggest that the appropriate makefiles are generated when "building the LCL with that widgetset" using the "Configure Build Lazarus" box ? No. You have to edit the Makefile.fpc with a text editor. Add the new directory to the [Targets] dir key. Then regenerate the Makefile using fpcmake (see docs for more information). Vincent ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
I tried doing a "Build LCL" in "Configure Build Lazarus" with the new widget set selected. This was performed in just a few mSecs and the output from make was only a single line showing something like "leaving directory" . This did not change anything. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Did you actually compile that interfaces.pp, it is not compiled automatically, but only if you build the LCL with that widgetset. Supposedly I did not. I'll try to understand the "Configure Build Lazarus" options. maybe same can be used to "build the LCL with that widgetset". What is missing is the adaption of the the Makefile.fpc (and the generated Makefile) in lazarus/lcl/interfaces Do you suggest that the appropriate makefiles are generated when "building the LCL with that widgetset" using the "Configure Build Lazarus" box ? Thanks, -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
The IDE does not compile the LCL automatically, so the interfaces.ppu was not created. You can compile the new widgetset with 'configure build lazarus'. I just tried to do "clean up and build all" in 'configure build Lazarus'. This seems to have no different effect. In two locations in 'configure build Lazarus' a widget set can be selected, but to me it seems that this setting influences the way the Lazarus executables are built so that their GUI is using this widget set (I don't understand why there are -two_locations, though). This is why I don't dare to set it: the result will not work. I suppose when one of the settings is meant to define the widget sets that are available to be selected for the target architecture, there should be multiple checkboxes and not just a single selection. Which of the two widgetset selections in 'configure build Lazarus' should I use (if any). -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On Fri, 15 Feb 2008 09:34:39 +0100 Michael Schnell <[EMAIL PROTECTED]> wrote: > > > Can you send me the patch so far? > I'm (still) not familiar with diff / patch files, but it's really > such a tiny difference that I easily can tell it in English ( :) ): > > in ide/lazconf.pp I added at the end of line 56 > , 'nogui' > > and at the end of line 59 > , 'noGUI' > > > accordingly in /lcl/interfacebase.pp line 65 I added > , lpnoGUI > > > moreover I created directories lcl/interfaces/nogui and > lcl/units/i386-win32/nogui (doing the first test in WinXP) > for a test i copied interfaces.pp from lcl/interfaces/win32 into > lcl/interfaces/nogui > > With that I can select noGUI as a new widgetset (right below fpGUI) > in the project-options -> compile settings. > > When compiling a simple project I get "unit interfaces not found". > obviously the new directory lcl/interfaces/nogui is not acknowledged > due to a cause I can't detect. This is not obvious to me. > I would have expected compile errors > when actually compiling lcl/interfaces/nogui/interfaces.pp. > > Then I can take look. The IDE does not compile the LCL automatically, so the interfaces.ppu was not created. You can compile the new widgetset with 'configure build lazarus'. Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Michael Schnell schreef: moreover I created directories lcl/interfaces/nogui and lcl/units/i386-win32/nogui (doing the first test in WinXP) for a test i copied interfaces.pp from lcl/interfaces/win32 into lcl/interfaces/nogui With that I can select noGUI as a new widgetset (right below fpGUI) in the project-options -> compile settings. When compiling a simple project I get "unit interfaces not found". obviously the new directory lcl/interfaces/nogui is not acknowledged due to a cause I can't detect. I would have expected compile errors when actually compiling lcl/interfaces/nogui/interfaces.pp. Did you actually compile that interfaces.pp, it is not compiled automatically, but only if you build the LCL with that widgetset. What is missing is the adaption of the the Makefile.fpc (and the generated Makefile) in lazarus/lcl/interfaces Vincent ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Can you send me the patch so far? I'm (still) not familiar with diff / patch files, but it's really such a tiny difference that I easily can tell it in English ( :) ): in ide/lazconf.pp I added at the end of line 56 , 'nogui' and at the end of line 59 , 'noGUI' accordingly in /lcl/interfacebase.pp line 65 I added , lpnoGUI moreover I created directories lcl/interfaces/nogui and lcl/units/i386-win32/nogui (doing the first test in WinXP) for a test i copied interfaces.pp from lcl/interfaces/win32 into lcl/interfaces/nogui With that I can select noGUI as a new widgetset (right below fpGUI) in the project-options -> compile settings. When compiling a simple project I get "unit interfaces not found". obviously the new directory lcl/interfaces/nogui is not acknowledged due to a cause I can't detect. I would have expected compile errors when actually compiling lcl/interfaces/nogui/interfaces.pp. Then I can take look. Thanks a lot ! -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Zitat von Michael Schnell <[EMAIL PROTECTED]>: > > > There are some information about the widgetsets in lazconf.pp, > > definetemplates.pas and the Makefiles. > > > Sorry, I don't find any information on how to make the compiler aware of > the newly created directory with the "directory"-name given in > lazconf.pp where interfaces.pp is to be found. Can you send me the patch so far? Then I can take look. Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
There are some information about the widgetsets in lazconf.pp, definetemplates.pas and the Makefiles. Sorry, I don't find any information on how to make the compiler aware of the newly created directory with the "directory"-name given in lazconf.pp where interfaces.pp is to be found. Thanks for further hints, -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
There are some information about the widgetsets in lazconf.pp, definetemplates.pas and the Makefiles. I'll take a look. Maybe you can give me some information about the new widgetset. I want to use FP in a Linux environment that does not have a GUI. So a very restricted peudo-widget-set is needed just just handles the message queue. I suppose at best I do the message queue with pascal means (e.g. a linked list, like the second queue in the gtk widget set) and do the waiting mechanism with a semaphore (similar to the base of TCriticalSection). Thanks ! -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
is it a custom written (Object Pascal) widget set, or a compatibility layer for some other widget set? I want to use FP in a Linux environment that does not have a GUI. So a very restricted peudo-widget-set is needed just just handles the message queue. I suppose at best I do the message queue with pascal means (e.g. a linked list, like the second queue in the gtk widget set) and do the waiting mechanism with a semaphore (similar to the base of TCriticalSection). -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
Zitat von Michael Schnell <[EMAIL PROTECTED]>: > I know this is not the Lazarus developers list but I also know that the > experts are here, so I ask here and maybe I just need a hint to get going. > > For a special purpose (maybe to released publicly later) I want to > create a new widget set in Lazarus. > > I could easily add the new Name and directory to the lazconf.pp file and > recompile Lazarus. > > Now I can select the new widget set in compiler options. > > I created an appropriate directory under "interfaces" and for a first > test just moved interfaces.pp file in there. > > I hoped that this directory would be used and I would get a compiler > message from compiling the dummy interface.pp file. > > But I just get "can't find unit interfaces". So seemingly the directory > is not scanned. > > Does anybody know the additional implications to meet when adding a new > widget set ? There are some information about the widgetsets in lazconf.pp, definetemplates.pas and the Makefiles. Maybe you can give me some information about the new widgetset. Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Lazarus: A new widgest set
On 14/02/2008, Michael Schnell <[EMAIL PROTECTED]> wrote: > I know this is not the Lazarus developers list but I also know that the > experts are here, so I ask here and maybe I just need a hint to get going. Just curious... is it a custom written (Object Pascal) widget set, or a compatibility layer for some other widget set? > > Does anybody know the additional implications to meet when adding a new > widget set ? Best is to ask Mattias. He did it for fpGUI. From what I can remember, you had to also edit the search paths used by CodeTools in Lazarus. It must be done in code, but you can have a look at the paths define via: Environment | CodeTools defines editor | Lazarus sources | Lazarus source directory | LCL | Interfaces I hope it's of help to you...I'm no Lazarus expert though. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel