set Type And Background
Changes the current control to one defined in the package, and also changes the background to the one associated with the type according to getBackgroundResOf.
If you only want to change the the type, use setType
Parameters
type
The new control type.