This project is read-only.

BeautifyX - Where is source code

Topics: Attention VFPX Admins, Bug Information
Jan 31, 2013 at 8:36 AM
If I go to the BeautifyX page there is no download. Where is source code?


Jan 31, 2013 at 2:41 PM
<div dir="ltr"> <div style="">The source for BeautifyX is actually part of a much larger application (PEM Editor) that you already have downloaded and can be found in a sub-folder of your Thor folder: Thor\Tools\Apps\PEM EDITOR\Source</div> <div style=""><br> </div> <div style="">Thor tools come from many different sources. </div> <div style=""><br> </div> <div style="">Some of them are VFPX Projects (GoFish, FoxTabs, etc) and their source code is maintained in VFPX.</div> <div style=""><br> </div> <div style="">Some of them are simply PRGs. From either the Thor Configuration form or from Tool Launcher, you can use the button &quot;Edit Tool&quot; to open up the code that is actually executed. You would be surprised how many of them are stand-alone PRGs.</div> <div style=""><br> </div> <div style="">And some of them are actually embedded in PEMEditor.APP (for historical reasons not worth going into here). The relevant code for these looks like this:</div> <div style=""><br> </div> <blockquote style="margin:0px 0px 0px 40px; border:none; padding:0px"> <div style=""> <div style=""><font face="courier new, monospace">If Type('_Screen.cThorDispatcher') = 'C'</font></div> </div> <div style=""> <div style=""><font face="courier new, monospace"><span style="white-space:pre"></span>Execscript (_Screen.cThorDispatcher, 'PEMEditor_StartIDETools')</font></div> </div> <div style=""> <div style=""><font face="courier new, monospace"><span style="white-space:pre"></span><span style="background-color:rgb(255,255,0)">_oPEMEditor</span>.oUtils.oBeautifyX.PEME_Beautify()</font></div> </div> <div style=""> <div style=""><font face="courier new, monospace">Else</font></div> </div> <div style=""> <div style=""><font face="courier new, monospace"><span style="white-space:pre"></span>Messagebox(&quot;Thor is not active; this tool requires Thor&quot;, 16, &quot;Thor is not active&quot;, 0)</font></div> </div> <div style=""> <div style=""><font face="courier new, monospace">Endif</font></div> </div> </blockquote> <div style=""> <div><br> </div> </div> <div style="">The reference to global _oPEMEditor tells you that the code for this is actually part of PEMEditor.APP</div> <div style=""><br> </div> <div style="">BTW, the source code for Thor itself is found in folder: Thor\Source</div> <div><br> </div> <br clear="all"> <div> <div dir="ltr">Jim Nelson<br> (805) 498-9195 (voice &#43; fax)<br> (720) 837-3536 (cell) <div><br> </div> <div> <p><span style="font-size:14pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><img width="113" height="38" src="cid:image001.jpg@01CDDED8.888A7550" alt="Description: Description: LOGO-KONG_Shape_LG (5)"></span></p> <p><span style="font-size:10pt; font-family:Calibri,sans-serif; color:rgb(31,73,125)"><a href="" target="_blank" style="color:rgb(17,85,204)"><span style="color:blue"></span></a></span></p> </div> </div> </div> </div>