<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Need a nice versatile container</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Need a nice versatile container]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:28:25 +0000</pubDate>
  <lastBuildDate>Tue, 19 May 2009 20:37:02 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=14313</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Need a nice versatile container : Send funds to Account #12345 at...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49164&amp;title=need-a-nice-versatile-container#49164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14313<br /><strong>Posted:</strong> 19 May 2009 at 8:37pm<br /><br />Send funds to Account #12345 at my bank <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0" align="absmiddle"><br><br>Actually, I'm glad to help a bit with this (as I find time), because I am also interested in the capabilities and limitations of the new markup objects. <br><br>You do have complete control over the fonts for the MarkupTextBlock objects. In the supplied UserControl, those objects are stored in the mo_Caption, mo_SubCaption and mo_Body object variables, so you can change their Font* properties at any time. Because everything is wrapped in a UserControl, you can create your own public font property/properties to mirror the MarkupTextBlock font properties (FontFamily, FontSize, FontStyle, etc...they aren't identically named to the standard VB font properties), or you can just change the font size in the UserControl_Resize event. <br><br>My best advice would be to look over the supplied Usercontrol code closely and play around with it to see what results you can get. If you get stumped, get back to me and I will try to help.<br>]]>
   </description>
   <pubDate>Tue, 19 May 2009 20:37:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49164&amp;title=need-a-nice-versatile-container#49164</guid>
  </item> 
  <item>
   <title><![CDATA[Need a nice versatile container : Wow, you are amazing. I feel like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49163&amp;title=need-a-nice-versatile-container#49163</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5054">DaveB</a><br /><strong>Subject:</strong> 14313<br /><strong>Posted:</strong> 19 May 2009 at 8:07pm<br /><br />Wow, you are amazing.&nbsp; I feel like I should be paying you for this...<DIV>&nbsp;</DIV><DIV>I use a Resize control (not to be confused with the CJ Resizer control) that automatically resizes everything in the window as it is stretched larger and smaller.&nbsp; Normally this also adjusts the size of the fonts on the screen but since there is no Font property exposed for the Caption, Subcaption, and Body text, it doesn't change them.&nbsp; Am I correct in assuming that I could use the markup language to change the font attributes on Form_Resize?&nbsp; Or do you have some other magical way to accomplish this?</DIV>]]>
   </description>
   <pubDate>Tue, 19 May 2009 20:07:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49163&amp;title=need-a-nice-versatile-container#49163</guid>
  </item> 
  <item>
   <title><![CDATA[Need a nice versatile container : I had a chance to try out a few...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49161&amp;title=need-a-nice-versatile-container#49161</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14313<br /><strong>Posted:</strong> 19 May 2009 at 5:13pm<br /><br />I had a chance to try out a few more things with the MarkupLabel control.<br><br>MouseMove &amp; Click events were fairly straight forward, although getting the cursor position required API calls. DblClick proves to be more elusive. The MarkupLabel doesn't expose a DblClick handler, so you would have to calculate the time between clicks and register a double-click if they were close enough together. This is enough of a pain in the butt that I don't feel like doing it. Here's the latest sample though (also adds PageColor property):<br><br><a href="uploads/20090519_170904_AdvancedLabel.zip" target="_blank">uploads/20090519_170904_AdvancedLabel.zip</a><br><br>Some questions for <b>Codejock</b>:<br><br>1) Is the MarkupLabel a windowless control, or is the Hwnd property just not exposed? If we could have access to the Hwnd property for subclassing, that would very useful.<br>2) Any chance of adding a MouseDblClick event handler for all of the markup objects?<br>3) Any chance of having access to the Mouse coordinates in the appropriate scalemode units without having to resort to API calls?<br>4) Any chance of control level Mouse events for the MarkupLabel control (MouseMove, MouseUp, MouseDown, Click, DblClick, etc...) rather than having to resort to markup object level handlers?<br><br>Thanks in advance for any answers to the above questions.<br><br>]]>
   </description>
   <pubDate>Tue, 19 May 2009 17:13:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49161&amp;title=need-a-nice-versatile-container#49161</guid>
  </item> 
  <item>
   <title><![CDATA[Need a nice versatile container : The project I sent you was a basic...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49156&amp;title=need-a-nice-versatile-container#49156</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14313<br /><strong>Posted:</strong> 19 May 2009 at 3:17pm<br /><br />The project I sent you was a basic demo to illustrate how your initial requirements could be implemented using the MarkupLabel control. I'm a bit busy with my own work right now to write the project for you, but you can add the events you require to the supplied usercontrol and fire them using the RaiseEvents method whenever appropriate.&nbsp; As for the colour, the VB6 code is as I supplied (you can wrap this code in a property in the UserControl and the call the property from your parent form just like any other property. See the BackColor property in the UserControl code for an example).<br><br>Unfortunately, it doesn't look like the MarkupLabel supports Click, DblClick or MouseMove so you would have to implement a handler on the constituent markup objects...<a href="https://forum.codejock.com/forum_posts.asp?TID=12861&amp;PID=43589#43589" target="_blank">See this post for more information</a> on implementing events for markup objects.<br>]]>
   </description>
   <pubDate>Tue, 19 May 2009 15:17:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49156&amp;title=need-a-nice-versatile-container#49156</guid>
  </item> 
  <item>
   <title><![CDATA[Need a nice versatile container : The more I work with thisAdvancedLabel...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49155&amp;title=need-a-nice-versatile-container#49155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5054">DaveB</a><br /><strong>Subject:</strong> 14313<br /><strong>Posted:</strong> 19 May 2009 at 3:04pm<br /><br />The more I work with this&nbsp;AdvancedLabel control, the more it seems to be missing.<DIV>&nbsp;</DIV><DIV>Looking at the events, there is a GotFocus and LostFocus (which seems very strange for a label-type control), but there is no Click or DblClick or MouseDown or MouseMove or MouseUp.</DIV><DIV>&nbsp;</DIV><DIV>I need to be able to use Click, DblClick, and MouseMove at a minimum.&nbsp; Is there any way to do this?</DIV>]]>
   </description>
   <pubDate>Tue, 19 May 2009 15:04:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49155&amp;title=need-a-nice-versatile-container#49155</guid>
  </item> 
  <item>
   <title><![CDATA[Need a nice versatile container : In VB6: If I have an AdvancedLabel1...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49153&amp;title=need-a-nice-versatile-container#49153</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5054">DaveB</a><br /><strong>Subject:</strong> 14313<br /><strong>Posted:</strong> 19 May 2009 at 2:48pm<br /><br /><P>In VB6:</P><DIV>If I have an AdvancedLabel1 on a form, what would the actual code be to change the background of it to &amp;HFFC0C0 ?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 19 May 2009 14:48:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49153&amp;title=need-a-nice-versatile-container#49153</guid>
  </item> 
  <item>
   <title><![CDATA[Need a nice versatile container : Hi Dave,You can change the background...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49140&amp;title=need-a-nice-versatile-container#49140</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14313<br /><strong>Posted:</strong> 19 May 2009 at 9:23am<br /><br />Hi Dave,<br><br>You can change the background colour of the label area as follows:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Set mo_Page.Background = UserControl.MarkupLabel1.MarkupContext.CreateSolidBrush(GetActualColor(X))<br></pre></td></tr></table><br><br>Where X is the colour (or system colour) that you want to use.<br><br>Unfortunately, the <a href="https://forum.codejock.com/forum_posts.asp?TID=13845" target="_blank">Image object is broken in the current release of the MarkupLabel</a>, so we'll have to wait for the next version to add that feature.<br><br>]]>
   </description>
   <pubDate>Tue, 19 May 2009 09:23:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49140&amp;title=need-a-nice-versatile-container#49140</guid>
  </item> 
  <item>
   <title><![CDATA[Need a nice versatile container : This would be really easy if CJ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49132&amp;title=need-a-nice-versatile-container#49132</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5054">DaveB</a><br /><strong>Subject:</strong> 14313<br /><strong>Posted:</strong> 19 May 2009 at 5:59am<br /><br />This would be really easy if CJ would just add rounded corners and shadow to the Resizer control.&nbsp; Then I could drop in anything I wanted.&nbsp; (And while you are at it, add rounded corners, shadow, and a border to the ShortcutCaption control.)<DIV>&nbsp;</DIV><DIV>This would make excellent controls Xtremely excellent...&nbsp; </DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 19 May 2009 05:59:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49132&amp;title=need-a-nice-versatile-container#49132</guid>
  </item> 
  <item>
   <title><![CDATA[Need a nice versatile container :   The AdvancedLabel has almost...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49121&amp;title=need-a-nice-versatile-container#49121</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5054">DaveB</a><br /><strong>Subject:</strong> 14313<br /><strong>Posted:</strong> 18 May 2009 at 9:30pm<br /><br /><DIV></DIV><DIV></DIV><DIV>The AdvancedLabel has almost everything I need... almost.</DIV><DIV>&nbsp;</DIV><DIV>Is there a way to change the main background color of the label from white to something else?&nbsp; I need to be able to change the fill color of each label depending on the family line they are in.</DIV><DIV>&nbsp;</DIV><DIV>Also, I need to put a graphic in the upper-right corner to indicate a link to another database.</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20090518_212228_Example2.JPG" border="0"></DIV><DIV>&nbsp;</DIV><DIV>This graphic needs to be click-able so that I can head off and do something when they click it.</DIV><DIV>&nbsp;</DIV><DIV>Any help on this would be greatly appreciated.</DIV>]]>
   </description>
   <pubDate>Mon, 18 May 2009 21:30:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49121&amp;title=need-a-nice-versatile-container#49121</guid>
  </item> 
  <item>
   <title><![CDATA[Need a nice versatile container : You can create your own control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49083&amp;title=need-a-nice-versatile-container#49083</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14313<br /><strong>Posted:</strong> 17 May 2009 at 11:47am<br /><br />You can create your own control with all of the properties/features that you need. I've put together an example using the MarkupLabel objects instead of (hard to work with) XAML strings:<br><br><a href="uploads/20090517_114527_AdvancedLabel.zip" target="_blank">uploads/20090517_114527_AdvancedLabel.zip</a><br><br>It's incomplete, but should give you a good starting point. Try it out, and if you have any questions, please get back to me.<br><br>]]>
   </description>
   <pubDate>Sun, 17 May 2009 11:47:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14313&amp;PID=49083&amp;title=need-a-nice-versatile-container#49083</guid>
  </item> 
 </channel>
</rss>