Old 10-06-2013, 09:32 AM   #1
wol
Human being with feelings
 
Join Date: Oct 2013
Posts: 93
Default dockable window

Hi, I'm trying to add a dockable window in a csurf plugin.

I added a dialog in resources setting its properties as the autocolor dialog ones in sws, and registered an action which opens the window.
It all works but reaper main window become unusable because if I click outside this window it doesn't leave focus, all other windows (action list, VST, etc.) can be selected.

To get it dockable I found DockWindowAdd function but don't know what to pass as pos parameter.
I had a look at SWS extension source but is too complex to understand basics :P

Thanks for help.

Last edited by wol; 10-06-2013 at 09:40 AM.
wol is offline   Reply With Quote
Old 10-06-2013, 03:19 PM   #2
wol
Human being with feelings
 
Join Date: Oct 2013
Posts: 93
Default

After some tial and errors I was able to dock the window using DockWindowAdd and DockWindowActivate from this code http://wiki.cockos.com/wiki/index.php/RPR_DockWindowAdd, as pos parameter i tried 4 and 5 but don't see differences. If someone knows more about it could explain please?

The focus problem with the main reaper window is still here and can't find how to solve. I found this old thread http://forum.cockos.com/showthread.php?t=20034 about opening a window but says nothing about my problem.
wol is offline   Reply With Quote
Old 10-07-2013, 01:56 PM   #3
wol
Human being with feelings
 
Join Date: Oct 2013
Posts: 93
Default

Answer found in MSDN: use CreateDialogParam instead of DialogBox.

http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
wol 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 12:44 AM.


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