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)? 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, 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! 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now