Creating a custom input widget with CInputWidget