Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-02

(no subject)

34 messages · 13 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter Williams

Hi Vincent & Ann,
I have finished as much work as I can on the Form2Html project for Lazarus. Could Vincent please contact me and I will send you a copy of the zipped code for Lazarus (171 KB). This code is to be included into the Lazarus component repositories.

Ann F2H has now been released under Creative Commons Share-Alike license, the very brief and very clear terms of which are here:>http://creativecommons.org/licenses/by-sa/3.0/

Best Regards,Peter E Williams

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110226/f385828a/attachment-0001.html>

Reply by email

Vincent Snijders
to Peter Williams

2011/2/25 Peter Williams :

Show quoted text 5 lines
Hi Vincent & Ann, I have finished as much work as I can on the Form2Html project for Lazarus. Could Vincent please contact me and I will send you a copy of the zipped code for Lazarus (171 KB). This code is to be included into the Lazarus component repositories.

Create a wiki page for your component as explained here: http://wiki.lazarus.freepascal.org/Code_Conversion_Guide#Creating_a_Code_Release_Page

Then you can send me (a link to) a source zip.

Vincent

Reply by email

Peter Williams
to Vincent Snijders

Hi Vincent,

Show quoted text 16 lines
Date: Fri, 25 Feb 2011 21:23:37 +0100 From: To: Subject: Re: [Lazarus] (no subject) 2011/2/25 Peter Williams : > Hi Vincent & Ann, > I have finished as much work as I can on the Form2Html project for Lazarus. > Could Vincent please contact me and I will send you a copy of the zipped > code for Lazarus (171 KB). > This code is to be included into the Lazarus component repositories. Create a wiki page for your component as explained here: http://wiki.lazarus.freepascal.org/Code_Conversion_Guide#Creating_a_Code_Release_Page Then you can send me (a link to) a source zip.

I have created an new entry for it here:
http://wiki.lazarus.freepascal.org/Delphi_Form_to_HTLM_converter Actually that is a typo in the title: it should read "Delphi Form to HTML converter" ... can you please edit this?, thanks. Where is the best location for me to upload the zip file of the source code to? Please tell me the URL.

Vincent

Pew :-)

Show quoted text 5 lines
-- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110226/d59e52ef/attachment.html>

Reply by email

Unknown author
to Michael Schnell
Michael Schnell wrote 5 lines
Looks nice, On the long run can/should/will this be enhanced to be a HTML-Widget-Type, that allows for creating a browser GUI for Lazarus applications ?

No.

It follows a wrong approach. It's nice for a quick&dirty conversion, but not suitable for a long-term design solution.

Michael.

Reply by email

Felipe Monteiro de Carvalho
to Unknown author: No. It follows a wrong approach. It's nice for a quick&dirty conversion, but not suitable…
It follows a wrong approach. It's nice for a quick&dirty conversion, but not suitable for a long-term design solution.

I think a IntraWeb equivalent for Lazarus would be very useful for many projects where cheap and fast development is more important then the performance of the final result. Not every website receives millions of hits per day.

Having said that, I personally don't have time to invest in a intraweb widgetset for Lazarus, but patches are welcome.

Felipe Monteiro de Carvalho

Reply by email

Michael Van Canneyt
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 8 lines
On Mon, Feb 28, 2011 at 10:28 AM, wrote: > It follows a wrong approach. It's nice for a quick&dirty conversion, > but not suitable for a long-term design solution. I think a IntraWeb equivalent for Lazarus would be very useful for many projects where cheap and fast development is more important then the performance of the final result. Not every website receives millions of hits per day.

The main point is not in performance (although I think that is also a point to consider).

The point is that with this approach, a GUI is still needed on the server to create the GUI forms (which are then transformed to HTML). It is the same problem as Lazreport. Lazreport needs a GUI, when a reporting engine does not need a just needs a canvas. The report designer needs a GUI, but not the report itself. But lazreport needs a GUI in it's deepest core, and therefore is not suitable in webenvironments.

