SAMPLE: Memotool.exe Saves User Defined Toolbar Positions

ID: Q197923

The information in this article applies to:

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 file is available for download from the Microsoft Software Library:

 ~ Memotool.exe (size: 31655 bytes) 

Release Date: DEC-29-1998

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services


   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:

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          : kbContainer kbCtrl kbVFp500 kbVFp500a kbVFp600 
Version           : WINDOWS:5.0,5.0a,6.0
Platform          : WINDOWS
Issue type        : kbhowto

Last Reviewed: December 31, 1998