hey... i was wondering if there was a way i could have my program size buttons automatically depending on the text contained within them. reason being i'd like to create a program that can allow the user to add custom buttons depending on if one they want isn't one i create by default. i was also considering having the user create all of the buttons they wanted / needed on their own so that i wouldn't have one there they're never going to use. but in any case - the length of the text contained on a button to me is unknown so it'd just be nice if i could take in the text the user wants displayed on the button, store it in the registry, and then create the button from there of the appropriate size.
any ideas?