JScript getting line height and string width in pixels :(

Writing a popup list that can have different fonts, is there any way of getting the line height and width of a string in pixels for the purposes of resizing the dialog.

The feature request would then be (as the answer is probably NO)

  • in dialog editor, option for dialog Resizable to resize to content (eg. width of strings in a list view control and max lines in said control)