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

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1983
    • zapsolution
Re: Early WIP on v2.55
« Reply #450 on: December 26, 2018, 06:19:18 pm »
Sooner or later i shall have more leave weeks than i want to ;)
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #451 on: December 26, 2018, 06:47:47 pm »
We are all gonna have them unavoidably, my friend, in our due time and I think it isn't very rewarding to concentrate on such thoughts too deeply. Let's praise the Lord for allowing us to still enjoy ourselves hobbying while too many of our good friends and relatives are long gone...
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1983
    • zapsolution
Re: Early WIP on v2.55
« Reply #452 on: December 26, 2018, 07:28:20 pm »
My friend

What did you do to create the gray background behind the png ObjReader logo?

I managed to change the white background to RGB(192,192,192) as you can see on the screen shot.
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #453 on: December 26, 2018, 08:04:53 pm »
MS Word allows the embedded image objects to be put behind the text and be sized larger than the page they reside on. If the image is detailed and large enough, then magnification isn't going to impair its visible quality. I own MS Office 2007 but perhaps later version also allow small images to be tiled in the background rather than stretched/magnified? I don't know...

At any rate, such approach isn't very practical in use cases because the large image should then be cloned in every .FILES folder of the .HTMs it is used in. Probably it can be used in the style sheet rather than individual files of other markups like e.g. XML/XMS and thus be applied once to every content file in the bunch but I don't know for sure.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1983
    • zapsolution
Re: Early WIP on v2.55
« Reply #454 on: December 26, 2018, 10:07:15 pm »
Do you know if it is possible to change the text color and background of the selected item in a ListView, without using CUSTOMDRAW ?
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #455 on: December 27, 2018, 08:42:23 am »
To the best of my knowledge, not with WinAPI. You've got to use CUSTOMDRAW tricks to return a custom color brush handle to the system. Some modern languages have it hardcoded under the hood, so they expose the Foreground/BackgroundColor properties but inherently they are implemented via the CUSTOMDRAW mechanism.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1983
    • zapsolution
Re: Early WIP on v2.55
« Reply #456 on: December 27, 2018, 10:34:58 am »
Thanks, for the confirmation, then i will go to CUSTOMDRAW  :(
Patrice
(Always working with the latest Windows version available...)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1983
    • zapsolution
Re: Early WIP on v2.55
« Reply #457 on: December 27, 2018, 06:35:20 pm »
Help has been switched from LISTBOX to CUSTOMDRAW LISTVIEW.
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #458 on: December 27, 2018, 07:33:04 pm »
Is the control's main background skinned in any way?
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1983
    • zapsolution
Re: Early WIP on v2.55
« Reply #459 on: December 27, 2018, 10:06:50 pm »
Screen shot showing the current color, used by the CustomDraw ListView.
« Last Edit: December 27, 2018, 10:09:35 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 #460 on: December 27, 2018, 11:18:33 pm »
Looks good under W10, congrats! :)
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 #461 on: December 28, 2018, 11:28:20 am »
Thank you Patrice,

FYI I was able to precise the bounding sphere radius calc and am now very heavily (but not very successfully yet) occupied with mesh visibility using both bounding spheres and boxes. I wanted to fix it for a long time, so I thought why not now?
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1983
    • zapsolution
Re: Early WIP on v2.55
« Reply #462 on: December 28, 2018, 11:38:07 am »
Thank you for the feedback, i am confident that you will solve the bounding sphere problem sooner or later ;)
Patrice
(Always working with the latest Windows version available...)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1983
    • zapsolution
Re: Early WIP on v2.55
« Reply #463 on: December 28, 2018, 01:20:23 pm »
Sync done, thank you!

Help shouldn't interfer with the full screen mode, see my change in red below.

void ToggleFullScreen() {

    static DWORD savedExStyle, savedStyle, screenWidth, screenHeight;
    static long OverLayVisible, AnimationVisible; // PAT: 02-05-2018
    static RECT rcSaved;
    static HRGN oldRgn = 0, newRgn = 0;
    long K = 0, nLeft = 0, nTop = 0;
    WINDOWPLACEMENT wp = { 0 };

    gP.bIsFullScreen = !gP.bIsFullScreen;

    if (GetWindowPlacement(gP.hMain, &wp)) { // 04-20-2015
        if (wp.showCmd == SW_SHOWMAXIMIZED) {
            //ShowWindow(gP.hMain, SW_RESTORE);
            skRestore(gP.hMain);
        }
    }

    if (gP.bIsFullScreen) { // Moving to full screen mode.
        long wasFPS = gP.bUseFPS; if (gP.bUseFPS) { gP.bUseFPS = FALSE; }

        GetWindowRgn(gP.hMain, oldRgn);

        GetWindowRect(gP.hMain, &rcSaved);

        AnimationVisible = IsWindowVisible(GetDlgItem(gP.hMain, IDC_ANIMATION));

        if (IsWindowVisible(gP.hHelp)) { HideHelp(); } // PAT: 12-28-2018

        for (K = IDC_FIRST; K <= IDC_LAST; K++) {
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #464 on: December 28, 2018, 01:26:11 pm »
The fix added under an #ifndef MLL_DEV/#endif condition. ;)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)