⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.module

📁 Gambas is a graphical development environment based on a Basic interpreter, like Visual Basic. It us
💻 MODULE
字号:
' 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -