Julian, thanks for awesome new SetParent! I have question about window styling: is it possible to make somehow the child window be out of the parent (gfx) border? I assume Reaper does this, but when I try to set different styles to child or parent gfx (to be sure it is not "WS_CLIPSIBLINGS"), I got positive return value of SetStyle, but nothing changed visually...
The second question general about unicode. What are relations of extension within it? I found several problems loading PNG from\within Python. And still, only way I found to make it almost stable — send filename as ascii, which can lead to problems on many Windows reaper installations (if store script inside Reaper resource folder in APPDATA).
Also, I've not tested yet LICE_DrawText etc, but I'm afraid of their relations with unicode...
For example, now I load PNG this way:
Code:
def _load(self, filename: str, encoding: str) -> JS.VoidPtr:
fallback = 'ascii'
for i in range(10):
if i >= 5:
encoding = fallback
ptr = JS.LICE_LoadPNG(filename, encoding)
if int(ptr) != 0:
return ptr
raise ResourceLoadError(
"can't load PNG from file {} with encoding {}".format(
filename, encoding
)
)