I am working on alternatives for this - I am even in discussion with someone to start a group to work on my design - but such things take time if you want to do it right. And I want to do it right - not these quick&dirty hacks.

Michael.

Reply by email

Felipe Monteiro de Carvalho
to Michael Van Canneyt
Michael Van Canneyt wrote
The point is that with this approach, a GUI is still needed on the server to create the GUI forms (which are then transformed to HTML).

I think you are not picturing the same architecture as I. In my idea there would be a new widgetset in Lazarus, called for example "web" and it would implement converting the LCL object structure to HTML. There would be no GUI code, because it would be completely separted from other widgetsets, like gtk.

Felipe Monteiro de Carvalho

Reply by email

Michael Van Canneyt
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 10 lines
On Mon, Feb 28, 2011 at 11:06 AM, Michael Van Canneyt wrote: > The point is that with this approach, a GUI is still needed on the server to > create the GUI forms (which are then transformed to HTML). I think you are not picturing the same architecture as I. In my idea there would be a new widgetset in Lazarus, called for example "web" and it would implement converting the LCL object structure to HTML. There would be no GUI code, because it would be completely separted from other widgetsets, like gtk.

Indeed. I misunderstood your idea.

I'm afraid that for your goal, this converter code is not really suitable.

Michael.

Reply by email

Michael Schnell
to Felipe Monteiro de Carvalho: On Mon, Feb 28, 2011 at 11:06 AM, Michael Van Canneyt I think you are not picturing the…
Felipe Monteiro de Carvalho wrote 6 lines
In my idea there would be a new widgetset in Lazarus, called for example "web" and it would implement converting the LCL object structure to HTML. There would be no GUI code, because it would be completely separted from other widgetsets, like gtk.

While IMHO this would be very good to have, this seems like a huge work to do.

1) Creating and dynamically modifying the GUI in the browser:

The Widget type design is: at designtime streaming the visual "published" properties of the Forms and their objects into a resource and on runtime create them when appropriate. As the design is done using a standard GUI, the "standard" properties will be stored. At runtime, the "remote browser GUI widget Type" component would need to create in the browser a look and work alike as the originally designed GUI. IMOH this only is possible using Java script (such as EXTJS).

To do this, I feel that appropriate identifiers (type-, instance- , and property- numbers) would need to be assigned to all objects, to allow for a decently formalized communication between the pascal and the JS code.

Of course modifying visual properties after creation of an object would work in the same way.

2) GUI-events:

I don't think that using the standard HTML components' "events" would be useful. Some java script code would need to notify the pascal code of the user's input.

3) Non-GUI events:

Of course timers, inter-process events (e.g. TThread.Synchronize) etc would need to be working. As those traditionally are implemented in the GUI-handling code, here a GUI-free implementation needs to be done from scratch.

4) Asynchronous Events toward the GUI.

Of course e.g. Timer- and other main-thread-events need to be able to modify the GUI in the browser. I suppose this is the hardest part, as HTTP does not allow for this direction of communication. So some kind of "advanced polling" needs to be implemented (e.g. based on "Comet" technology, that I was informed to have some caveats).

-Michael

Reply by email

Marcos Douglas
to Felipe Monteiro de Carvalho: On Mon, Feb 28, 2011 at 11:06 AM, Michael Van Canneyt I think you are not picturing the…
Felipe Monteiro de Carvalho wrote 10 lines
On Mon, Feb 28, 2011 at 11:06 AM, Michael Van Canneyt wrote: > The point is that with this approach, a GUI is still needed on the server to > create the GUI forms (which are then transformed to HTML). I think you are not picturing the same architecture as I. In my idea there would be a new widgetset in Lazarus, called for example "web" and it would implement converting the LCL object structure to HTML. There would be no GUI code, because it would be completely separted from other widgetsets, like gtk.

Like ExtPascal, but with a GUI editor...

Marcos Douglas

Reply by email

