Author Topic: 1.8.4.1171 Win7 TreeBox.setColumnWidth issue?  (Read 4635 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
1.8.4.1171 Win7 TreeBox.setColumnWidth issue?
« on: 2015 August 05 21:27:18 »
Hi Juan,

Run this script at UI scaling 1.0 and 1.5, the dialog layout is reasonable, the setColumnWidth calls work OK.

Delete line #460, and run these tests again, the dialog layout is bad. The setColumnWidth calls don't work properly.

Not sure what is going on here, as this line appears to be a "no op".

For each test, relaunch PI, open the script in the editor, and then run it.

I am guessing that the UI scaling machinery requires initialization, and setColumnWidth assumes this initialization has been done, but in this example it has not.

Thanks,
Mike

https://dl.dropboxusercontent.com/u/109232477/PixInsight/WCSHeader.js
« Last Edit: 2015 August 06 12:41:12 by mschuster »