<?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 : Form Designer -- advice wanted</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : MarkupLabel Control : Form Designer -- advice wanted]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 01:58:56 +0000</pubDate>
  <lastBuildDate>Sat, 17 Jul 2010 10:18:45 +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=16961</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[Form Designer -- advice wanted : Thanks for the very useful reply.&amp;gt;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59366&amp;title=form-designer-advice-wanted#59366</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 16961<br /><strong>Posted:</strong> 17 July 2010 at 10:18am<br /><br />Thanks for the very useful reply.<br><br>&gt; If you only had a few control "types" that you want to make available to the user,<br>&gt; you could have a Collection object hold classes representing your controls <br>&gt; virtually (position, size, control type, value, etc...). <br>That is roughly what I do at present -- I have one textbox, one label, and one imagebox, and that is all the users can change.&nbsp; They can "add" copies of these controls in the control collection.<br><br>For years I used Windows API functions to permit dragging and resizing the objects.&nbsp; Now (after seeing some example code on the internet) I have got rid of all that and made things MUCH simpler. <br>Basically, in the MouseDown event of each control I note the mouse X and Y location.<br>then in the MouseMove event I see how much the mouse has moved and adjust the position of the control (as long as mouse is still down).<br><br>For resizing, I just put a small dot at the corners of the control (when MouseDown on control to select it), and then in the MouseMove event of the dot, adjust the size of the control.<br><br>By setting the MouseCursor type as appropriate, it all works smoothly and neatly --exactly like editing controls in the VB IDE. I am amazed how well it works.<br><br>I will take a look at the CJ Property editor as that does sound just what I want. <br>]]>
   </description>
   <pubDate>Sat, 17 Jul 2010 10:18:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59366&amp;title=form-designer-advice-wanted#59366</guid>
  </item> 
  <item>
   <title><![CDATA[Form Designer -- advice wanted : I think it would be a pretty big...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59365&amp;title=form-designer-advice-wanted#59365</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 16961<br /><strong>Posted:</strong> 17 July 2010 at 9:09am<br /><br />I think it would be a pretty big job, but I think that it could be done with the MarkupLabel control, especially the latest (non-public) version with the new MarkupWindowContainer object. Maybe you could a support ticket and ask Oleg for the new version so you could test it out?<br><br>If you only had a few control "types" that you want to make available to the user, you could have a Collection object hold classes representing your controls virtually (position, size, control type, value, etc...). Then when the user clicks an area where a control is supposed to be, you could move the WindowContainer to that position and make it visible. When the user clicks somewhere that there is no control, you could hide the WindowContainer. This way, you need only have 1 control of each type that the user can have, and you just show and hide it dynamically.&nbsp; Whether or not this would be satisfactory would depend on your requirements.<br><br>The biggest issue will be moving the objects around by mouse, since I have not solved this problem very well yet - there is still apparently no way to get the current position of a Markup object, so it makes relative movement difficult. It's possible that using the MarkupWindowContainer object with an ActiveX control that the ActiveX control Left, Top, etc... properties will return their position, but I haven't had a chance to test this yet.<br><br>You also might find it easier to put everything inside a MarkupGrid object in order to constrain the user to certain cells - but again, this may not be satisfactory, depending on your requirements.<br><br>Anyway, if you care to give it a try, I would be glad to help as much as I can (which unfortunately isn't as much as it used to be lately!), so just post back with any problems that you encounter and we'll see if we can solve them,<br><br><br>]]>
   </description>
   <pubDate>Sat, 17 Jul 2010 09:09:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59365&amp;title=form-designer-advice-wanted#59365</guid>
  </item> 
  <item>
   <title><![CDATA[Form Designer -- advice wanted : Hi Chris,  It could be done...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59364&amp;title=form-designer-advice-wanted#59364</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 16961<br /><strong>Posted:</strong> 17 July 2010 at 8:14am<br /><br />Hi Chris,<DIV>&nbsp;</DIV><DIV>It could be done with Markup but I think this means&nbsp;a lot of coding... Newly added MarkupWindowContainer object could be used to add textboxes, buttons etc etc. So visual aspects like size, position, colors, fonts etc...&nbsp;shouldn't be that hard to implement. Storing and loading the entire layout ??? I don't know ?!?!&nbsp; Maybe it's&nbsp;a simple thing to do... (Better ask Jason <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0">)&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>For the properties of (for example) a textbox, do you load members from TypeLib or do you have only a few properties that you can manipulate? CJ PropertyGrid control&nbsp;could be used&nbsp;for the settings part&nbsp;(just like VB IDE&nbsp;uses a propertygrid for all&nbsp;ActiveX controls)&nbsp;and it's easy to use <img src="http://forum.codejock.com/smileys/smiley4.gif" border="0">&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Well there are a lot of options but not one with "built in" functionality you want, Good luck <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 17 Jul 2010 08:14:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59364&amp;title=form-designer-advice-wanted#59364</guid>
  </item> 
  <item>
   <title><![CDATA[Form Designer -- advice wanted : Thanks, I have seen the greatis...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59363&amp;title=form-designer-advice-wanted#59363</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 16961<br /><strong>Posted:</strong> 17 July 2010 at 7:03am<br /><br />Thanks, I have seen the greatis control and it looks to be exactly what I am wanting to do.&nbsp; But it is another 3rd party control that I would have to buy and distribute to end-users.<br><br>But mainly, I want to do it myself (hopefully with CJ controls) so I have full control ('scuse pun) over the program and can make it look the same as the rest of my app.<br>]]>
   </description>
   <pubDate>Sat, 17 Jul 2010 07:03:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59363&amp;title=form-designer-advice-wanted#59363</guid>
  </item> 
  <item>
   <title><![CDATA[Form Designer -- advice wanted : Yes I have a need for this. My...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59362&amp;title=form-designer-advice-wanted#59362</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 16961<br /><strong>Posted:</strong> 17 July 2010 at 7:00am<br /><br />Yes I have a need for this. My accounting app allows users to design their own reports and label layouts, and create their own database for storing things like club membership details. For years I have done this using normal VB controls though it is a bit crude and not that pretty.<br><br>I just wondered if CodeJock had anything that could be used to improve things? Or even better, a sample showing how to do it?<br>]]>
   </description>
   <pubDate>Sat, 17 Jul 2010 07:00:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59362&amp;title=form-designer-advice-wanted#59362</guid>
  </item> 
  <item>
   <title><![CDATA[Form Designer -- advice wanted : Hi  Look here: http://www.gr...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59360&amp;title=form-designer-advice-wanted#59360</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=841">Fabian</a><br /><strong>Subject:</strong> 16961<br /><strong>Posted:</strong> 17 July 2010 at 2:52am<br /><br />Hi<DIV>&nbsp;</DIV><DIV>Look here: <a href="http://www.greatis.com/vb/&#102;ormdes/index.html" target="_blank">http://www.greatis.com/vb/formdes/index.html</A></DIV><DIV>&nbsp;</DIV><DIV>Regards, Fabian</DIV>]]>
   </description>
   <pubDate>Sat, 17 Jul 2010 02:52:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59360&amp;title=form-designer-advice-wanted#59360</guid>
  </item> 
  <item>
   <title><![CDATA[Form Designer -- advice wanted : Not answering your question, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59358&amp;title=form-designer-advice-wanted#59358</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3745">JantjeKeizer</a><br /><strong>Subject:</strong> 16961<br /><strong>Posted:</strong> 16 July 2010 at 7:01pm<br /><br />Not answering your question, but do you have a really good reason to do this?<br />Usually this is a very bad idea and hard to maintain.<br />If you want the end user to have customized forms, then make a plugin system and expose core functionality.]]>
   </description>
   <pubDate>Fri, 16 Jul 2010 19:01:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59358&amp;title=form-designer-advice-wanted#59358</guid>
  </item> 
  <item>
   <title><![CDATA[Form Designer -- advice wanted : I want to allow end users of my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59345&amp;title=form-designer-advice-wanted#59345</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4225">chrisABC</a><br /><strong>Subject:</strong> 16961<br /><strong>Posted:</strong> 16 July 2010 at 5:15am<br /><br />I want to allow end users of my software (ie at Run Time) to design their own input Form or report layout.<br>This means I need to display a Form, and let the user add Labels, Textboxes, Images, Lines, etc, and be able to drag these around, resize, set colors and fonts, etc. <br>Finally I need to save properties of all the controls, and load them again when required.<br><br>I've got rough examples working, just using standard VB, saving each property in a field in a database.<br><br>Can you suggest any CJ Controls that would make this sort of thing easier?&nbsp; I am thinking maybe (and vaguely) of Markup Label, and saving/loading XML.<br>Are there any samples of this type of thing?&nbsp; Is there a better Topic to ask this question?<br>]]>
   </description>
   <pubDate>Fri, 16 Jul 2010 05:15:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16961&amp;PID=59345&amp;title=form-designer-advice-wanted#59345</guid>
  </item> 
 </channel>
</rss>