How to add property to property map without class explorer?
Asked Answered
A

1

66

I've got a new question after answer on this question Pass parameter from page to ActiveX

How to add property to property map without class explorer?

Need to add the property for object and class explorer doesn't work because Nemerle doesn't support it yet.

Code:

<object id="DBTableRepX"
 classid="CLSID:CA8B72B3-3B15-40D7-9364-478E25AF5B41"
 codebase="DBTableRepX.cab"
    style="
    Z-INDEX: 102; LEFT: 20px; WIDTH: 1200px; 
    POSITION: absolute; TOP: 80px; HEIGHT: 600px">
    <param name="ax_Command" value='<%=GetText()%>'/>
</object>
Amrita answered 14/5, 2010 at 9:59 Comment(4)
Is your GetText() method marked as public?Obelisk
@Obelisk I can't be sure it was on May 2010, but I hope so.Amrita
I didn't even check the date of the post but I find it interesting that it's the top question on the unanswered tab. Assumed it was a recent post :pObelisk
So I still remember there was some ActiveX and I need to transfer property there but it's more Nemerle and property map related question.Amrita
S
5

Why not derive you own ActiveX class from the one you are using and add the property to the derived class?

Or make a wrapper class and use that.

Storey answered 23/1, 2012 at 11:3 Comment(7)
I'm not sure that I can have a sources of the ActiveX... Can I still do it?Amrita
yes, you can. Souce code is not needed for a wrapper class nor deriving from it. Your own class will need to be an ActiveX control in it own right. Not elegant and a bit clunky, though possible.Storey
But I still not fully understand the idea. You say "add the property to the derived class" but there is the same trouble, no class explorer there.Amrita
Add the property to source code for the derived class, as you would do for any class that you define.Storey
@nCdy Where are you defining GetText?Storey
I don't remember about GetText, it was two years ago after all. I'm not sure if it is possible to add property to property map in source, I remember I still can't find solution for it.Amrita
What I am suggesting is to create your own ActiveX control as a new project and implement the functionality using the Bacs_DBTableRepX class as base or a class member.Storey

© 2022 - 2024 — McMap. All rights reserved.