desiredW = WindowWidth: desiredH= WindowHeight WindowWidth = 200: WindowHeight = 200 open "" for graphics_nsb_nf as #gr ' change type as required #gr, "home ; down ; posxy x y" width = 2*x : height = 2*y close #gr slackX = 200-width: slackY = 200-height WindowWidth = 201: WindowHeight = 201 open "" for graphics_nsb_nf as #gr ' change type as required #gr, "home ; down ; posxy x y" width = 2*x : height = 2*y close #gr if slackX <> 200-width then slackX = slackX - 1 if slackY <> 200-height then slackY = slackY - 1 WindowWidth = desiredW + slackX WindowHeight = desiredH + slackY