Memotool.exe Saves User Defined Toolbar Positions

ID: Q197923


The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a, 6.0


SUMMARY

Memotool.exe is a self-extracting executable that contains a sample which demonstrates how to save and recall user defined toolbar positions with a top-level form.


MORE INFORMATION

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:

MemoTool.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

   FileName                 Size          Description
   ---------------------------------------------------------

   Clean_reg.prg             1KB          PRG File
   Memory_toolbar.pjt        8KB          PJT File
   Memory_toolbar.pjx        3KB          PJX File
   Readme.txt                2KB          Readme File
   Registry_toolbar.sct      7KB          SCT File
   Registry_toolbar.scx      2KB          SCX File
   Table_toolbar.sct         4KB          SCT File
   Table_toolbar.scx         2KB          SCX File 
Many Windows applications that use toolbars retain the position of the toolbars between instances. This functionality creates a more user-friendly application. While Visual FoxPro does not natively provide this functionality, it is possible using the code provided in this sample.

This sample demonstrates how to create a toolbar that remembers its positions between instances of its parent form. Two methods are shown:
  • Using a table to store the positions. -and-


  • Using the Windows registry.


NOTE: If you use this sample between Visual FoxPro 5.0 and Visual FoxPro 6.0, be sure to rebuild the project and recompile all files before running the forms. You may receive errors when rebuilding the project in Visual FoxPro 5.0 such as "Unable to find UNKNOWN NEWOBJECT". You can ignore these messages.

Additional query words:

Keywords : kbfile kbContainer kbCtrl kbVFp500 kbVFp500a kbVFp600 kbDSupport
Version : WINDOWS:5.0,5.0a,6.0
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: December 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.