| ▲ | pocksuppet 2 hours ago | |
GUI code changes as fast as your GUI does. If you have two buttons, call makeButton twice. If they have totally different sizes, don't calculate the size inside makeButton. If tomorrow you want a button and a checkbox, don't call makeButton twice with isCheckbox=true the second time. Fun fact: Win32 checkboxes are buttons with a bitflag that says they are actually checkboxes. | ||