summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2010-12-13 09:59:52 +0000
committermösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2010-12-13 09:59:52 +0000
commite18805dcac65f02df6787a4537c396eebc71440a (patch)
treef42d5ec6a1519e45208a961998fd398885bc9a9c
parentcc0691e4238f6cc11228a2186416d3fc30ad6bda (diff)
• Endlich kann man die Größe der Bildschirmtastatur ändern. Leider flackert’s ein wenig während der Größenänderung, sonst aber nicht.
git-svn-id: https://svn.neo-layout.org@2356 b9310e46-f624-0410-8ea1-cfbb3a30dc96
-rw-r--r--windows/neo-vars/src/source/keyhooks.ahk5
-rw-r--r--windows/neo-vars/src/source/screenkeyboard.ahk20
2 files changed, 23 insertions, 2 deletions
diff --git a/windows/neo-vars/src/source/keyhooks.ahk b/windows/neo-vars/src/source/keyhooks.ahk
index ff4d71b..56a2435 100644
--- a/windows/neo-vars/src/source/keyhooks.ahk
+++ b/windows/neo-vars/src/source/keyhooks.ahk
@@ -22,3 +22,8 @@ GuiClose:
else
Gui, Destroy
return
+
+GuiSize:
+ if (GuiCurrent!="")
+ %GuiCurrent%OnSize()
+return
diff --git a/windows/neo-vars/src/source/screenkeyboard.ahk b/windows/neo-vars/src/source/screenkeyboard.ahk
index 54fe8fb..55a6925 100644
--- a/windows/neo-vars/src/source/screenkeyboard.ahk
+++ b/windows/neo-vars/src/source/screenkeyboard.ahk
@@ -125,7 +125,9 @@ GuiAddKey(key,x,y) {
global
x:=x-4
y:=y-10
- Gui, Add, Text, x%x% y%y% w38 h38 Center 0x200 hwndGuiKey%key% BackgroundTrans
+ GuiPosx%key% := x
+ GuiPosy%key% := y
+ Gui, Add, Text, x%x% y%y% w38 h38 Center 0x200 vGuiKey%key% hwndGuiKey%key% BackgroundTrans
GuiKeyList := GuiKeyList . key . ","
}
@@ -145,6 +147,20 @@ BSTOnClose() {
CharProc__BST0()
}
+BSTOnSize() {
+ global
+ Gui, Show, % "y" . yposition . " w" . A_GuiWidth . " h" . A_GuiWidth*199/729 . " NoActivate", Neo-Bildschirmtastatur
+ GuiControl,,Picture0, % "*w" . A_GuiWidth . " *h-1 " . ResourceFolder . "\ebene0.png"
+ Gui, Font, % "s" . A_GuiWidth*12/729 . " bold", % UniFontName
+ loop,parse,GuiKeyList,`,
+ {
+ GuiPhysKey := A_LoopField
+ GuiControl,Font,GuiKey%GuiPhysKey%
+ GuiControl,Move,GuiKey%GuiPhysKey%, % "x" . GuiPosx%GuiPhysKey%*A_GuiWidth/729 . " y" . GuiPosy%GuiPhysKey%*A_GuiWidth/729 . " w" . 38*A_GuiWidth/729 . " h" . 38*A_GuiWidth/729
+ }
+ GuiControl,MoveDraw,Picture0
+}
+
CharProc__BST0() {
global
GuiCurrent := ""
@@ -271,7 +287,7 @@ CharProc__BST1() {
GuiAddKeySN("052",601,168)
GuiAddKeySN("053",658,168)
- Gui, +AlwaysOnTop +ToolWindow
+ Gui, +AlwaysOnTop +ToolWindow +Resize -MaximizeBox
Gui, Show, y%yposition% w729 h199 NoActivate, Neo-Bildschirmtastatur
BSTUpdate()
BSTalwaysOnTop := 1