Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
gambas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Custom issue tracker
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
Gambas
gambas
Commits
70fc9675
Commit
70fc9675
authored
2 years ago
by
Benoît Minisini
Browse files
Options
Downloads
Patches
Plain Diff
Store and restore the maximized state of windows.
[GB.SETTINGS] * NEW: Store and restore the maximized state of windows.
parent
012436e8
No related branches found
No related tags found
No related merge requests found
Pipeline
#528312403
passed
2 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
comp/src/gb.settings/.component
+1
-1
1 addition, 1 deletion
comp/src/gb.settings/.component
comp/src/gb.settings/.project
+1
-1
1 addition, 1 deletion
comp/src/gb.settings/.project
comp/src/gb.settings/.src/Settings.class
+16
-30
16 additions, 30 deletions
comp/src/gb.settings/.src/Settings.class
with
18 additions
and
32 deletions
comp/src/gb.settings/.component
+
1
−
1
View file @
70fc9675
[Component]
Key=gb.settings
Version=3.1
6
.90
Version=3.1
7
.90
Authors=Benoît Minisini
This diff is collapsed.
Click to expand it.
comp/src/gb.settings/.project
+
1
−
1
View file @
70fc9675
# Gambas Project File 3.0
Title=Gambas settings management
Startup=Main
Version=3.1
6
.90
Version=3.1
7
.90
VersionFile=1
Authors="Benoît Minisini"
TabSize=2
...
...
This diff is collapsed.
Click to expand it.
comp/src/gb.settings/.src/Settings.class
+
16
−
30
View file @
70fc9675
...
...
@@ -357,41 +357,25 @@ Private Sub ReadWindow(hWindow As Window, sKey As String)
aPos = Me[sKey &/ "Geometry"]
If Not aPos Or If aPos.Count < 2 Then
Return
Else
X = aPos[0]
Y = aPos[1]
If aPos.Count > 2 Then
W = aPos[2]
H = aPos[3]
If aPos.Count > 4 Then
S = aPos[4]
If S >= Screens.Count Then S = 0
Endif
Else
W = hWindow.W
H = hWindow.H
If Not aPos Or If aPos.Count < 2 Then Return
X = aPos[0]
Y = aPos[1]
If aPos.Count > 2 Then
W = aPos[2]
H = aPos[3]
If aPos.Count > 4 Then
S = aPos[4]
If S >= Screens.Count Then S = 0
Endif
Else
W = hWindow.W
H = hWindow.H
Endif
X += Screens[S].AvailableX
Y += Screens[S].AvailableY
' If Not hWindow.Parent And If Component.IsLoaded("gb.desktop") Then
' D = -1
' Try D = aPos[5]
' If D >= 0 Then
' hObserver = New Observer(hWindow, True) As "Window"
' hObserver.Tag = D
' $cObserver[hWindow.Id] = hObserver
' Endif
' Endif
' If Object.Type(hWindow) = "FHelpBrowser" Then
' Print "ReadWindow: "; X;; Y; " / "; S;; Screens[S].AvailableX;; Screens[S].AvailableY
' Endif
If hWindow.Resizable Then
W = Max(32, W)
H = Max(32, H)
...
...
@@ -404,6 +388,8 @@ Private Sub ReadWindow(hWindow As Window, sKey As String)
Else
If Not hWindow.Modal Then hWindow.Move(X, Y)
Endif
If aPos.Count > 5 And If aPos[5] Then hWindow.Maximized = True
End
...
...
@@ -431,7 +417,7 @@ Private Sub WriteWindow(hWindow As Window, sKey As String)
Endif
aVal = [X, Y, W, H, S]
aVal = [X, Y, W, H, S
, If(hWindow.Maximized, 1, 0)
]
' If Not hWindow.Parent And If Component.IsLoaded("gb.desktop") Then
' hDesktopWin = New DesktopWindow(hWindow.Id)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment