<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Custom Control</title><link>https://www.infopathdev.com:443/forums/thread/8861.aspx</link><pubDate>Fri, 20 Jan 2006 17:20:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8861</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8861.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8861</wfw:commentRss><description>If you cannot get what you need from the control itself, one alternative is to write code to load the XSL into a DOM and then do an XPath query for your object/param[NAME="Size"]/VALUE. This string value can then be broken out into its X/Y components for initialization via code or some other means.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Re: Custom Control</title><link>https://www.infopathdev.com:443/forums/thread/8860.aspx</link><pubDate>Fri, 20 Jan 2006 03:35:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8860</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8860.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8860</wfw:commentRss><description>Hi Richard,&lt;br /&gt;I don't think this is possible without writing code. All of the controls in the view have object info and you can query that through the InfoPath object model (check out the link to the SDK in our Resources section if you haven't downloaded it already for a full reference to the OM). In addition, I will ask Greg to respond to the question above.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Custom Control</title><link>https://www.infopathdev.com:443/forums/thread/5290.aspx</link><pubDate>Fri, 20 Jan 2006 00:21:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5290</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5290</wfw:commentRss><description>I want my custom control code to be aware of the size of the control as set in the design mode, &lt;br /&gt;&lt;br /&gt;When I add the control to the view, I have the following in the view.xsl, I want to be able to initialize my control's size to the sizes given in the &amp;lt;object&amp;gt; tag.. &lt;br /&gt;&lt;br /&gt;Is the CtrlID a way to access this ? &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;object class="xdActiveX" hideFocus="1" style="WIDTH: 100px; HEIGHT: 20px" classid="clsid:1fee489f-a555-4408-8fbf-3f69f8c57a43" tabIndex="0" tabStop="true" xd:xctname="{{1fee489f-a555-4408-8fbf-3f69f8c57a43}}" xd:CtrlId="CTRL302" xd:enabledValue="true" xd:enabledProperty="Enabled" xd:bindingType="text" xd:bindingProperty="Value" xd:boundProp="xd:inline" contentEditable="false" xd:binding="//ns1:ClinicalDocument/ns1:recordTarget/ns1:patientRole/ns1:id/@extension"&amp;gt;&lt;br /&gt;&amp;lt;xsl:if test="function-available('xdImage:getImageUrl')"&amp;gt;&lt;br /&gt;&amp;lt;xsl:attribute name="src"&amp;gt;&lt;br /&gt;&amp;lt;xsl:value-of select="xdImage:getImageUrl(//ns1:ClinicalDocument/ns1:recordTarget/ns1:patientRole/ns1:id/@extension)"/&amp;gt;&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;&amp;lt;/xsl:if&amp;gt;&lt;br /&gt;&amp;lt;param NAME="AccessibleDescription" VALUE=""/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="Visible" VALUE="True"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="BackColor" VALUE="Control"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="Dock" VALUE="None"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="ForeColor" VALUE="WindowText"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="Cursor" VALUE="Default"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="BackgroundImage" VALUE=""/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="AccessibleRole" VALUE="Default"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="ImeMode" VALUE="NoControl"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="AutoScrollMargin" VALUE="0, 0"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="Location" VALUE="0, 0"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="AllowDrop" VALUE="False"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="AutoScrollMinSize" VALUE="0, 0"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="Tag" VALUE=""/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="Size" VALUE="94, 26"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="TabIndex" VALUE="0"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="RightToLeft" VALUE="No"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="Anchor" VALUE="Top, Left"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="TabStop" VALUE="True"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="Font" VALUE="Verdana, 13world"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="AutoScroll" VALUE="False"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="Name" VALUE="UserControl1"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="CausesValidation" VALUE="True"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="Enabled" VALUE="True"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="ContextMenu" VALUE="(none)"/&amp;gt;&lt;br /&gt;&amp;lt;param NAME="AccessibleName" VALUE=""/&amp;gt;&lt;br /&gt;&amp;lt;/object&amp;gt;	&lt;br /&gt;&lt;br /&gt;	&lt;br /&gt;</description></item></channel></rss>