我正在使用 GridMove 来组织我的窗口,但在全屏选项中编程时遇到了问题。有没有人有使用过这个工具并能帮助我?
这是我当前的代码,第 3 号没有按(我)预期的方式工作:
[1]
TriggerTop = [Monitor1Top]
TriggerLeft = [Monitor1Left]
TriggerBottom= [Monitor1Top] + [Monitor1Height]
TriggerRight = [Monitor1Left] + [Monitor1Width] / 2
GridTop = [Monitor1Top]
GridLeft = [Monitor1Left]
GridBottom= [Monitor1Top] + [Monitor1Height]
GridRight = [Monitor1Left] + [Monitor1Width] / 2
[2]
TriggerTop = [Monitor1Top]
TriggerLeft = [Monitor1Left] + [Monitor1Width] / 2
TriggerBottom= [Monitor1Top] + [Monitor1Height]
TriggerRight = [Monitor1Right]
GridTop = [Monitor1Top]
GridLeft = [Monitor1Left] + [Monitor1Width] / 2
GridBottom= [Monitor1Top] + [Monitor1Height]
GridRight = [Monitor1Right]
[3]
TriggerTop = [Monitor1Top]
TriggerLeft = [Monitor1Left] + [Monitor1Width]
TriggerBottom= [Monitor1Top] + [Monitor1Height]
TriggerRight = [Monitor1Right]
GridTop = [Monitor1Top]
GridLeft = [Monitor1Left] + [Monitor1Width]
GridBottom= [Monitor1Top] + [Monitor1Height]
GridRight = [Monitor1Right]
谢谢你的时间!
答案1
触发区域和网格动作之间有点混淆。3
号应该有一个不是整个显示器的触发区域。
你应该创建一个布局,在屏幕上放置三个不重叠使用 Trigger* 参数绘制矩形,并在 Grid* 中进行所需的三个操作。
答案2
啊哈,其实这是一个低级错误,应该是:
[3]
TriggerTop = [Monitor1Top]
TriggerLeft = [Monitor1Left] + [Monitor1Width]
TriggerBottom= [Monitor1Top] + [Monitor1Height]
TriggerRight = [Monitor1Right]
GridTop = [Monitor1Top]
GridLeft = [Monitor1Left]
GridBottom= [Monitor1Top] + [Monitor1Height]
GridRight = [Monitor1Right]
旧版本实际上会使其宽度为 0 像素。