Unknown author
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 6 lines
Michael Van Canneyt schrieb: > same problem as Lazreport. Lazreport needs a GUI, when a reporting engine > does not need a just needs a canvas. A useful extension of the noGUI widgetset?

No. It's a design flaw. Understandable, but a flaw nevertheless.

Have a look at Jasper reports or so. These things are built completely without reference to a GUI. Or even the RDF from Microsoft (of all companies).

Michael.

Reply by email

Hans-Peter Diettrich
to Unknown author
Show quoted text 6 lines
>> same problem as Lazreport. Lazreport needs a GUI, when a reporting >> engine does not need a just needs a canvas. > > A useful extension of the noGUI widgetset? No. It's a design flaw.

What's a design flaw? When an application needs a canvas?

DoDi

Reply by email

Unknown author
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 10 lines
schrieb: >>> same problem as Lazreport. Lazreport needs a GUI, when a reporting engine >>> does not need a just needs a canvas. >> >> A useful extension of the noGUI widgetset? > > No. It's a design flaw. What's a design flaw? When an application needs a canvas?

No. When it is designed around a complete GUI if all it needs is a canvas.

Michael.

Reply by email

Michael Van Canneyt
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 6 lines
On Mon, Feb 28, 2011 at 11:54 PM, Hans-Peter Diettrich wrote: > What's a design flaw? When an application needs a canvas? Michael means that the reporting engine could output to TFPCustomCanvas which is part of the FCL

That is one option, yes.

It could also output XML with the complete description of the final page layout:

<page number=1 height=29.4 width=21.1>
<text top=2 left=2 width=10 height=0.8 text="Title of the report" font="Arial;Height=10">

   // ... etc.

</page>

The XML can then be transferred to any canvas you care to implement: previewer (GUI) , PDF, image, printer...

This is the heart of the reporting engine I already partially implemented. (The XML is just a representation of the in-memory structure of the report)

Michael.

Reply by email

Andrey Veliks
to Marcos Douglas: On Mon, Feb 28, 2011 at 7:09 AM, Felipe Monteiro de Carvalho Like ExtPascal, but with a…

more like this one www.morfik.com (as idea)

On Mon, Feb 28, 2011 at 7:09 AM, Felipe Monteiro de Carvalho

Show quoted text 8 lines
wrote: Like ExtPascal, but with a GUI editor... Marcos Douglas --

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110301/34acda56/attachment.html>

Reply by email

Michael Van Canneyt
to Andrey Veliks

Something like Morfik is what I want to get to :)

Michael.

Andrey Veliks wrote 16 lines
more like this one www.morfik.com (as idea) On Mon, Feb 28, 2011 at 7:09 AM, Felipe Monteiro de Carvalho wrote: Like ExtPascal, but with a GUI editor... Marcos Douglas --

Reply by email

Lukasz Sokol
to Michael Schnell
Michael Schnell wrote 8 lines
On 03/01/2011 09:32 PM, Andrey Veliks wrote: > www.morfik.com Using Firefox, I see nothing but three small, differently colored, blinking stripes. Is this normal ? -Michael

Works for me, FF 3.6.13.
First shows the three stripes, then loads page (after about 10-20 sec).

Lukasz

Reply by email

Graeme Geldenhuys
to Lukasz Sokol

Op 2011-03-02 11:48, Lukasz Sokol het geskryf:

> Works for me, FF 3.6.13. First shows the three stripes, then loads page (after about 10-20 sec).

Me too, but Firefox 4.0b9. I guess that's a great advert for Morfik's performance! ;-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Unknown author
to Graeme Geldenhuys
Graeme Geldenhuys wrote 8 lines
Op 2011-03-02 11:48, Lukasz Sokol het geskryf: >> > Works for me, FF 3.6.13. > First shows the three stripes, then loads page (after about 10-20 sec). Me too, but Firefox 4.0b9. I guess that's a great advert for Morfik's performance! ;-)

The performance of Morfik is not the issue. If you load the pages with Firebug enabled, you'll see that a lot of requests are made to other sites as well. munchkin.marketing.net and images.socialtwist.com took 10 seconds to load...

