I do not know where to extract your resize/moveable control to make it work with my project
I would put the code for the buttons with the code that creates the button. That makes it easy to find if you need to change it later.
Is there a way I can give the newly created button's codes. Like normal buttons?
I already showed you how to add code to the button. Read post 6 again.