# Inheriting standard widgets with WDTC

**URL:** <https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628>\
**Category:** Widget Development Tool Chain\
**Tags:** wdtc-question\
**Created:** [July 15, 2025, 11:41am UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628 "2025-07-15T11:41:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephan.stricker](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/stephan.stricker/32/105_2.png) [@stephan.stricker](https://community.br-automation.com/u/stephan.stricker)\
**Post date:** [July 15, 2025, 11:41am UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628/1 "2025-07-15T11:41:33Z")

</div>

Hi,  
inheriting widgets was fairly easy with the old WDTC, but with 6 this has become more difficult. Do we have any example what the correct way of inheriting standard widgets would look like? I am struggling with define and function calls and what files I need to copy and what files I can reference. An example for a more advanced widget ex. DropDownBox would really help.

Thx

Stephan

---

<div class="post-metadata">

**Author:** ![florent.boissadier](https://avatars.discourse-cdn.com/v4/letter/f/FF8800/32.png) [@florent.boissadier](https://community.br-automation.com/u/florent.boissadier)\
**Post date:** [July 16, 2025, 8:30am UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628/2 "2025-07-16T08:30:07Z")

</div>

Hi Stephan,

I still don’t know if there is a really correct way to do it.  
I will take a look at a potential python script to copy existing widget to a widget lib.  
By taking you example of the DropDownBox, if we copy existing DropDownBox (with dependencies) change all declarations to match current lib, you should be able to to the inheriting as before (because widget you inherit is in your lib).  
It’s an idea, I need to test it 🙂

If this idea is working I will update this post 🙂

I keep you in touch

Regards,  
Florent

---

<div class="post-metadata">

**Author:** ![stephan.stricker](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/stephan.stricker/32/105_2.png) [@stephan.stricker](https://community.br-automation.com/u/stephan.stricker)\
**Post date:** [July 16, 2025, 2:16pm UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628/3 "2025-07-16T14:16:50Z")

</div>

Hi Florent,  
I tried to copy the whole widget but that does not work either. Inside the lib are other references back to the standard brease that fail. I am back to the numeric widget but I cant even get that to work…I followed the documentation for inheriting widgets but something is still missing. AS opens fine but I cant add the widget to a content and when I use the text editor it downloads fine but still throws errors.

[brXtended.zip](https://community.br-automation.com/uploads/short-url/bOjnBL1nhtKHPtIXDly4572RvYg.zip) (67.7 KB)

Here is where I am right now…AS tells me

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/7/7aff87f877e475af912e2f3c3ecbd2b9b993913b.png)

and Browser says

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/0/0b93a6c2ea2e484ee2b3d90c51fa241bdb02e625.png)

I am sure its something stupid and simple but I dont see it…

---

<div class="post-metadata">

**Author:** ![florent.boissadier](https://avatars.discourse-cdn.com/v4/letter/f/FF8800/32.png) [@florent.boissadier](https://community.br-automation.com/u/florent.boissadier)\
**Post date:** [July 16, 2025, 2:24pm UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628/4 "2025-07-16T14:24:38Z")

</div>

Hi Stephan,

Did you register your widget ?  
From external lib you need to, I didn’t remember if it’s in documentation but here is the way I register my widget in MV6 (at the end of the file of the widget javascript file):

```javascript
    //========================================================================
    // WIDGET REGISTRATION
    // ========================================================================

    if (window.lib_br?.controller?.widgetRegistry) {
        lib_br.controller.widgetRegistry.define(
            "widgets.3dviewer.ThreejsViewer",
            WidgetClass
        );
    }

    return WidgetClass;

```

I still don’t know if it’s the correct to do it, but for me it’s working so I think it’s the workaround.

Regards,  
Florent

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [July 31, 2025, 2:37pm UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628/5 "2025-07-31T14:37:39Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [August 15, 2025, 2:40pm UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628/6 "2025-08-15T14:40:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [August 30, 2025, 2:54pm UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628/7 "2025-08-30T14:54:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [September 14, 2025, 2:56pm UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628/8 "2025-09-14T14:56:17Z")

</div>



---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [September 14, 2025, 6:41pm UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628/9 "2025-09-14T18:41:45Z")

</div>

Hi @stephan.stricker, have you solved your issue?

---

<div class="post-metadata">

**Author:** ![stephan.stricker](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/stephan.stricker/32/105_2.png) [@stephan.stricker](https://community.br-automation.com/u/stephan.stricker)\
**Post date:** [September 15, 2025, 5:51am UTC](https://community.br-automation.com/t/inheriting-standard-widgets-with-wdtc/7628/10 "2025-09-15T05:51:03Z")

</div>

Yes, I solved it with this

[Inheriting basic widgets - Widget Development Tool Chain - B&R Community](https://community.br-automation.com/t/inheriting-basic-widgets/7709)
