Reply

Hook FileUIEvents

[ Edited ]

How can i hook FileUIEvents in then new templates for vb.net???

 

sorry my bad english...

 

Posted by: Aldo Kruger
Post date: 7/19/2005 11:58:52 PM

4 REPLIES

RE: Hook FileUIEvents

[ Edited ]

Aldo,

 

Great to hear from you. I'm glad your using the templates. Attached to this post is a sample Addin.vb class that does what you want. You bring up a good point in that this functionality should probably be added to the templates.

 

I made comments like 'Added for Aldo in the code.

 

Let me know if you have any more questsions or problems.

 

Posted by: Jason Newell
Post date: 7/20/2005 4:02:07 PM

RE: Hook FileUIEvents

[ Edited ]

Jason,

 

In your example...

 

'SolidEdgeFramework.ISEAddInEvents

HookEvents(Me.addin, New Guid("{0F539244-4816-11D2-B5AC-080036E8B802}"))

'SolidEdgeFramework.ISEApplicationEvents

HookEvents(Me.application, New Guid("{90223887-09CD-11D1-BA07-080036230602}"))

'SolidEdgeFramework.ISEFileUIEvents

' Added this HookEvents() for Aldo

HookEvents(Me.application, New Guid("{ECC667A1-A4AA-11D1-AECC-08003616CE02}"))

 

Aldo.

 

Posted by: Aldo Kruger
Post date: 7/21/2005 7:11:09 AM

RE: Hook FileUIEvents

[ Edited ]

Aldo,

 

Yes this is correct. The application object exposes the FileUIEvents property. The corresponding interface to this property is ISEFileUIEvents. ISEFileUIEvents is defined in the registry under this key: HKEY_CLASSES_ROOT\Interface\{ECC667A1-A4AA-11D1-AECC-08003616CE02}.

 

There were about 3 diferent sections of code that I changed and made comments for you. Make sure your addin class implements the SolidEdgeFramework.ISEFileUIEvents interface like the example. Once you have implemented that interface, HookEvents() will work.

 

Let me know if you have any questions or problems.

 

Posted by: Jason Newell
Post date: 7/21/2005 9:06:06 AM

RE: Hook FileUIEvents

[ Edited ]

Jason,

 

tanks for its reply...

 

now this functioning.

 

Aldo.

 

Posted by: Aldo Kruger
Post date: 7/22/2005 12:05:27 AM