<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="">
</div><div style="">Thor tools come from many different sources. </div><div style="">
</div><div style="">Some of them are VFPX Projects (GoFish, FoxTabs, etc) and their source code is maintained in VFPX.</div><div style="">
</div><div style="">Some of them are simply PRGs. From either the Thor Configuration form or from Tool Launcher, you can use the button "Edit Tool" to open up the code that is actually executed. You would be surprised how many of them are stand-alone PRGs.</div><div style="">
</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="">
</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("Thor is not active; this tool requires Thor", 16, "Thor is not active", 0)</font></div></div><div style=""><div style=""><font face="courier new, monospace">Endif</font></div></div></blockquote><div style=""><div>
</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="">
</div><div style="">BTW, the source code for Thor itself is found in folder: Thor\Source</div><div>
</div><br clear="all"><div><div dir="ltr">Jim Nelson
(805) 498-9195 (voice + fax)
(720) 837-3536 (cell)<div>
</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="http://www.kongcompany.com/" target="_blank" style="color:rgb(17,85,204)"><span style="color:blue">www.kongcompany.com</span></a></span></p></div></div></div></div>
↧