config.module

来自「Gambas is a graphical development enviro」· MODULE 代码 · 共 37 行

MODULE
37
字号
' Gambas module filePUBLIC SUB LoadWindow(hWindow AS Window, sKey AS String)  DIM sPos AS String  DIM cPos AS String[]  sPos = Settings[sKey]  IF NOT sPos THEN RETURN  cPos = Split(sPos, ",")  IF cPos.Count = 4 AND hWindow.Border = Window.Resizable THEN    IF hWindow.Modal THEN      hWindow.Resize(cPos[2], cPos[3])    ELSE      hWindow.Move(cPos[0], cPos[1], cPos[2], cPos[3])    ENDIF  ELSE    IF NOT hWindow.Modal THEN hWindow.Move(cPos[0], cPos[1])  ENDIFENDPUBLIC SUB SaveWindow(hWindow AS Window, sKey AS String)  DIM sPos AS String  sPos = CStr(hWindow.X) & "," & CStr(hWindow.Y)  'IF hWindow.Border = Window.Resizable THEN    sPos = sPos & "," & CStr(hWindow.Width) & "," & CStr(hWindow.Height)  'ENDIF  Settings[sKey] = sPosEND

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?