Jump to content
uniGUI Discussion Forums
hph

Autosize TUniButton

Recommended Posts

Hi

How can I autosizing TUniButton.width with text from caption (like autosize property from TUniLabel)?  

Share this post


Link to post
Share on other sites

Hi,

 

One of the possible solutions:

 

UniButton -> ClientEvents -> UniEvents-> function beforeInit:

function beforeInit(sender, config)
{
    config.width="auto"
}

Best regards,

Share this post


Link to post
Share on other sites

Hi DD

 

...your support is so quick and helpful - thank you very much! 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×