Thanks Jack,

I had a less-then-good solution for report previews from top level forms
that your solution helps with. I was up to the part where only by
minimizing the report preview could I see the report controls toolbar,
but I wasn't happy with that. With your solution, the toolbar is visible
with the form maximized, and that's much better. 

I did try to come up with a way to move the toolbar around, but don't
see how to do it.

I made two changes I thought I'd pass on:

1. Issuing the KEYBOARD '{CTRL+F10}' PLAIN command repeated behaves like
a toggle, with report contents visible the first time, then minimized
the 2nd time, etc. So, in the report_preview form's init, I've added a
control to issue the command just once per session. 

IF [session property]
 KEYBOARD '{CTRL+F10}' PLAIN        && will make sure the form is
maximized...
 STORE .t. TO [session property]    && only run this 1x
ENDIF

This may not be a complete solution, but it solved the 'toggling effect'
I noticed when repeating the same test report several times.


2. After issuing the REPORT FORM ... Command, I added:

release windows frmpreview

To get rid of the preview form.


Bill


> Sorry for jumping in late but here is how I do this:
> I have a form called frmPreview that is a top level form that 
> is modal. Here is the init method for that form 
> thisform.Width = SYSMETRIC(1)  &&max video width 
> thisform.Height = SYSMETRIC(2) &&max video height
> thisform.WindowState = 2       &&maximized
> KEYBOARD '{CTRL+F10}' PLAIN    &&will make sure the form is 
> maximized...
> *
> Then in my report form I run the following code:
> DO FORM frmPreview.scx
> REPORT FORM rptStandard_ice  PREVIEW IN WINDOW frmPreview
> *
> This seems to work very well...now if I can figure out how to 
> dock the print preview window under the title bar it would 
> really work great...
> Regards,
> 
> Jack Skelley



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to