Any problem from constantly deleting and creating Buttons?
Posted: Wed Feb 07, 2024 1:38 pm
I am wondering what solution I should take to my problem.
Thing is, I have these boxes that are buttons (Could use #SIMPLEBUTTON), but user can scroll around and zoom and unzoom as well, which means that the size and location of the box might change (even outside of the screen), which means that if I used #SIMPLEBUTTON, then that Button wont work properly anymore, since the size of the button have changed.
I am wondering what way should I solve this problem. Should I make my own button system, in which I can dynamically change the size and locations of buttons, or should I just keep deleting and doing MakeButton for all the buttons again and again and again every time something changes on screen.
But Is there any problem in continuously deleting buttons and making them again? I suppose at least from power point of view just making and deleting buttons wont slow down the program much, even if there's hundred of them?
And no, I don't plan on using LayerButtons, which could be a solution too, but I don't intend to use Layers on at all.
Thing is, I have these boxes that are buttons (Could use #SIMPLEBUTTON), but user can scroll around and zoom and unzoom as well, which means that the size and location of the box might change (even outside of the screen), which means that if I used #SIMPLEBUTTON, then that Button wont work properly anymore, since the size of the button have changed.
I am wondering what way should I solve this problem. Should I make my own button system, in which I can dynamically change the size and locations of buttons, or should I just keep deleting and doing MakeButton for all the buttons again and again and again every time something changes on screen.
But Is there any problem in continuously deleting buttons and making them again? I suppose at least from power point of view just making and deleting buttons wont slow down the program much, even if there's hundred of them?
And no, I don't plan on using LayerButtons, which could be a solution too, but I don't intend to use Layers on at all.