Old 11-08-2019, 10:17 AM   #1
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,689
Default API: gfx.init - support of other windowstyles

I would suggest to add different windowstyles for gfx.init, like POPUP, CAPTION, SIZEBOX, SYSMENU and MAXIMIZE. With some GUI-scripts, it would be very handy to have.

And more a question of completeness: it would be great, if we could set the icon in title-bar of the window on Windows as well.
The default one does not really look that great.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 11-14-2019, 05:25 AM   #2
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 304
Default

+1

I do like though how they added functionality for gfx.init to resize and reposition, without having to completely renew the window
Dafarkias is offline   Reply With Quote
Old 11-14-2019, 08:00 AM   #3
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,689
Default

I do too.

I would also love, if they could add the possibility to have a transparency-color. This is already doable on Windows but not on Mac and Linux, afaik.
I would love to have lokasenna's Radialmenu in borderless.

Though I have no clue, how difficult this would be to do.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 11-14-2019, 09:17 AM   #4
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 304
Default

I have no idea how difficult it would be either. But I imagine it would be possible using Julian's API extension?
Dafarkias is offline   Reply With Quote
Old 11-14-2019, 09:44 AM   #5
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,689
Default

Unfortunately no. You can make the whole window transparent, but not one single color.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 11-14-2019, 11:23 AM   #6
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 304
Default

Quote:
Originally Posted by mespotine View Post
Unfortunately no. You can make the whole window transparent, but not one single color.

reaper.JS_Window_SetOpacity( windowHWND, mode, value )

Parameters:
mode: either "ALPHA" or "COLOR".
value: If ALPHA, the specified value may range from zero to one, and will apply to the entire window.
If COLOR, value specifies a 0xRRGGBB color, and all pixels in this color will be made transparent. (All mouse clicks over transparent pixels will pass through, too).

WARNING: COLOR mode is only available in Windows, not Linux or macOS.

Dafarkias is offline   Reply With Quote
Old 11-14-2019, 11:26 AM   #7
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,689
Default

Quote:
Originally Posted by Dafarkias View Post

WARNING: COLOR mode is only available in Windows, not Linux or macOS.

That's what I forgot to mention, on Windows yes, on Mac and Linux not(yet).
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 11-14-2019, 01:40 PM   #8
Dafarkias
Human being with feelings
 
Dafarkias's Avatar
 
Join Date: Feb 2019
Location: England
Posts: 304
Default

Oops-sorry.
Dafarkias 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:11 AM.


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