Calculate node's horizontal position and extent using wxDC.GetTextExtent with the pretty-printed Stmt, because even with a monospace font the width of the string may not be equal to (character width * number of characters).