× Discussions for CodeTyphon Object Pascal Programming Language

Question Alternative for BorderStyle = bsNone + WindowState = wsMaximized

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 1 month ago - 1 year 1 month ago #15981 by Vital
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?
Last edit: 1 year 1 month ago by Vital.

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

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 1 month ago #15990 by Vital
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.

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 1 month ago #15991 by Vital

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 year 1 month ago #15992 by Sternas Stefanos
Good luck Sir

PilotLogic Architect and Core Programmer

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

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 months 5 days ago #16184 by Vital
Fixed and closed
When will this fix be expected in CT?

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

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 months 5 days ago #16185 by Vital
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.

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
More
10 months 5 days ago - 10 months 5 days ago #16186 by Matis A.
We don't know,
we must first test this code

PilotLogic Core Programmer
Last edit: 10 months 5 days ago by Matis A..

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

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 months 4 days ago #16260 by Vital
In CT 7.6 not working :(

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

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
More
9 months 4 days ago #16261 by Matis A.
Did you try

WindowState := wsFullScreen

PilotLogic Core Programmer

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

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 months 4 days ago - 9 months 4 days ago #16262 by Vital

In CT 7.6 not working :(

 
Sorry. Working great!
WindowState:= wsMaximized
Thank you!
Last edit: 9 months 4 days ago by Vital.

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

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 months 4 days ago #16263 by Vital
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.

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 months 3 days ago #16267 by Vital
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.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
9 months 3 days ago - 9 months 3 days ago #16268 by Sternas Stefanos
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
Last edit: 9 months 3 days ago by Sternas Stefanos.

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

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 months 3 days ago #16269 by Vital
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.

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 months 3 days ago #16270 by Vital

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

  • Vital
  • Vital's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 months 4 weeks ago #16284 by Vital
The problem is observed in session X11. In Wayland is working correctly.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
8 months 4 weeks ago #16285 by Sternas Stefanos
Thanks Sir

PilotLogic Architect and Core Programmer

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