Hy everyone,
I have two class modules, one for the creation of the ... and another for the ....
in the event "oncheckboxchecked" I have created the condition but I don't know how to call the control to activate it
any suggestion?
Hy everyone,
Hy Matthew,
I have tried your suggestion but it still doesn't work, it's as if there was no binding between the two class modules.
I can't call any control of the propertymanagerpage module class from the module class handler, when I start the macro it returns the error "the variable has not been declared".
At the end I have copied all the content of the handler module class inside propertymanagerpageclass and now it works.
But in the examples I have seen of how to create PropertyManagerPages these class modules are separated ...
Thanks for your answer.
If you use the SolidWorks API SDK it builds the Property Manager Page and Handler classes separately and when you initialize the PMP class you create a Handler object and pass it a reference back to the creating PMP. Your method works as well and is generally what is done (by example) for creating PMP's in VBA macros. Either works it but putting all the event handlers in the PMP can make it a pretty big class.
If you switch to c# or vb.net and use Property Manager Pages made suuuuuper easy with SwEx.PMPage Framework then this task would have a minimum of code, check this: Assigning tags and managing Property Manager Page control dependencies
You need to set the actual control property. It appears that you are just setting a variable to True, how does the actual controls value get set. You need something like this:
pmpControlName.Enabled = True