Just add a toggle button on your form, and check the value of Pickstyle, and
change the value of the toggle button according the value of the picklist.
In the form activate event put
If ThisDrawing.GetVariable("Pickstyle") = 3 Then
tog.Value = False
Elseif ThisDrawing.GetVariable("Pickstyle") = 0
tog.Value = True
End If
In the change event of the toggle,
If tog.Value Then
ThisDrawing.SetVariable "Pickstyle", 0
Else
ThisDrawing.SetVariable "Pickstyle", 3
End If
"Albert Giuliano"
a écrit dans le message de news:
4892857@discussion.autodesk.com...
Really new to this VBA stuff and got a hold of the "AcadStatButton" routine
from manusoft.com
I used the SBBTest.dvd (Re named to Pickstyle) as a template. What I'm
trying to do is make a toggle button that will alow me to reset a variable.
For example:
I want to reset the Pickstyle variable:
When the button is "Unpressed" the Pickstle varible will be set to "3"
(normally how I have it set in all my drawings)
When the button is "Pressed" the Pickstle varible will be set to "0"
Does any one have an example or know of a resource that show how to make a
Toggle button in VBA.
TIA
Posted my file in Customer Files