hph Posted October 28, 2017 Share Posted October 28, 2017 Hi How can I autosizing TUniButton.width with text from caption (like autosize property from TUniLabel)? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 28, 2017 Share Posted October 28, 2017 Hi, One of the possible solutions: UniButton -> ClientEvents -> UniEvents-> function beforeInit: function beforeInit(sender, config) { config.width="auto" } Best regards, Quote Link to comment Share on other sites More sharing options...
hph Posted October 28, 2017 Author Share Posted October 28, 2017 Hi DD ...your support is so quick and helpful - thank you very much! Quote Link to comment Share on other sites More sharing options...
cgarrotti Posted November 13, 2017 Share Posted November 13, 2017 Hi, One of the possible solutions: UniButton -> ClientEvents -> UniEvents-> function beforeInit: function beforeInit(sender, config) { config.width="auto" } Best regards, In Delphi, how do I get the beforeinit? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.