tbx
0.7.5
|
Class to reposition each newly opened document window so the titles don't overlap. More...
#include <docpositionwindow.h>
Public Member Functions | |
DocPositionWindow () | |
Constructor, sets it up to read the position for the first call. | |
void | show (tbx::Window window) |
Show the given window at the next position. More... | |
Class to reposition each newly opened document window so the titles don't overlap.
To use it add a static Member to your Window class, make sure the document window isn't automatically shown and call the show method to show the window in the correct place.
void tbx::doc::DocPositionWindow::show | ( | tbx::Window | window | ) |
Show the given window at the next position.
On the first call it reads the position from the window and shows it in it's default position. Subsequent calls show the window moved down by xx units
When the window position gets close to the bottom of the screen it starts again near the top of the screen.