Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modify the Task Pane Manager? 2

Status
Not open for further replies.

mkrausnick

Programmer
Joined
Apr 2, 2002
Messages
766
Location
US
In the environment manager, is it possible to (and how would I) remove the large block of text at the top that explains what it does:
The Environment Manager is where you can organize environment settings into groups and associate projects with them. When you select a project from here, the environment settings will execute before the project opens
It takes up too much screen real estate.

Mike Krausnick
Dublin, California
 
RUN the VFP code below AND remove OR comment out the following lines in envmgr.xsl (a backup is automatically created for you in the code below)...
envmgr.xsl said:
<TR>
<TD class="TableTitle" width="100%" nowrap="nowrap"><h3>Environment Manager</h3></TD>
<TD align="left" valign="center"><img src="envend.gif" alt="" /></TD>
</TR>
<TR>
<TD colspan="2">
<TABLE width="100%" cellspacing="2" cellpadding="2">
<tr class="TableSubTitle">
<td >The Environment Manager is where you can organize environment settings into groups and associate projects with them. When you select a project from here, the environment settings will execute before the project opens. </td>
</tr>
</TABLE>
</TD>
</TR>

Code:
#DEFINE CSIDL_APPDATA 0x001a
*!*   Version 4.71. The file system directory that serves as a common repository for application-specific data. A typical path is C:\Documents and Settings\username\Application Data. This CSIDL is supported by the redistributable Shfolder.dll for systems that do not have the Microsoft® Internet Explorer 4.0 integrated Shell installed. 

LOCAL lcFolderPath, lcAppDataPath, lcEnvironMgrPath
lcFolderPath = space(255)

DECLARE SHORT SHGetFolderPath IN SHFolder.dll ; 
    INTEGER hwndOwner, INTEGER nFolder, INTEGER hToken, ; 
    INTEGER dwFlags, STRING @pszPath 

SHGetFolderPath(0, CSIDL_APPDATA, 0, 0, @lcFolderPath)

lcAppDataPath = Alltrim(lcFolderPath)

lcEnvironMgrPath = ADDBS(SubStr(lcAppDataPath,1, Len(lcAppDataPath)-1)) + "Microsoft\Visual FoxPro 9\TaskPane\PaneCache\microsoft.environmgr\"

copy file (lcEnvironMgrPath + "envmgr.xsl") to (lcEnvironMgrPath + "backup_envmgr.xsl")
MODIFY FILE (lcEnvironMgrPath + "envmgr.xsl")

boyd.gif

 
Outstanding! Thanks.

Mike Krausnick
Dublin, California
 
ditto to the outstanding.. i've already changed mine to greet me with a pleasant hello when i boot up foxpro.. :D

-- frank~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top