Docking external app to Xojo

Is it possible to dock an external application like notepad into a pagepanel. I am working on windows.

Sounds like OLEContainer.
If the app exposes functionality via OLE you can embed it into a window in this way.
Notepad isnt an app like that to my knowledge
Word is…

Is there any code example that i can begin with.

I just went to have a look for some example code and found that Microsoft dont seem to ‘do’ this any more.
The OLEContainer which would (if this was VB 5 or 6 for example) have allowed you to embed a word or Excel document, in Xojo only allows for activeX controls.
Microsoft themselves in docs for their compilers now say ‘display the documents in a web page’

The ‘old’ way meant that when the embedded document was active, the menus visible were replaced by those of the activated application: your mensu would become Word menus until the control lost the focus.

So, I’ll back pedal… it doesnt look like you can do it any longer.
Consider FormattedTextControl if you want text edit facilities.

In theory, you might dock Notepad to your window by calling SetParent() on the Notepad window, but you need to carefully consider what you want to achieve before spending any time looking at that route.

Docking an application may not be the best way to solve the problem you are addressing.

My actual intent was to dock “putty.exe” application which don’t have any menus. I need to open multiple putty’s. so i thought of embedding putty into Xojo and then calling them in each pagepanel.