
! script name: misc.d/makebitmap

!A
!A NAME:
!A
!A 	MAKE ICON BITMAP
!A
!A DESCRIPTION:
!A
!A 	This script creates a bit map file.  The geometry in a view,
!A 	selected by the user, will be used to construct the bit map file.
!A
!B INSTRUCTIONS:
!B
!B 	SELECT VIEW FOR BITMAP: Select the view to be made into a bit map.
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: make icon bitmap ")

DIM Answer$[256]
DIM Destination$[256]
DEG

Bitmap_loop:!

Vnum=PickView("SELECT VIEW FOR BITMAP")
IF (ExitScript(Destination$)) THEN Leave

stat= CreatePixmap(vnum,"xgrabsc","-Xt","-i","bitjnk")
!stat= CreatePixmap(vnum,"xgrabsc","-W","  ","bitjnk")

Leave:!
IF (NOT LEN(Destination$)) THEN
         LOAD "typecontrol"
ELSE
         LOAD Destination$
END IF
END


