[fpc-pascal] Re: html link extractor
Andrew Haines wrote: Is there a unit somewhere that can extract links from html pages? I want to be able to recursively add pages to a chm archive. I created a program called GetLinks in a couple minutes: http://opensvn.csie.org/pspcgi/general-utilities/parser/html/demo/getlinks.pas Latest html parser files in progress: http://opensvn.csie.org/pspcgi/general-utilities/parser/html/ p.s. It is a little heavy handed to create and free two classes just to do a simple task like get some urls from a web page. Some day I'll make a simpler even lighter version of that parser for quick and dirty usage, but still keep the old one maybe. But whatever works, works! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] How to call a pascal function from c?
Hi Everyone, I have code written in pascal and I'd like to call from C. Any doc or link or example to see how? thank you, best regards Jose Pascual ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] fpcanvas and FloodFill()
Hi, Still trying to implement fpcanvas as the bases classed for fpGUI. What is the function of...? TFPCustomCanvas = class procedure FloodFill (x,y:integer); ... How is it supposed to differ from Canvas.Clear() and Canvas.Rectangle() which can both handle filling of a rectangle? Regards, - Graeme - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpcanvas and FloodFill()
On Mon, 2 Jul 2007, Graeme Geldenhuys wrote: Hi, Still trying to implement fpcanvas as the bases classed for fpGUI. What is the function of...? TFPCustomCanvas = class procedure FloodFill (x,y:integer); ... How is it supposed to differ from Canvas.Clear() and Canvas.Rectangle() which can both handle filling of a rectangle? It fills the canvas (in all directions) till it encounters a different color which differs from the starting color. You can use this to fill irregular shapes. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpcanvas and FloodFill()
On 02/07/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: The FPImagecanvas has it implemented, you should be able to get some inspiration from that. Look also in the pixtools unit. Thanks Michael. The hard bit (without looking at any code) will be the rules when to paint. Am I understanding FloodFill() correctly. For example: If we have a Canvas with shapes painted on it. The inside of a rectangle might have the same background color as the canvas, but we don't want to paint inside the rectangle as it is a closed shape. Then we might have a another shape with a outline, but the shape isn't closed (end points of polygon doesn't meet up), so we still need to paint inside it. This is going to be fun. I'll have a look at those units you mentioned. So far I have implement about 70% of TFPCustomCanvas in my new fpGUI framework. I've also completed Canvas.Pen, Canvas.Brush and Canvas.Font support. All under X11 only, but now that I know what to do, GDI should hopefully go quicker. Regards, - Graeme - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpcanvas and FloodFill()
On Mon, 2 Jul 2007, Graeme Geldenhuys wrote: On 02/07/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: The FPImagecanvas has it implemented, you should be able to get some inspiration from that. Look also in the pixtools unit. Thanks Michael. The hard bit (without looking at any code) will be the rules when to paint. Am I understanding FloodFill() correctly. For example: If we have a Canvas with shapes painted on it. The inside of a rectangle might have the same background color as the canvas, but we don't want to paint inside the rectangle as it is a closed shape. Then we might have a another shape with a outline, but the shape isn't closed (end points of polygon doesn't meet up), so we still need to paint inside it. Yes. This is going to be fun. I'll have a look at those units you mentioned. Pixtools should have a fully functional version. It just needs to be able to retrieve pixel colors. So far I have implement about 70% of TFPCustomCanvas in my new fpGUI framework. I've also completed Canvas.Pen, Canvas.Brush and Canvas.Font support. All under X11 only, but now that I know what to do, GDI should hopefully go quicker. No-one promised an easy ride ;-) if you have questions, don't hesitate to bug me. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpcanvas and FloodFill()
On 02/07/07, Michael Van Canneyt [EMAIL PROTECTED] wrote: It fills the canvas (in all directions) till it encounters a different color which differs from the starting color. You can use this to fill irregular shapes. Excellent idea. Now I only need to figure out how to implement that! ;-) Graeme. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: html link extractor
L wrote: Andrew Haines wrote: Is there a unit somewhere that can extract links from html pages? I want to be able to recursively add pages to a chm archive. I created a program called GetLinks in a couple minutes: http://opensvn.csie.org/pspcgi/general-utilities/parser/html/demo/getlinks.pas Latest html parser files in progress: http://opensvn.csie.org/pspcgi/general-utilities/parser/html/ This is great stuff thanks :) I've just made a chm sitemap reader using your units. Next a writer. Regards, Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal