× 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 month 5 days ago - 1 month 5 days 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 month 5 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
4 weeks 2 days 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
4 weeks 2 days 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
4 weeks 2 days ago #15992 by Sternas Stefanos
Good luck Sir

PilotLogic Architect and Core Programmer

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