# WebSDK Control with ChildControls

**URL:** <https://forum.xojo.com/t/websdk-control-with-childcontrols/78854>\
**Category:** General\
**Created:** [January 16, 2024, 4:50pm UTC](https://forum.xojo.com/t/websdk-control-with-childcontrols/78854 "2024-01-16T16:50:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marius\_Dieter\_Noetzel](https://forum.xojo.com/user_avatar/forum.xojo.com/marius_dieter_noetzel/32/661_2.png) [@Marius\_Dieter\_Noetzel](https://forum.xojo.com/u/Marius_Dieter_Noetzel)\
**Post date:** [January 16, 2024, 4:50pm UTC](https://forum.xojo.com/t/websdk-control-with-childcontrols/78854/1 "2024-01-16T16:50:02Z")

</div>

Controls like WebRectangle can have child-controls. When you put them into an drag the rectangle inside the IDE you also drag the children.  
I have a WebSDK Control. I can put other controls into (it gets the red border), but the won’t get children. So I could not drag them around with my control and they won’t be redered as child-divs.  
What do I have to do, to have these childs as real childs?

Thanks

Marius

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [January 16, 2024, 8:39pm UTC](https://forum.xojo.com/t/websdk-control-with-childcontrols/78854/2 "2024-01-16T20:39:30Z")

</div>

I don’t think you can do that, have childs inside websdk.  
websdk are single enttities, but with javascript inside you can insert all the (javascript) objects you want  
but not xojo objects.

---

<div class="post-metadata">

**Author:** ![Marius\_Dieter\_Noetzel](https://forum.xojo.com/user_avatar/forum.xojo.com/marius_dieter_noetzel/32/661_2.png) [@Marius\_Dieter\_Noetzel](https://forum.xojo.com/u/Marius_Dieter_Noetzel)\
**Post date:** [January 16, 2024, 8:55pm UTC](https://forum.xojo.com/t/websdk-control-with-childcontrols/78854/3 "2024-01-16T20:55:06Z")

</div>

But Javascript doesn’t effect the IDE. I want them to be Childobjects, so the stay inside the WebSDK object If I move it (or it is moved by resizing etc.)

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [January 16, 2024, 9:07pm UTC](https://forum.xojo.com/t/websdk-control-with-childcontrols/78854/4 "2024-01-16T21:07:45Z")

</div>

please explain more what exactly you want to do ? what objects do you want to insert inside the websdk control ?

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [January 16, 2024, 11:11pm UTC](https://forum.xojo.com/t/websdk-control-with-childcontrols/78854/5 "2024-01-16T23:11:42Z")

</div>

Xojo would need to make an SDK super that inherited from WebView for it to do what you want.

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [January 17, 2024, 2:58am UTC](https://forum.xojo.com/t/websdk-control-with-childcontrols/78854/6 "2024-01-17T02:58:09Z")

</div>

Requested two years ago.  
[https://tracker.xojo.com/xojoinc/xojo/-/issues/64243](https://tracker.xojo.com/xojoinc/xojo/-/issues/64243)
