Skip to content

Commit

Permalink
! Fixed some examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
miodrag.milic committed Sep 27, 2010
1 parent f3139f8 commit dee9c02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions Form/tests/Align/Layouts.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ _("mo! w d")

Gui, Show, w500 h600 Hide

Gui, Add, Edit, HWNDhEdit, F1 - hide`nF2 - show
Gui, Add, Edit, HWNDhEdit, F1 - show/hide
hSplit := Splitter_Add()
Gui, Add, ListView, HWNDhList, Top control
Gui, Add, Text, h100 0x200 HWNDhText,  Bottom
Expand All @@ -24,11 +24,11 @@ _("mo! w d")

if !Win_Recall("<", "", "config2.ini")
Gui, Show

bHidden := 0
return

F1:: HideControls(true)
F2:: HideControls(false)
F3:: Attach()
F1:: HideControls(bHidden := !bHidden)

SetGui(type=""){
global
Expand Down Expand Up @@ -132,14 +132,15 @@ SaveGui() {
HideControls(false)

p := Splitter_GetPos(hSplit)

Win_Recall(">", "", "config2.ini")
IniWrite, %p%, config2.ini, Config, Splitter
IniWrite, %b%, config2.ini, Config, Visible
}


ESC::
SaveGui()
ExitApp
return

Expand Down
8 changes: 4 additions & 4 deletions Form/tests/Align/_Test.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _("m! w e d")

Gui, Show, w500 h600 Hide

Gui, Add, Edit, HWNDhEdit, F1 - hide`nF2 - show
Gui, Add, Edit, HWNDhEdit, F1 - show / hide
hSplit := Splitter_Add()
Gui, Add, ListView, HWNDhList, Top control
Gui, Add, Text, h100 0x200 HWNDhText,  Bottom
Expand All @@ -28,11 +28,11 @@ _("m! w e d")

if !Win_Recall("<", "", "config.ini")
Gui, Show

bHidden := 0
return

F1:: HideControls(true)
F2:: HideControls(false)
F3:: Attach()
F1:: HideControls(bHidden := !bHidden)

HideControls(bHide) {
global
Expand Down

0 comments on commit dee9c02

Please sign in to comment.