rgb create project create a toolbar assign toolbar to window1 add button to toolbar add window handler, window1->button.Pressed() created in window now delete the button scr1 button.Pressed() already in window scr2