- Posts: 61
- Thank you received: 0
- Forum
- CodeTyphon Studio
- CT Pascal Programming
- Alternative for BorderStyle = bsNone + WindowState = wsMaximized
Question Alternative for BorderStyle = bsNone + WindowState = wsMaximized
- Vital
-
Topic Author
- Offline
- Junior Member
-
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.
- Vital
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Vital
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- Vital
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0
When will this fix be expected in CT?
Please Log in or Create an account to join the conversation.
- Vital
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0
// 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.
-
- Offline
- Moderator
-
we must first test this code
PilotLogic Core Programmer
Please Log in or Create an account to join the conversation.
- Vital
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0

Please Log in or Create an account to join the conversation.
- Matis A.
-
- Offline
- Moderator
-
WindowState := wsFullScreen
PilotLogic Core Programmer
Please Log in or Create an account to join the conversation.
- Vital
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0
Sorry. Working great!In CT 7.6 not working
WindowState:= wsMaximized
Please Log in or Create an account to join the conversation.
- Vital
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0
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
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0
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
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
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.
- Vital
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0
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
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Vital
-
Topic Author
- Offline
- Junior Member
-
- Posts: 61
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.