Button Auto-Resize Question

A PocketC native palm library offering native forms and assorted utilities

Postby Dave F on Wed Dec 12, 2001 4:06 pm

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?

Dave F
Posts: 24
Joined: Fri Nov 30, 2001 11:42 am
Location: USA

Postby jstadolnik on Wed Dec 12, 2001 4:22 pm

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.
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Return to Pocket Toolbox

Who is online

Users browsing this forum: No registered users and 2 guests