使用 object 修改任何文档窗口的位置和大小。Document 可以使用属性最小化或最大化“文档”窗口,并且可以使用属性查找“文档”窗口的当前状态。WindowStateWindowState 定位“文档”窗口本示例使用 与属性将活动“文档”窗口设置为 400 像素宽 x 400 像素高。WidthHeight Sub Ch3_SizeDocumentWindow() ThisDrawing.Width = 400 ThisDrawing.Height = 400 End Sub 最大化活动“文档”窗口Sub Ch3_MaximizeDocumentWindow() ThisDrawing.WindowState = acMax End Sub 最小化活动“文档”窗口Sub Ch3_MinimizeDocumentWindow() ThisDrawing.WindowState = acMin End Sub 查找活动“文档”窗口的当前状态Sub Ch3_CurrentWindowState() Dim CurrWindowState As Integer Dim msg As String CurrWindowState = ThisDrawing.WindowState msg = Choose(CurrWindowState, "normal", "minimized", "maximized") MsgBox "The document window is " + msg End Sub |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )
GMT+8, 2024-5-12 03:22
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.