|
|
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to display html-files
|
|
Re: How to display html-files [message #15594 is a reply to message #9589] |
Wed, 30 April 2008 00:00 |
|
michael wrote on Fri, 18 May 2007 06:08 | Is there a web widget for displaying a html-file? If no, what do you use for displaying a html-file?
|
HTMLayout (http://www.terrainformatica.com/htmlayout/) works under U++, using a DHCtrl as the base object. I think it's Windows only, though. The only issue I had is using it as a Tab. You have to manually turn on and off rendering, as the tab is selected/unselected. This is done by not calling HTMLayoutProcND in the windows message proc. And, during the OPEN state, you have to block every message except WM_CREATE, or it will overwrite the active tab.
The only issue I had was the creation of a scroll bar that wouldn't go away, or respond to mouse clicks or moves. I even attempted to redirect mouse message to the control, but it didn't work.
a3e77f341aa1d91d0388a0c8b786e8b5
|
|
|
|
|
|
Re: How to display html-files [message #15814 is a reply to message #15813] |
Thu, 08 May 2008 12:07 |
|
mrjt wrote on Thu, 08 May 2008 04:35 |
luzr wrote on Wed, 07 May 2008 20:34 | webkit.org
|
It looks like a lot of work, I believe you would have to port most/all of these files to Upp. Then there is the issue of maintaining it with current WebKit version. The Qt version is based on a 6 month old fork for instance and they have considerable resources.
Gecko may actually be easier to create a loose/lightweight wrapper for (if you can get your head around their XPCOM interface) as I believe the rendering is done internally, especially if you can keep most of the source precompiled into a .lib/.dll.
It's quite possible I'm entirely wrong about this though - I'm certainly not an expert - but I thought I'd share what I knew.
|
Qt guys already have synced the newest webkit which will be available in qt 4.5. I think webkit is better as it seems to be more lightweight and developed much quicker than gecko. Probably cost of first port is quite big, but cost of maintaing it should be a way smaller. Anyway if I had free time I would port it Unfotunately there are many things in a queue to be done first (new version of gridctrl, documentation for it, I have some ideas for quicktabs, then I would like to port them to our 2 docking systems (I guess it's time to choose one), I'd like to also fix code assist and file window font height problem, create upp demo application and so on )
[Updated on: Thu, 08 May 2008 12:27] Report message to a moderator
|
|
|
|
|
|
Re: How to display html-files [message #22465 is a reply to message #9589] |
Fri, 17 July 2009 14:49 |
Sc0rch
Messages: 99 Registered: February 2008 Location: Russia, Rubtsovsk
|
Member |
|
|
Stupid errors, I fixed them. But application crashes now =) too tired for analyzing and also I have another work.
to mrjt: thank you, James, you always try to help. At least I'm trying to convert sample win32-application (HTMLayout sample) to DHCtrl, as you see. But I've not realized:
1) how to get HINSTANCE in DHCtrl or Upp?
2) how to deal with resources... just include "resource.h" files? Probably, application crashes because I'm not loading resources using GetHTMLResources (as in sample). But to use this function I need to get HINSTANCE variable.
P.S. HTMLayout is amazing, but there are htmls in my collection which it can't render fast (or even normal). But if someone can help with layout, it will be great to see and hear. I think, this topic very actual.
P.P.S. I've attached the my code (I'm sorry, it's quick and dirty, =( ) and original sample, if it can be useful.
Best regards,
Anton
[Updated on: Fri, 17 July 2009 14:55] Report message to a moderator
|
|
|
Re: How to display html-files [message #22466 is a reply to message #9589] |
Fri, 17 July 2009 15:33 |
Sc0rch
Messages: 99 Registered: February 2008 Location: Russia, Rubtsovsk
|
Member |
|
|
Ok, I have found AppGetHandle() function (maybe, GetAppHandle() will look better, what do you think?), and now application not crashes.
Added: yes, I receive rendering.
Added: rendering layout ignores mouse, what I've foggot?
[Updated on: Fri, 17 July 2009 15:44] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sun Apr 28 04:20:27 CEST 2024
Total time taken to generate the page: 0.07673 seconds
|
|
|