At 06:16 PM 11/9/99 +0300, Khalid Al-Sonbul wrote:
Hi every PFCer,
    What is the best way to open pfc_w_master descendant sheets and have
ervery control properly resized. I have sheets opening other child
sheet. But when the frame is maximized and sheet opens a child sheet
with default Cascaded!, both sheets get minimized or cascaded to ONE
sheet size.

But, on the other hand, when I used Layered! argument in
OpenSheetWithParm, the child sheet opened maximized, however, its
controls were not properly resized.

Khalid,

Take a look at the url below:
http://www.pfcguide.com/faq/faq_res.asp#Layered!

Here is the code to work around the issue:


Constant Int II_RESIZE_GAP = 50
...
int     ix, iy, imaxx, imaxy
of_setResize(TRUE)

IF IsValid(inv_resize) THEN
        inv_resize.of_getminmaxpoints(control, ix, iy, imaxx, imaxy)
        inv_resize.of_setorigsize(imaxx + II_RESIZE_GAP, &
        imaxy + II_RESIZE_GAP)
END IF


  Boris Gasin
  mailto:[EMAIL PROTECTED]
    ___ 
  ____   _      
 _____    _     
  ____   _      
    ___ 

  Chief Technology Officer
  Dynamic Technology Group, Inc.
  http://www.dynamictechgroup.com/
  1055 Parsippany Blvd., Suite 501-26
  Parsippany, NJ 07054
  Phone: 973.402.5600
  Fax:   973.402.5620

Reply via email to