Author Topic: Early WIP on v2.55  (Read 138069 times)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Early WIP on v2.55
« Reply #435 on: December 26, 2018, 10:27:39 am »
Your demo using HH.exe doesn't work by me. :(

I had a com browser written long ago in PowerBASIC, in my "zap media lite" freeware, and my "zap image solution" commercial project.

However what i like with .rtf, is that everything is embedded into one single file (like .pdf), and that is what i was looking for.
« Last Edit: December 26, 2018, 10:37:00 am by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #436 on: December 26, 2018, 10:52:32 am »
What exactly doesn't work for you? I have tested it thoroughly on my W10 box (which has all the latest updates installed) and found no differences with my W7 environment except a better window region management that prevents those annoying grayish flicker on the left of gP.hGL that you can notice in my W7 video.

I implemented the HTML help in a separate HH.h include file that coexists peacefully in the project with your own Help.h due to a few #ifdef MLL_DEV directives. So no problem for the both of us if we don't come to a consensus. ;)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Early WIP on v2.55
« Reply #437 on: December 26, 2018, 11:00:00 am »
Quote
What exactly doesn't work for you?
It deosn't show anything, i have checked the Help folder and all the extra files are within the extra "THIS IS A TEST PAGE.files" subfolder.

BTW, please check the attached OleRTF written in PowerBASIC and tell me if it works by you.
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #438 on: December 26, 2018, 11:07:31 am »
It works but the same as with your OR RTF help system: image dither and hellish flicker on resize.

[ADD] Please check if there's a C:\Windows\hh.exe file on your machine. Also, put this texture into your \Reader subfolder:
« Last Edit: December 26, 2018, 11:12:48 am by Michael Lobko-Lobanovsky »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Early WIP on v2.55
« Reply #439 on: December 26, 2018, 11:10:13 am »
Ok i have been able to use the version you sent me, after cliking on the top left OR icon.  ;)

The PowerBASIC version doesn't flicker by me, did you embed it changing the parent?
« Last Edit: December 26, 2018, 11:15:58 am by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #440 on: December 26, 2018, 11:15:08 am »
AAAAAAAAAAaaaaaaaaaa!!!!!!!!!!!!!!!!!!!!!!!1111
 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D

Didn't you watch the video? :D :D :D :D :D :D :D
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #441 on: December 26, 2018, 11:26:13 am »
... did you embed it changing the parent?

Assuming you're talking about HH.exe rather than your PowerBASIC demo, no, HH.exe isn't "embedded". Its window styles have been changed to remove the decorations (non-client areas) and set gP.hMain as its owner window, and then WS_EX_TOOLWINDOW was added to prevent it from showing an icon in the title bar. Finally, WM_CLOSE was sent to its tool bar to kill it and prevent it from showing the contents/index tab control. All this automatically made the browser control occupy HH's entire client area.

Then all moving/resizing was done using standard MoveWindow() calls.

HH.exe is created/destroyed each time the top left orb is clicked.

The real beauty of it is it's working identically under both W7 and W10 and it doesn't interfere with the gP.hGL display of the model in all modes. 8)
« Last Edit: December 26, 2018, 11:30:20 am by Michael Lobko-Lobanovsky »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #442 on: December 26, 2018, 11:44:47 am »
The .HTM was intentionally made very rich visually using the background image to test the setup under the most stressful conditions. The background image is huge. If it's omitted and a background color is used instead, then the .FILES subfolders will be much much smaller and redraw on resize will be significantly faster.

Last but not least, if there are no images in a particular .HTM then there won't be any accompanying .FILES subfolder to it at all.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Early WIP on v2.55
« Reply #443 on: December 26, 2018, 11:46:34 am »
Quote
Also, put this texture into your \Reader subfolder
I couldn't see any difference with the one i already have  ???

I am making some test with the .odt format (much smaller file size)
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #444 on: December 26, 2018, 11:59:31 am »
I couldn't see any difference with the one i already have  ???

I wasn't sure you had one named 69.png exactly. IIRC the app aborts if it fails to find the FPS texture in its \Reader folder.

My message had been edited to attach the texture before you said you finally tumbled to click the orb. ;)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #445 on: December 26, 2018, 12:03:14 pm »
Now, do you want me to send you my sources? ;)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Early WIP on v2.55
« Reply #446 on: December 26, 2018, 12:41:45 pm »
Quote
Now, do you want me to send you my sources?
I will need it for sync purpose, but as i told you i want to experiment with the ODT format (1/3 the size of a single RTF file).
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #447 on: December 26, 2018, 12:46:37 pm »
Well, well, well... The sides are chosen, aren't they? ;)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Early WIP on v2.55
« Reply #448 on: December 26, 2018, 01:43:44 pm »
Nothing build in concrete yet...
but i don't want to bloat OR with too much extra files, and i want to preserve smooth left right scrolling as we have it already when moving only the OGL control with the splitter.

I may have a solution using a backbuffer to suppress the flickering, with my skOFFscreen or zOFFscreen API that i could export from the existing DLL(s), and using WM_PRINT rather than WM_PAINT using subclassing or a superclass.

Added
You know what, ODT is nothing more than a standard ZIP file (xml based)…
all related files being unzipped to the temporary folder, then removed when not needed anymore  :P

That means we could do the same unziping first everything into the temporary folder on the fly, when switching from one topic to another.
Do you think that would work with HH, and what would be the best tool to produce the documentation itself ?
« Last Edit: December 26, 2018, 02:22:08 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #449 on: December 26, 2018, 03:39:18 pm »
but i don't want to bloat OR with too much extra files

From my perspective, a single file project of such complexity is a nuisance, a rudiment of the PowerBASIC era when its so called RAD wasn't able to cope with multiple files.

And for what it's worth, I may just as well consider the RTF branch of help file system a piece of bloatware based off of technologies of the yesteryear.

Quote
... and i want to preserve smooth left right scrolling as we have it already when moving only the OGL control with the splitter.

And I want to preserve compatibility with the pre-W10 platforms, which in my opinion is a more worthwhile objective.

Quote
I may have a solution using a backbuffer to suppress the flickering, with my skOFFscreen or zOFFscreen API that i could export from the existing DLL(s), and using WM_PRINT rather than WM_PAINT using subclassing or a superclass.

We could probably suppress it with just a careful choice of timely direct gl_DrawScene() calls rather than gP.bRedraw = TRUE requests to repaint the viewport at some unknown later points in time. We can also use SendMessage(WM_SETREDRAW) wisely to update it only when the actual positions of the windows have already stabilized.

Quote
You know what, ODT is nothing more than a standard ZIP file (xml based)…
all related files being unzipped to the temporary folder, then removed when not needed anymore :P
That means we could do the same unziping first everything into the temporary folder on the fly, when switching from one topic to another. Do you think that would work with HH ...

This is what HH.exe does with the .CHM files, and it is damned fast at that doing it directly in memory without dumping anything on disk at all.

Quote
... and what would be the best tool to produce the documentation itself ?

The best tools for the help file system are MS Word and MS HTML Help compiler if you're following my route. If not, you may settle with Libre Office and zlib.dll unless you have your own code to include in the project to compress/decompress ZIPs, JPEGs and PNGs without any 3rd party dependencies. I have used such an include in my FBSL. It added only 8KB to the binary. Then I switched over to the 7-zip algo to yield almost twice deeper compression ratios.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)