Some preparations for drawing in WindowManager and WindowBase
Changed button events in WindowBase; Now button type is a parameter