|
|
|
06-24-2019, 06:21 AM
|
#1
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
API: Docker-related functions
In hinsight of Reaper 6 and the numerous improvements on layout and themeing-side, I would suggest to give some love API-access of dockers as well.
As far as I understood, docking works the following way:
1) We have 16 dockers available, that can be freely positioned to right, left, top and bottom as well as hidden(when nothing is docked).
2) You can associate "Children" to each of these dockers.
3) If you move a docker, only the position of the docker is changed, not the docked/posiiton-states of the docked windows.
If I got that right, then I noticed, that some basic functions are missing, that are needed to have full control over docking in all aspects.
So I would love to suggest the following functions to be added:
Code:
HWND = reaper.Dock_GetDockHWND(integer docker_id)
returns the HWND of a docker
integer docker_id - 0 to 15 for docker 0 to 15
HWND = reaper.Dock_GetDockHWND_DockedWindows(integer docker_id, integer childdock_id)
returns the HWND of a window that's docked in a docker; nil, if no such childdock is available
integer docker_id - 0 to 15 for docker 0 to 15
integer childdock_id - the id of the docked window with 0 for the first, n for the last one
boolean retval = reaper.Dock_SetOrder_DockedWindows(integer docker_id, integer childdock_id, integer new_childdock_id)
moves a window that's docked in a docker onto a new position within that docker
integer docker_id - 0 to 15 for docker 0 to 15
integer childdock_id - the id of the docked window with 0 for the first, n for the last one
integer new_childdock_id - the new position(id) of the window, within the docked windows
integer position, integer order = reaper.Dock_GetDockerPosition(integer docker_id)
returns the position of a docker
integer position: -1, hidden; 0, default; 1, left; 2, top; 3, right; 4, bottom)
integer order: the position of the docker within all dockers at position: 0 to x; ignored, when only one docker is at position
integer docker_id - 0 to 15 for docker 0 to 15
reaper.Dock_SetDockerPosition(integer docker_id, integer position, optional integer order)
sets the position of a docker, optionally allows setting the order within numerous dockers at the same position
integer position: -1, hidden; 0, default; 1, left; 2, top; 3, right; 4, bottom)
optional integer order: the position of the docker within all dockers at position: 0 to x; ignored, when only one docker is at position
This, in combination with the new Theme-related-functions, would allow us even more control over the layout of Reaper.
Last edited by Meo-Ada Mespotine; 04-05-2020 at 04:39 PM.
|
|
|
06-24-2019, 06:51 AM
|
#2
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Oh yes, please, huge +1!
I’m really pulling my hair while trying to show/hide individual dockers.
Last edited by _Stevie_; 06-24-2019 at 07:24 AM.
|
|
|
07-11-2019, 11:17 AM
|
#3
|
Human being with feelings
Join Date: Jun 2017
Posts: 110
|
would be sweet
__________________
twitch.tv/suprshady trying to stream REAPER stuff.. more than twice a year
|
|
|
09-16-2019, 04:19 PM
|
#4
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
bumpy bump
|
|
|
09-16-2019, 04:39 PM
|
#5
|
Human being with feelings
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 1,701
|
+1 Biggity bump to the bump bump
|
|
|
11-08-2019, 10:19 AM
|
#6
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Up up into the bumps
|
|
|
02-28-2020, 08:44 AM
|
#7
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Bumpy bumpely boo
|
|
|
02-28-2020, 08:46 AM
|
#8
|
Banned
Join Date: Dec 2018
Posts: 642
|
Absolutely!
These functions are critical. Indeed, a function to know what windows are docked where seems to be like the most basic function necessary for playing around with windows and docs....
|
|
|
04-05-2020, 11:59 AM
|
#9
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Ping!
|
|
|
04-07-2020, 07:58 AM
|
#10
|
Human being with feelings
Join Date: Feb 2017
Posts: 120
|
+1, I'm not sure what this code does specifically, I found myself here looking for a way to show/hide dockers independently. If this code helps with that, I give it a big bump. Can't believe I can't do it now!
|
|
|
08-07-2020, 05:01 AM
|
#11
|
Human being with feelings
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 338
|
Yes please!!!
+1
|
|
|
10-06-2020, 09:43 PM
|
#12
|
Human being with feelings
Join Date: Aug 2020
Posts: 40
|
This would be great!!
+1
|
|
|
01-16-2021, 09:20 AM
|
#13
|
Human being with feelings
Join Date: Apr 2019
Posts: 231
|
Yes please
+1
|
|
|
01-24-2021, 02:51 PM
|
#14
|
Human being with feelings
Join Date: Mar 2016
Location: Italy
Posts: 322
|
+1 here too
|
|
|
01-27-2021, 06:02 AM
|
#15
|
Human being with feelings
Join Date: May 2012
Location: Berlin, Germany
Posts: 171
|
+1 this would be very helpful.
|
|
|
06-12-2021, 06:18 AM
|
#16
|
Human being with feelings
Join Date: Jan 2013
Posts: 1,126
|
I also agree to this
|
|
|
06-12-2021, 06:50 AM
|
#17
|
Human being with feelings
Join Date: Sep 2019
Posts: 42
|
Docks need some love!
|
|
|
01-04-2022, 12:06 PM
|
#18
|
Human being with feelings
Join Date: Dec 2020
Posts: 226
|
Yup, I concur.
|
|
|
01-11-2022, 11:15 AM
|
#19
|
Human being with feelings
Join Date: Sep 2017
Posts: 27
|
+1. This would be great!
|
|
|
01-30-2022, 10:56 AM
|
#20
|
Human being with feelings
Join Date: May 2019
Location: Berlin
Posts: 2,164
|
A bit more control over docking would be definitely be useful, +1!
|
|
|
01-31-2022, 10:49 AM
|
#21
|
Human being with feelings
Join Date: Oct 2019
Posts: 1,075
|
+1
Docking improves workflow in a substantial way. I've been using it too little, but I'm beginning to see the light. I can only imagine what such APIs could do in the hands of our mighty scripters/extension coders...
|
|
|
02-05-2023, 09:08 AM
|
#22
|
Human being with feelings
Join Date: Apr 2022
Posts: 200
|
I agree! This would be very useful.
|
|
|
02-05-2023, 10:21 AM
|
#23
|
Human being with feelings
Join Date: Aug 2022
Posts: 79
|
+1 more docker flexibility would be incredibly helpful/useful!
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:09 PM.
|