MaxCADWindow property example
Sub MaxAutoCADWindow_Example()
Dim myPrefs As AcadPreferences
Set myPrefs = ThisDrawing.Application.Preferences
Dim bCurrMaximizedState As Boolean
bCurrMaximizedState = myPrefs.Display.MaxAutoCADWindow
MsgBox "The current value for MaxAutoCADWindow is " & bCurrMaximizedState
myPrefs.Display.MaxAutoCADWindow = Not (bCurrMaximizedState)
MsgBox "The new value for MaxAutoCADWindow is " & myPrefs.Display.MaxAutoCADWindow
myPrefs.Display.MaxAutoCADWindow = bCurrMaximizedState
MsgBox "The MaxAutoCADWindow value is reset to " & myPrefs.Display.MaxAutoCADWindow
End Sub
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV
are fully owned subsidiaries of Menhirs NV. Copyright ©
2001- Menhirs NV - All rights reserved. |