make a fusion between B3D and B+
BlitzPlus Forums/BlitzPlus Programming/make a fusion between B3D and B+| 
 | ||
| http://www.3dgametool.com/Eddy/B3D_In_B+.zip (version 2) Launch Gui.exe   | 
| 
 | ||
| File's empty, Ed. File's empty. | 
| 
 | ||
| He's right, you know.  Empty. | 
| 
 | ||
| [download link fixed] Oup !! You can download now. :) | 
| 
 | ||
| Bless you. Hmmm, quite interesting. Blitz3D app seems to stop when the pointer leaves the canvas. Is that intentional? | 
| 
 | ||
|  Is that intentional?   No. I've noticed this strange behaviour. | 
| 
 | ||
| I' fixed this problem but now when you click in B3D app the B+ GUi losts the focus. | 
| 
 | ||
| That's kind of cool! How would you communicate between the processes? Some kind of Shared memory sounds sensible. | 
| 
 | ||
| But there's no communication. There's two autonomous app. For the moment I can't send any value from gadget to my 3D app. | 
| 
 | ||
| You might be able to use network commands to share data. | 
| 
 | ||
| Hey, what did you do to parent the one window to the other?  I am interested in using MDI-like windows like that. | 
| 
 | ||
| My guess would be the SetParent API. Preserving styles between apps with SetWindowLong is what you have to worry about. After its parented a call to SetWindowPos with hwnd_TOPMOST will make it visible. | 
| 
 | ||
| >My guess would be the SetParent API. It is the idea. >Preserving styles between apps with SetWindowLong is what you have to worry about. There's a focus problem when I use child style The 3D app is locked. >After its parented a call to SetWindowPos with hwnd_TOPMOST will make it visible. I don't know if it is usefull I use 'movewindow'. | 
| 
 | ||
| Perhaps a callback problem. :/ | 
| 
 | ||
| Here's what I tried: win=CreateWindow("window",ClientWidth(Desktop()),ClientHeight(Desktop()),100,100,0) hWND=QueryObject(win,1) style=GetWindowLong(hWND,GWL_STYLE) SetWindowLong hWND,GWL_STYLE,style+WS_CLIPCHILDREN And then used SetParent to parent another window hwnd to this, but it doesn't clip the child. Any advice? Thanks. | 
| 
 | ||
| WS_CHILD | 
| 
 | ||
| For the child window, you mean?  If so, I tried that, to no avail. |