Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Object Pascal Programming Language
  • Page:
  • 1

TOPIC:

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 5 months ago #15981

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0
If TForm has BorderStyle: = bsNone set, then an attempt to make WindowState: = wsMaximized will be ignored by the class.
If this is a bug, is it possible to somehow solve the problem alternatively? For example, it could be like this:
Form.BoundsRect:= Form.Monitor.WorkareaRect;

But!
If more than one monitor is connected, then ...
If maximized on the main monitor, then the window is shifted by the width of the panel beyond the border of the monitor. When maximized on an additional monitor, the window is hidden under the panel itself.
That is, it turns out that you need to calculate the width and position of the panel, and then you can expand the window as needed, subtracting this panel from WorkareaRect.
Question: How do I calculate the width and position of the panel on the desktop?
It should also be borne in mind that there may be several panels. And still wondering how it will be on MacOS, Windows and Linux?

Please Log in or Create an account to join the conversation.

Last edit: by Vital.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 5 months ago #15990

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0
I can post it to the bug tracker at bugs.freepascal.org. What should I specify in the items: "Product Version" and "Product Build"?

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 5 months ago #15991

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 5 months ago #15992

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4538
  • Thank you received: 1116
Good luck Sir
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 2 months ago #16184

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0
Fixed and closed
When will this fix be expected in CT?

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 2 months ago #16185

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0
I'am insert code:
// issue #39158
    if AWinControl.HandleObjectShouldBeVisible and
      (TCustomForm(AWinControl).BorderStyle = bsNone) and
      not Widget.IsMdiChild then
        ConstraintsChange(AWinControl);

in file lcl/interfaces/qt5/qtwsforms.pp, but not working.

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 2 months ago #16186

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1130
  • Thank you received: 170
We don't know,
we must first test this code
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 1 month ago #16260

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0
In CT 7.6 not working :(

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 1 month ago #16261

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1130
  • Thank you received: 170
Did you try

WindowState := wsFullScreen
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 1 month ago #16262

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0

In CT 7.6 not working :(

 
Sorry. Working great!
WindowState:= wsMaximized
Thank you!

Please Log in or Create an account to join the conversation.

Last edit: by Vital.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 1 month ago #16263

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0
New problem.
If the window is moved to another screen, then maximization stops working. And even if you go back to the previous screen, it doesn't work either. Only restarting the application helps.

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 1 month ago #16267

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0
This changes Form.WindowState. But visually, the form remains unchanged.
Form.WindowState: = wsFullScreen works correctly. But then the window overlaps the OS Control Panel. This doesn't suit me.

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 1 month ago #16268

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4538
  • Thank you received: 1116
The questions are
Which OS ?
Which Platform ?
Which CPU ?

Please give us some info
CodeTyphon support 9 OSes
200+ CPU-OS-Platform
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 1 month ago #16269

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0
OS: KDE Neon (or Kubuntu 21.X)
OS Build: 5.22 (or 23)
CT: 7.6 (QT5)
CPU: x86_64

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 1 month ago #16270

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 1 month ago #16284

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 80
  • Thank you received: 0
The problem is observed in session X11. In Wayland is working correctly.

Please Log in or Create an account to join the conversation.

Alternative for BorderStyle = bsNone + WindowState = wsMaximized 3 years 1 month ago #16285

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4538
  • Thank you received: 1116
Thanks Sir
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1