Discussion:
VB ActiveX Control param and custom properties
(too old to reply)
Glenn
2003-11-13 14:46:25 UTC
Permalink
I have created multiple controls all with the same problem but here is
the short of it.

Custom controls with custom properties. Exposed via the normal
property get and let statements.

If I put the control on a web page via the object tag it is fine.
However if I add a custom property via a param tag then it disappears.
I have found that if I set the _ExtentsX and _ExtentsY then it shows
up again but it still appears to completely ignore my property
setting. I have tried license files, lpk files with appropriate
object tags. Anyone?

Here is the page in a scaled down version.

<HTML>
<HEAD>
<TITLE>New Page</TITLE>
</HEAD>
<BODY>

<OBJECT CLASSID="clsid:5220CB21-C88D-11cf-B347-00AA00A28331">
<PARAM NAME="LPKPath" VALUE="mylicense.lpk">
</OBJECT>

<OBJECT ID="SetProps1" NAME="SetProps1" WIDTH=320 HEIGHT=240
CLASSID="CLSID:01EBE529-C079-4F5F-92F7-C22302995207"
CODEBASE="Testing.ocx">
<PARAM NAME="_ExtentX" VALUE="8467">
<PARAM NAME="_ExtentY" VALUE="6350">
<PARAM NAME="theText" VALUE="6350">
</OBJECT>

</BODY>
</HTML>
Glenn
2003-11-17 15:58:02 UTC
Permalink
Answered found:
You must include all functionality for storing and accessing
properties before this will work. Unlike a VB application where you
can see the properties and set them at runtime without using the
property bag this is not possible with IE. You must use the
init_properties, read_properties, and write_properties for these to be
available in IE.

Using the ActiveX Control pad makes your public properties obvious.
If everything is correct it will allow setting them along with placing
the appropriate param tags in the html. Otherwise it will most likely
just include the base _extentx and _extenty params.

Hope this helps any other developers with this problem.
Post by Glenn
I have created multiple controls all with the same problem but here is
the short of it.
Custom controls with custom properties. Exposed via the normal
property get and let statements.
If I put the control on a web page via the object tag it is fine.
However if I add a custom property via a param tag then it disappears.
I have found that if I set the _ExtentsX and _ExtentsY then it shows
up again but it still appears to completely ignore my property
setting. I have tried license files, lpk files with appropriate
object tags. Anyone?
Here is the page in a scaled down version.
<HTML>
<HEAD>
<TITLE>New Page</TITLE>
</HEAD>
<BODY>
<OBJECT CLASSID="clsid:5220CB21-C88D-11cf-B347-00AA00A28331">
<PARAM NAME="LPKPath" VALUE="mylicense.lpk">
</OBJECT>
<OBJECT ID="SetProps1" NAME="SetProps1" WIDTH=320 HEIGHT=240
CLASSID="CLSID:01EBE529-C079-4F5F-92F7-C22302995207"
CODEBASE="Testing.ocx">
<PARAM NAME="_ExtentX" VALUE="8467">
<PARAM NAME="_ExtentY" VALUE="6350">
<PARAM NAME="theText" VALUE="6350">
</OBJECT>
</BODY>
</HTML>
Loading...