Recent

Author Topic: Statusbar's grip and Win11  (Read 2097 times)

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Statusbar's grip and Win11
« on: April 12, 2022, 12:45:24 am »
Hi all

I found that grip icon/sign in status bar is not drawn correctly for win 11.
Can anybody create the ticket for bugtracker?

Do you think this behavior is correct?
« Last Edit: April 12, 2022, 01:54:28 pm by zoltanleo »
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

speter

  • Sr. Member
  • ****
  • Posts: 452
Re: Statusbar's grip and Win11
« Reply #1 on: April 12, 2022, 05:29:18 am »
Can you explain the problem?
The win 11 status bar looks ok; except for the curving window (which is part of win 11).

cheers
S.
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Statusbar's grip and Win11
« Reply #2 on: April 12, 2022, 12:21:56 pm »
Hi speter

IMHO, the rounded corner of the window should "cut off" part of the grip. It should look like this (see attachment).
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

wp

  • Hero Member
  • *****
  • Posts: 13268
Re: Statusbar's grip and Win11
« Reply #3 on: April 12, 2022, 12:42:11 pm »
It should look like this.
Sorry, I don't understand. It DOES look exactly like you show, in both Lazarus and Delphi.

AlexTP

  • Hero Member
  • *****
  • Posts: 2654
    • UVviewsoft
Re: Statusbar's grip and Win11
« Reply #4 on: April 12, 2022, 12:44:28 pm »
No, it is the duty of OS, to cut the image in the corner, not the duty of app. Image is painted via WinAPI.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8515
Re: Statusbar's grip and Win11
« Reply #5 on: April 12, 2022, 01:08:47 pm »
Please excuse a comment from somebody who has not touched Windows for decades.

No, it is the duty of OS, to cut the image in the corner, not the duty of app. Image is painted via WinAPI.

It is, but there's potential for confusion here if inheriting extremely old Windows code.

When the grip was first introduced it was possible to mark an arbitrary bitmap as having the grip property for a window, hence e.g. the screenshot attached.

Code: Pascal  [Select][+][-]
  1. procedure TPollPxxD3.GripImageMouseDown(Sender: TObject; Button: TMouseButton;
  2.                                                 Shift: TShiftState; X, Y: Integer);
  3.  
  4. (* Magic code from adr@cix who notes "The value 8 is a complete mystery *)
  5. (* to me, I can't find any documentation on it. I found it by           *)
  6. (* experimentation."                                                    *)
  7.  
  8. begin
  9.   ReleaseCapture;
  10.   Perform(WM_SYSCOMMAND, SC_SIZE + 8, 0)
  11. end (* TPollPxxD3.GripImageMouseDown *) ;
  12.  

Legacy code might still have something like that, which could easily confuse a modern OS.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Statusbar's grip and Win11
« Reply #6 on: April 12, 2022, 01:50:59 pm »
Sorry, I don't understand. It DOES look exactly like you show, in both Lazarus and Delphi.

I apologize for some confusion. I had to first tell a short background of the subject.

In one of the Russian-speaking telegram groups, there was a discussion of the new win11 style (https:/"]Blocked/Delphi_Lazarus_offtop/60179) and some users drew attention to the subject. They considered such a rendering of the grip not entirely correct. Many agreed that it would be a good idea to fix this (for both Lazarus and Delphi) by changing the source code.

Therefore, I described this situation.
« Last Edit: April 12, 2022, 01:55:26 pm by zoltanleo »
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

wp

  • Hero Member
  • *****
  • Posts: 13268
Re: Statusbar's grip and Win11
« Reply #7 on: April 12, 2022, 03:32:16 pm »
They considered such a rendering of the grip not entirely correct. Many agreed that it would be a good idea to fix this (for both Lazarus and Delphi) by changing the source code.
I still don't understand what is wrong with rendering of the size grip. I also checked Notepad++ which certainly is not a Delphi/Lazarus program, and it shows the size grip in the same way. This is clear to me because the size grip is rendered by Windows, not by a user application.

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Statusbar's grip and Win11
« Reply #8 on: April 12, 2022, 04:49:10 pm »
This is clear to me because the size grip is rendered by Windows, not by a user application.
Ok. I give up. So be it.
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

 

TinyPortal © 2005-2018