ArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2014-10-04T12:57:15+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/4565 2014-10-04T12:57:15+02:00 2014-10-04T12:57:15+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4565&p=30553#p30553 <![CDATA[Usine main window handle]]> Now you told it, it's so clear. Thank you. I'll try and I'll give you news.

Statistics: Posted by LevraiBernardo — 04 Oct 2014, 12:57


]]>
2014-10-03T10:47:43+02:00 2014-10-03T10:47:43+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4565&p=30550#p30550 <![CDATA[Usine main window handle]]>
Yes Martgnasse. Thank you for your fast answer.
It works. I had seen these very usefull functions, but I really don't know how to populate the window (is there a way to catch a handle for it) ? So I went back to my old school CreateDialog function.
So how can I put my components (I use a datagrid Excel style) in this desk window ?
normally, the two methods :

CODE:

void* sdkCreateDeskWindow &#40;&#41;;void* sdkShowDeskWindow    &#40;&#41;;
return a void* pointer which is the window handle
you have to cast it like this if you choose the pur windows route

CODE:

HWND WndHandle = &#40;HWND&#41;sdkCreateDeskWindow &#40;&#41;;
i don't remember exactly, but with this handle, you can add your components ?

hope it help

Statistics: Posted by martignasse — 03 Oct 2014, 10:47


]]>
2014-10-01T08:18:36+02:00 2014-10-01T08:18:36+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4565&p=30535#p30535 <![CDATA[Usine main window handle]]> It works. I had seen these very usefull functions, but I really don't know how to populate the window (is there a way to catch a handle for it) ? So I went back to my old school CreateDialog function.
So how can I put my components (I use a datagrid Excel style) in this desk window ?

Statistics: Posted by LevraiBernardo — 01 Oct 2014, 08:18


]]>
2014-09-28T13:22:38+02:00 2014-09-28T13:22:38+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4565&p=30518#p30518 <![CDATA[Usine main window handle]]>
happy to see you around the sdk again :)

strange that sdkGetUsineMainWindow() don't work for you, i use it in the pluginwrapper with no problem (PluginWrapper.cpp, line 1482)

anyway, you shouldn't rely on CreateDialog as it is WIN only, you know, multi-plateform stuff...
there is a brunch of methods in the sdk to open a child window :

CODE:

// there is a typo in the actual sdk, it's actually "sdkCreatDeskeWindow" // but it will be corrected in the next releasevoid* sdkCreateDeskWindow &#40;&#41;;voidsdkDestroyDeskWindow &#40;&#41;;voidsdkSetDeskWindowClientSize  &#40;int clientWidth, int clientHeight&#41;;void* sdkShowDeskWindow    &#40;&#41;;voidsdkHideDeskWindow    &#40;&#41;;
you can use sdkCreateDeskWindow () plus sdkSetDeskWindowClientSize (int clientWidth, int clientHeight) to make your child window

it let open the question about populating this window in a multiplateform way...
in the pluginwrapper, i use juce, you can too if your module is under a juce compatible licence
of course, you can use any other UI lib you want

hope it help

Statistics: Posted by martignasse — 28 Sep 2014, 13:22


]]>
2014-09-28T08:55:37+02:00 2014-09-28T08:55:37+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4565&p=30515#p30515 <![CDATA[Usine main window handle]]> I'm trying to open a new window in Holyhock. So I use a CreateDialog function wich third argument is a handle of the main program window. I've tried with sdkGetUsineMainWindow(), but when I pause debugging on this line :
HWND UsineWnd = (HWND) sdkGetUsineMainWindow();
UsineWnd seems empty. Can anyone (Martin, for exemple...) tell me what's wrong ?
Thanx.

Statistics: Posted by LevraiBernardo — 28 Sep 2014, 08:55


]]>
BrainModular BrainModular Users Forum 2014-10-04T12:57:15+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/4565 2014-10-04T12:57:15+02:00 2014-10-04T12:57:15+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4565&p=30553#p30553 <![CDATA[Usine main window handle]]> Now you told it, it's so clear. Thank you. I'll try and I'll give you news.

Statistics: Posted by LevraiBernardo — 04 Oct 2014, 12:57


]]>
2014-10-03T10:47:43+02:00 2014-10-03T10:47:43+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4565&p=30550#p30550 <![CDATA[Usine main window handle]]>
Yes Martgnasse. Thank you for your fast answer.
It works. I had seen these very usefull functions, but I really don't know how to populate the window (is there a way to catch a handle for it) ? So I went back to my old school CreateDialog function.
So how can I put my components (I use a datagrid Excel style) in this desk window ?
normally, the two methods :

CODE:

void* sdkCreateDeskWindow &#40;&#41;;void* sdkShowDeskWindow    &#40;&#41;;
return a void* pointer which is the window handle
you have to cast it like this if you choose the pur windows route

CODE:

HWND WndHandle = &#40;HWND&#41;sdkCreateDeskWindow &#40;&#41;;
i don't remember exactly, but with this handle, you can add your components ?

hope it help

Statistics: Posted by martignasse — 03 Oct 2014, 10:47


]]>
2014-10-01T08:18:36+02:00 2014-10-01T08:18:36+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4565&p=30535#p30535 <![CDATA[Usine main window handle]]> It works. I had seen these very usefull functions, but I really don't know how to populate the window (is there a way to catch a handle for it) ? So I went back to my old school CreateDialog function.
So how can I put my components (I use a datagrid Excel style) in this desk window ?

Statistics: Posted by LevraiBernardo — 01 Oct 2014, 08:18


]]>
2014-09-28T13:22:38+02:00 2014-09-28T13:22:38+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4565&p=30518#p30518 <![CDATA[Usine main window handle]]>
happy to see you around the sdk again :)

strange that sdkGetUsineMainWindow() don't work for you, i use it in the pluginwrapper with no problem (PluginWrapper.cpp, line 1482)

anyway, you shouldn't rely on CreateDialog as it is WIN only, you know, multi-plateform stuff...
there is a brunch of methods in the sdk to open a child window :

CODE:

// there is a typo in the actual sdk, it's actually "sdkCreatDeskeWindow" // but it will be corrected in the next releasevoid* sdkCreateDeskWindow &#40;&#41;;voidsdkDestroyDeskWindow &#40;&#41;;voidsdkSetDeskWindowClientSize  &#40;int clientWidth, int clientHeight&#41;;void* sdkShowDeskWindow    &#40;&#41;;voidsdkHideDeskWindow    &#40;&#41;;
you can use sdkCreateDeskWindow () plus sdkSetDeskWindowClientSize (int clientWidth, int clientHeight) to make your child window

it let open the question about populating this window in a multiplateform way...
in the pluginwrapper, i use juce, you can too if your module is under a juce compatible licence
of course, you can use any other UI lib you want

hope it help

Statistics: Posted by martignasse — 28 Sep 2014, 13:22


]]>
2014-09-28T08:55:37+02:00 2014-09-28T08:55:37+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4565&p=30515#p30515 <![CDATA[Usine main window handle]]> I'm trying to open a new window in Holyhock. So I use a CreateDialog function wich third argument is a handle of the main program window. I've tried with sdkGetUsineMainWindow(), but when I pause debugging on this line :
HWND UsineWnd = (HWND) sdkGetUsineMainWindow();
UsineWnd seems empty. Can anyone (Martin, for exemple...) tell me what's wrong ?
Thanx.

Statistics: Posted by LevraiBernardo — 28 Sep 2014, 08:55


]]>