Old 10-14-2018, 08:38 AM   #1
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 2,135
Default gfx.init returns HWND for script GUI

Several API functions that are applicable to script GUIs require window HWNDs, particularly the docking functions such as DockWindowAdd.

gfx.init currently only returns some undocumented integer value. It would be more helpful if gfx.init could instead return the HWND of the newly created GUI. (A nil or 0 return HWND could indicate failure.)
juliansader is offline   Reply With Quote
Old 10-15-2018, 08:44 AM   #2
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 511
Default

+1

this is very much needed.
With your extension, we could only get the HWND, if all gfx.init-windows currently opened have different names, so it would be really helpful to have the right HWND as well.
__________________
Reaper Fun Fact of the week: Font in the IDE is too small?
Change Config-variable edit_fontsize or the reaper.ini entry [REAPER]->edit_fontsize to the fontsize you need.
mespotine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.