Now that we have a framework for the separation of GUI dialog content from GUI dialog control, we need to look at the things we want to accomplish with our GUI dialog wrapper.
The following are the things that we want to create:
Dialogs that can be located on the screen in a resolution-independent manner
Dialogs that can slide onto the screen and off the screen
Dialogs that can fade in and out
Dialogs that move at different speeds
Before we can talk about where to put our dialog on the screen, we need to know how big the dialog is going to be. It simply would not make sense to put a dialog that is three fourth the width of the screen, and position it in a way that leaves part of the dialog content clipped.
So, the very first thing we need to decide is the size of the dialog, not in pixels, but as a ratio of...