Dialogbox, auto-hide, and FITTOTABLE

Hi all,

I have a form which has a table with some hidden rows. When I call the form via dialogbox with FITTOTABLE, it is correctly sized for the non-hidden data. However, after some data has been inputted, the hidden rows reveal themselves based upon the entered information. The problem is, the dialogbox does not resize itself at this point, so the new areas can not be seen. Anyone know of a way to resolve this?

Patrick

Subject: Dialogbox, auto-hide, and FITTOTABLE

Dialog boxes do not dynamically resize - the size is calculated when the dialog box is first created, and stays the same no matter what happens on the form during its lifetime.

You could have a blank table row that appears under the opposite conditions of the hidden data rows, so that the blank row holds the space when the box is created, and relinquishes the space in favor of your formerly hidden rows.

hth

Subject: RE: Dialogbox, auto-hide, and FITTOTABLE

I didn’t think it would be possible, but I did want to confirm before giving up. Thanks, Stuart.

Patrick

Subject: RE: Dialogbox, auto-hide, and FITTOTABLE

You could set up the code that calls the dialog with a signal (e.g. some hidden field assigned to a particular value) that means to reopen the dialog. Then you could have a button or event code in the dialog that sets this field, updates fields to caller, and closes the dialog, which immediately reopens with the new information at the right size.

Otherwise, you could just reserve the space by making the table large enough for the maximum, so that when hide formulas change the dialog size doesn’t have to change also.