[futurebasic] Re: [FB] Pict Dimensions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1998 : Group Archive : Group : All Groups

From: Bowerbird@...
Date: Fri, 25 Dec 1998 19:58:19 EST
'This FN will center a PICT hande in the middle of the current
'window. Made By Chris Parrott, President of Para-Sights Software


LOCAL FN CenterPICT (PICT&)
  LONG IF PICT&
    DIM rect.8
    rect;8 = [PICT&]+_picFrame
    h = rect.right% - rect.left%
    v = rect.bottom% - rect.top%
    wh = WINDOW(_width)
    wv = WINDOW(_height)
    ph = wh - h
    pv = wv - v
    ph2 = ph/2
    pv2 = pv/2
    PICTURE (ph2,pv2), PICT&
  END IF
END FN