Posts: 16
Threads: 5
Joined: Jan 2021
Reputation:
0
MobileSheets 3.0.0 always launches in full screen on my 3840x2160 desktop Windows 10 machine.
Is this the way it is supposed to work? I would certainly prefer not.
Posts: 13,532
Threads: 302
Joined: Apr 2012
Reputation:
241
Go to Settings->Display Settings and uncheck "Fullscreen Mode" at the bottom. Then MobileSheets will come up in windowed mode. You can toggle between fullscreen and windowed mode by hitting f11 or tapping the fullscreen icon in the floating toolbar at the bottom right corner of the library screen.
Mike
Posts: 16
Threads: 5
Joined: Jan 2021
Reputation:
0
01-08-2021, 08:33 AM
(This post was last modified: 01-08-2021, 08:34 AM by steve_g.)
(01-08-2021, 06:20 AM)Zubersoft Wrote: Go to Settings->Display Settings and uncheck "Fullscreen Mode" at the bottom. Then MobileSheets will come up in windowed mode. You can toggle between fullscreen and windowed mode by hitting f11 or tapping the fullscreen icon in the floating toolbar at the bottom right corner of the library screen.
Mike
Thanks for your reply.
I do have "Fullscreen Mode" unchecked.
It seems to depend on how I launch the app.
If it is launched from
- the Windows Start menu, via either an icon or a shortcut in the programs list it always launches maximized.
- an icon on the desktop, it launches as a non-maximized window, and correctly recalls its previous coordinates.
I have a workaround for this now, that I sussed out while testing for my reply to you, it would be nice to understand the behavior, and whether it's possible to configure.
Thanks again.
Steve
Posts: 13,532
Threads: 302
Joined: Apr 2012
Reputation:
241
01-08-2021, 08:53 AM
(This post was last modified: 01-08-2021, 08:53 AM by Zubersoft.)
If I launch the app from the start menu, it will start full screen, but then take itself out of full screen once it's initialized and has read the setting for fullscreen mode. Are you saying if you load the app from the start menu, it stays full screen the entire time?
Thanks,
Mike
Posts: 16
Threads: 5
Joined: Jan 2021
Reputation:
0
(01-08-2021, 08:53 AM)Zubersoft Wrote: Are you saying if you load the app from the start menu, it stays full screen the entire time? Yes, that's correct.
Posts: 13,532
Threads: 302
Joined: Apr 2012
Reputation:
241
I definitely don't have an answer for that then, as the app switches out of fullscreen after initializing when launched from the start menu for me. Is anyone else experiencing this full screen issue?
Thanks,
Mike
Posts: 52
Threads: 8
Joined: Oct 2020
Reputation:
2
I just tested this on my computer and this is what happened.
I launched MobileSheets from a taskbar shortcut. It opened in full screen mode, as that's how I had it set before. I then turned off full screen mode and closed the app. When I again opened it from the taskbar, it put itself back into full screen mode instead of staying in windowed mode.
Weird.
Posts: 4
Threads: 2
Joined: Sep 2020
Reputation:
0
I have the same behavior: From start always full screen, from an icon on the desktop: in a window
Posts: 942
Threads: 84
Joined: Feb 2017
Reputation:
28
Hi Mike
Sounds as though you are doing the form sizing in the OnShow or as an "after show" event.
The way I handle the sizing is to call my RestoreWindowPlacement routine in the FormCreate event.
Obviously, for this to work, you need to save the necessary screen settings in your FormClose event!
My code is in Delphi but I'm sure you can work it out/adapt to suit your code.
Cheers
Geoff
Code: // The Prefix is so that I can use the routine to restore any form (and not just the main one).
// The routine does nothing if any of the registry values are invalid i.e. the program will use the form design values
// UsePPI is an input and allows you to ignore the settings if the screen resolution has changed
procedure TMainForm.RestoreWindowPlacement( AForm: TForm; Const Prefix: string; UsePPI: boolean);
Var
bad: boolean;
function ReadInteger( Name: string; Max: integer): integer;
var
str: string;
begin
str:= DataManager.GetKeyedString( Name ); // this is just getting a value from the registry (I use a .ini file)
if IsNumeric( str, 0, Max) then
Result:= StrToInt( str ) else
begin
bad:= true;
Result:= -1;
end;
end;
Var
Rect: TRect;
FullScreen: integer;
OldPPI : integer;
begin
bad:= false;
Rect.Top := ReadInteger( Prefix + 'Top' , Screen.WorkAreaHeight ); // args are "registry name", "screen variable"
Rect.Left := ReadInteger( Prefix + 'Left' , Screen.WorkAreaWidth );
Rect.Bottom := ReadInteger( Prefix + 'Height' , Screen.WorkAreaHeight );
Rect.Right := ReadInteger( Prefix + 'Width' , Screen.WorkAreaWidth );
if (AForm.BorderIcons - [biMinimize, biMaximize] ) <> AForm.BorderIcons then
FullScreen := ReadInteger( Prefix + 'Maximized', 1 ) else
FullScreen := 0;
if usePPI then
OldPPI := ReadInteger( Prefix + 'PixelsPerInch', 999) else
OldPPI := PixelsPerInch;
if bad or (OldPPI <> PixelsPerInch) then
exit;
Rect.Bottom := Rect.Bottom + Rect.Top;
Rect.Right := Rect.Right + Rect.Left;
// Make sure the window is entirely visible on the screen
if (Rect.Right > Screen.WorkAreaWidth) then begin
Dec(Rect.Left, (Rect.Right - Screen.WorkAreaWidth));
Rect.Right := Screen.WorkAreaWidth;
end;
if (Rect.Bottom > Screen.WorkAreaHeight) then begin
Dec(Rect.Top, (Rect.Bottom - Screen.WorkAreaHeight));
Rect.Bottom := Screen.WorkAreaHeight;
end;
AForm.BoundsRect := Rect;
if FullScreen=1 then
AForm.WindowState := wsMaximized;
end;
Samsung Galaxy Tab A6
Posts: 13,532
Threads: 302
Joined: Apr 2012
Reputation:
241
UWP is a different beast entirely. You aren't allowed to move the window location yourself and the fullscreen/windowed mode toggle is only accessible through a very specific API call which can only be triggered after the application is launched.
Mike
Posts: 942
Threads: 84
Joined: Feb 2017
Reputation:
28
Fair enough
Geoff
Samsung Galaxy Tab A6
Posts: 13,532
Threads: 302
Joined: Apr 2012
Reputation:
241
Depending on what Microsoft devices to do with WinUI 3 and UWP going forward, I may decide to port the application to WinUI 3 and make it a standard Win32 application. That would open up a lot of possibilities, remove the file permission restrictions that creates a lot of headaches, fix various issues with MIDI and give me the ability to control things like window positioning. It will be a huge amount of work though, so I'm not moving forward until I see what direction Microsoft is going with things.
Mike
|