Page 1 of 1

PostPosted: Wed Dec 12, 2001 4:06 pm
by Dave F
I have a program which changes the Button text during execution. It is my understanding that the button size should not change for a type 0 Button...but it does.

The code would look sometrhing like this:


The Button resizes itself for the new text.

It can be overcome by following the FsetText call with


but that just adds code which I thought was unnecessary.

Am I doing something wrong?


PostPosted: Wed Dec 12, 2001 4:22 pm
by jstadolnik
Currently, all buttons resize to fit all the text when FsetText is used. Using FresizeObj is the best option to fix this.

In the upcoming v7.2.0 release, I've implemented a new Fctl command which allows the button auto-resizing to be disabled.


The PToolboxLib guy.