That said, the total number of requests to load the page was well over 80. This is simply too much. Unfortunately any technology can be abused...

Michael.

Reply by email

Michael Schnell
to Lukasz Sokol: Works for me, FF 3.6.13. First shows the three stripes, then loads page (after about…
Lukasz Sokol wrote
Works for me, FF 3.6.13. First shows the three stripes, then loads page (after about 10-20 sec).

Not for me :(

The Firefox Error console shows:

Error: mktoMunchkin is not defined
Source File: http://www.morfik.com/
Line: 33

Error: mktoMunchkinFunction is not defined
Source File:
http://www.morfik.com/MorfikSite.js?cls=code&sid=&xid={8814D365-DF14-4209-B8D9-1C06E3F7333A} Line: 2500

-Michael

Reply by email

Michael Schnell
to Michael Schnell
Michael Schnell wrote 6 lines
On 03/02/2011 10:48 AM, Lukasz Sokol wrote: > > Works for me, FF 3.6.13. > First shows the three stripes, then loads page (after about 10-20 sec). Not for me :(

P.S.:
FF 3.6.13 on Suse Linux 11.3

Can this be a Proxy issue ?

-Michael

Reply by email

Unknown author
to Michael Schnell: P.S.: FF 3.6.13 on Suse Linux 11.3 Can this be a Proxy issue ? -Michael
Michael Schnell wrote 11 lines
On 03/02/2011 11:47 AM, Michael Schnell wrote: > On 03/02/2011 10:48 AM, Lukasz Sokol wrote: >> >> Works for me, FF 3.6.13. >> First shows the three stripes, then loads page (after about 10-20 sec). > Not for me :( > P.S.: FF 3.6.13 on Suse Linux 11.3 Can this be a Proxy issue ?

It can be many things. I use the same firefox on Ubuntu, and here it works. Make sure Javascript is enabled.

Michael.

Reply by email

Andrew Brunner
to Michael Van Canneyt: Something like Morfik is what I want to get to :) Michael.
Michael Van Canneyt wrote
Something like Morfik is what I want to get to :) Michael.

I could provide contributions along these lines. I already have many systems (VDM, Screen Manager, Forms, Screens, Panels, and ListView) with integrated value editors for list like items. Alignment, ReSize issues all resolve. Some of these components use a "Dataset" construct via AJAX API; Server back-end work converts XML streams to structs with parsing statics to read/write/delete/etc from TSQLConnection derivatives.

I really want an IDE (down the road) for web RAD to include in my server (and fcl-web).

I'm nearly certain Aurawin Javascript components will end up as open source (since I'm not wanting to mess with js obfuscation).

Just wanted offer some input with regard to an alternative. Aurawin is on schedule to public demo August this year.

Reply by email

Andrey Veliks
to Michael Schnell: Using Firefox, I see nothing but three small, differently colored, blinking stripes. Is…

02.03.2011 11:30, Michael Schnell ?????:

Show quoted text 15 lines
On 03/01/2011 09:32 PM, Andrey Veliks wrote: > www.morfik.com Using Firefox, I see nothing but three small, differently colored, blinking stripes. Is this normal ? -Michael -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

no, I open site in 3 second on my Vista note

so, you can discover morfik-based site http://www.altium.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110302/2c6afdae/attachment.html>

Reply by email

Lukasz Sokol
to Andrey Veliks
Andrey Veliks wrote 19 lines
02.03.2011 11:30, Michael Schnell ?????: > On 03/01/2011 09:32 PM, Andrey Veliks wrote: >> www.morfik.com > Using Firefox, I see nothing but three small, differently colored, blinking stripes. > > Is this normal ? > > -Michael > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus no, I open site in 3 second on my Vista note so, you can discover morfik-based site http://www.altium.com/

Today, both the sites load fast, less than 2 sec wait.

FF 3.6.14, WinXP SP3

Lukasz

Reply by email