Lazarus

Using the Lazarus IDE => General => Topic started by: StephenMilner on January 18, 2022, 11:09:54 am

Title: Problems Saving Desktop Windows.
Post by: StephenMilner on January 18, 2022, 11:09:54 am
I want to be able to save my desktop windows positions and sizes (Ideally I want to save a few options depending on if I'm on a bigger monitor or on my laptop screen.

I have tried using Tools Desktop:

Firstly, there's no option to save... Although I can use auto-save

Upon restarting I get some weird behaviour...

The Object inspector becomes full screen width.
The Pallete & Main Application bar gets re-sited to the the middle (ish) down the screen.

Is this a known problem or am I doing something wrong.

I'm on a Mackboo Pro running 12.1 Monterey on Apple Silicon.

Are there any settings files that I can manually edit to sort this out?
Title: Re: Problems Saving Desktop Windows.
Post by: JanRoza on January 18, 2022, 11:25:59 am
Use the Export button to save your desktop settings and the Import button to load previously saved settings.
Title: Re: Problems Saving Desktop Windows.
Post by: StephenMilner on January 18, 2022, 11:54:50 am
Use the Export button to save your desktop settings and the Import button to load previously saved settings.

I'll give that a go - I've found some of the settings for the desktop

Code: XML  [Select][+][-]
  1. <Desktops Count="2" DebugDesktop="Home Desktop" ActiveDesktop="Home Desktop">
  2.     <Desktop1 Name="Home Desktop">
  3.       <Desktop Version="2" FormIdCount="31">
  4.         <FormIdList a1="ObjectInspectorDlg" a2="MainIDE" a3="MessagesView" a4="SourceNotebook" a5="ProjectInspector" a6="Watches" a7="BreakPoints" a8="Locals" a9="CallStack" a10="EvaluateModify" a11="Registers" a12="Assembler" a13="DbgOutput" a14="Inspect" a15="DbgEvents" a16="PseudoTerminal" a17="Threads" a18="DbgHistory" a19="UnitDependencies" a20="CodeExplorerView" a21="FPDocEditor" a22="ClipBrdHistory" a23="PkgGraphExplorer" a24="EditorFileManager" a25="SearchResults" a26="AnchorEditor" a27="TabOrderEditor" a28="CodeBrowser" a29="IssueBrowser" a30="JumpHistory" a31="ComponentList"/>
  5.       </Desktop>
  6.       <ObjectInspectorDlg>
  7.         <Caption Value="ObjectInspectorDlg"/>
  8.         <CustomPosition Left="4876" Top="-438" Width="188" Height="1469"/>
  9.         <Visible Value="True"/>
  10.       </ObjectInspectorDlg>
  11.       <MainIDE>
  12.         <Caption Value="MainIDE"/>
  13.         <CustomPosition Left="2056" Top="-534" Width="2379" Height="58"/>
  14.         <Visible Value="True"/>
  15.       </MainIDE>
  16.       <MessagesView>
  17.         <Caption Value="MessagesView"/>
  18.         <CustomPosition Left="2056" Top="550" Width="2819" Height="475"/>
  19.         <Visible Value="True"/>
  20.       </MessagesView>
  21.       <SourceNotebook>
  22.         <Caption Value="SourceNotebook"/>
  23.         <CustomPosition Left="2056" Top="-438" Width="2814" Height="950"/>
  24.       </SourceNotebook>
  25.       <ProjectInspector>
  26.         <Caption Value="ProjectInspector"/>
  27.         <CustomPosition Left="200" Top="194" Width="300" Height="400"/>
  28.       </ProjectInspector>
  29.       <Watches>
  30.         <Caption Value="Watches"/>
  31.       </Watches>
  32.       <BreakPoints>
  33.         <Caption Value="BreakPoints"/>
  34.  

If you look at the values - some are negative and some seem to be very large. My guess is that these settings refer to my whole desktop. The screen I'm using is my screen to the right of my Laptop since that screen is taller than the laptop screen I have it set so that there could be some relative negative numbers compared to the laptop screen.

*Sigh*
Title: Re: Problems Saving Desktop Windows.
Post by: StephenMilner on January 18, 2022, 12:47:28 pm
The problem was 100% due to the use of my second screen and it's relative size and position compared to the primary window on my laptop.

I've sorted this out by putting the editor on the monitor and all the other windows, resized on the laptop screen and all works well.

Still no save option though!
TinyPortal © 2005-2018