You can find the Solaris Motif control widgets demos in /usr/dt/examples/dtwidget. Read the README file for detailed information on the demos.
For more information on Solaris Motif control widgets, see the relevant man pages and Solaris Common Desktop Environment: Programmer's Guide.