Page 1 of 1

Dynamic Userwindow Wordwrap

Posted: Wed Jan 30, 2019 3:41 am
by Jaren
I love all the new features that userwindows have been given but I am wondering, is there a way to set a dynamic wordwrap? (Meaning the user resizes it and the wordwrap changes to match) I can't seem to find a function to get its current size. I found one for the main window but nothing for this. The closest I have been able to find is getColumnCount() but that makes things tricky. It does seem to get the width from somewhere though to calculate the columns.

The problem is this:

Code: Select all

setWindowWrap(windowName, wrapAt)
I know I can set any integer at "wrapAt" but how can I find what the current width is?