1) I am migrating my old FPW 2.6 application to VFP 9 just as it is, and
when I use the BROWSE command I see on screen that the columns are not wide
enough to comfortably accomodate the strings. However, if I double-click
with the mouse on the square in the upper left corner just under the title
bar of the browse window, all the columns become wider, and can be read
easily. How can I achieve the same without intervention of the user by
double-clicking? Is there a command that I can include in my program ?

2) when I issue REPORT FORM xxxx PREVIEW NOCONSOLE the report opens by
default in a non-maximized window. How can I zoom to maximize without having
to handle the mouse?
How can I close the preview window by pressing Escape instead of clicking on
the little window with the open door?

TiA
Walter

Re: Coming from FPW 2.6 (2nd part) by Bernhard

Bernhard
Wed Oct 25 14:24:41 CDT 2006

Hi WP,

> 1) I am migrating my old FPW 2.6 application to VFP 9 just as it is, and
> when I use the BROWSE command I see on screen that the columns are not wide
> enough to comfortably accomodate the strings. However, if I double-click
> with the mouse on the square in the upper left corner just under the title
> bar of the browse window, all the columns become wider, and can be read
> easily. How can I achieve the same without intervention of the user by
> double-clicking? Is there a command that I can include in my program ?
If you add the keyword NAME to your BROWSE then you can autofit your BROWSE in code:
BROWSE ... NAME yourBrowse
yourBrowse.AutoFit()

If you need more functions for your BROWSE, check the GRID topics in help.

Regards
Bernhard Sander

Re: Coming from FPW 2.6 (2nd part) by WP

WP
Wed Oct 25 15:04:43 CDT 2006

Thanks, Bernd. I have tried your suggestion.

AutoFit works correctly but only with NOWAIT:

BROWSE NAME xxxx NOWAIT
=xxxx.AutoFit()

But it does not work with
BROWSE NAME xxxx WHEN xxxx.AutoFit().

Just for your information

Walter



"Bernhard Sander" <fuchs@no.spam> escribió en el mensaje
news:%23$jC6sG%23GHA.1196@TK2MSFTNGP02.phx.gbl...
> Hi WP,
>
>> 1) I am migrating my old FPW 2.6 application to VFP 9 just as it is, and
>> when I use the BROWSE command I see on screen that the columns are not
>> wide enough to comfortably accomodate the strings. However, if I
>> double-click with the mouse on the square in the upper left corner just
>> under the title bar of the browse window, all the columns become wider,
>> and can be read easily. How can I achieve the same without intervention
>> of the user by double-clicking? Is there a command that I can include in
>> my program ?
> If you add the keyword NAME to your BROWSE then you can autofit your
> BROWSE in code:
> BROWSE ... NAME yourBrowse
> yourBrowse.AutoFit()
>
> If you need more functions for your BROWSE, check the GRID topics in help.
>
> Regards
> Bernhard Sander