Have you placed a break point and verified that the Button is being created when you call CreateWidget?