Adding Window Size and Position Memory using the Support Debugging Tool

David Meego - Click for blog homepageThis is a reposting of an article I originally wrote on my Developing for Dynamics GP blog.

As a follow on to the article: Using Support Debugging Tool Non-Logging Triggers, I thought I would post a few small examples of how Non-Logging Triggers can be used for simple customizations.

There have been some other examples posted in the past on this and other blogs. If you are interested have a look at this post: Using the Support Debugging Tool with Real Life Examples.

This example demonstrates how to allow any window to remember its size and position. For this sample, I used the Purchase Order Entry window.

The method is in this example is the based on how the Support Debugging Tool itself keeps track of its own windows size and position and stores the data as a single line in the Dex.ini file. For example:


Note: The position information is relative to the Microsoft Dynamics GP main application window and so can show negative figures when the window was last positioned higher than or left of the main window.

The example uses two Trigger IDs:

    This trigger captures the size and position information of the window just before it closes and writes this information into the Dex.ini as an MBS_Win* setting.
    This trigger reads the previously written Dex.ini setting and parses the line to size and position information. It then adjusts the window’s size and position just before it is opened.

The Support Debugging Tool Debugger Settings file with these triggers is attached as an archive to the bottom of this post.


For some related window size and position posts, see the following articles:



21-Aug-2012: See the updated version of the code at Update: Adding Window Size and Position Memory using the Support Debugging Tool. This update uses a table rather than the Dex.ini to store the settings.

09-Oct-2013: Added links to related articles.

Debugger Settings POP Entry Window

This article was originally posted on the Developing for Dynamics GP Blog and has been reposted on

5 thoughts on “Adding Window Size and Position Memory using the Support Debugging Tool

Please post feedback or comments

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.