Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Could you possibly include an example on how to use, please? #1

Open
gcarreno opened this issue Sep 16, 2021 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@gcarreno
Copy link

Hey Marcin(@Matek0611),

Would it be too much to ask if you could include a folder with an example project on how to use this wonderful piece of software?

Many, MANY thanks in advance!!

Cheers,
Gus

@Matek0611 Matek0611 added the enhancement New feature or request label Sep 17, 2021
@Matek0611
Copy link
Owner

Hi Gus (@gcarreno)!

First of all, thanks for asking! I'm currently trying to make basic html viewer features for TPLHTMLViewer and because of that e.g. if you create it on a form, only whiteness will appear. When I finish rendering, style/layout management and maybe text drawing, I'll include a folder with an example project. You can see the progress in readme.md.

At the moment I can give you this code fragment based on my internal demo:

uses Pospolite.View.RegisterAll;

...

var 
  browser: TPLHTMLViewer; 

...

procedure TForm1.FormCreate(Sender: TObject);
begin
  browser := TPLHTMLViewer.Create(self);
  browser.Align := alClient;
  browser.BorderSpacing.Top := 50; 
end;

procedure TForm1.Button1Click(Sender: TObject); 
begin
  browser.LoadFromString('<html lang="pl"><head><title>Test</title><style>.spdiv{width: 200px; height: 100px; background: red;}</style></head><body><div class="spdiv"></div></body></html>');
  Caption := 'Demo - ' + browser.Document.Title;
end;

image

As you can see, nothing is shown. Despite this, html code is parsed and some management threads are running.

I hope that soon I will be able to show what my html viewer can do ;)

Regards,
Marcin

@gcarreno
Copy link
Author

Hey Marcin(@Matek0611),

That's friggin awesome and I hope you continue the good work towards a visually appealing component that can topple THTMLViewer from the perch of the only thing around that displays HTML without having to include 100MB of binaries for the HTML engines of the major browsers!!!

Let's keep this issue open until you get the first progress in visual advancement?

Many thanks for your work, this project is DA BOMB 😉

Cheers,
Gus

@Matek0611
Copy link
Owner

Hi Gus (@gcarreno)!

Thanks for your feedback! I really appreciate that someone sees the potential of my project 😊 You know, for a single programmer it's hard to create something huge like fully functional html engine with a vast amount of features but I'm trying to do my best to create something that will be useful for me and many Free Pascal enthusiasts.

Yes, this issue will remain open until I'm satisfied with the visuals. I'll post some progress here, so keep your eyes peeled!

Regards,
Marcin

@gcarreno
Copy link
Author

Hey Marcini(@Matek0611),

I completely understand your feelings!!

You're more than welcome!!

And I assure you that I will, indeed, keep my eyes very peeled and will monitor this issue for your most welcomed updates!!

I'm really pumped to see this project to fruition since it's been a very long while that we've had a good tool to display HTML that doesn't rely on such heavy external binaries!! And with so many planned features!!!
I know I said this before, but my enthusiasm is so high that I'm like a kid waiting for X-Mas morning, LOL!!

Cheers,
Gus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants