I don't usually comment in this forum, but since a part of my work is in this issue, i'd like to say thanks.

BTW, looking over the 'unanswered' questions, where one person asks how to make sure their panels align correctly when the resolution is changed; I think it would be better to handle 'on_d3d_reset' rather than use a continuous loop...

Code:
function ResolutionChanged()
{
// Re-align panels here
}

function main()
{
 on_d3d_reset = ResolutionChanged;
}


Just my thoughts... Thanks again. David.