home *** CD-ROM | disk | FTP | other *** search
- ; MEM_PIX.DAT Get Family Member Photo
- [GetMemberPicture]
- COPY photo = eval( "memberPhoto",nSel )
- SETTYPE photo = normal
- SETTEMP memberHasPhotoVar = "memberHasPhoto",nSel
- SETTEMP hasPhoto = eval( memberHasPhotoVar )
-
- IF type <> = "Pet"
- SETTEMP photo_prmt = "A picture of ",name,pers_pix3
- SETTEMP junk = name," ",familyLastName
- SETTEMP wizPic = "wizpics\wizphoto.gif"
- ELSE
- SETTEMP photo_prmt = pet_n1,name,pet_n2
- SETTEMP junk = "Our pet: ",name
- SETTEMP wizPic = "wizpics\wizpet.gif"
- IF photo = ""
- SETTEMP photo = modulepath( "wizpics\pet.gif" )
- ENDIF
- ENDIF
-
- IF hasPhoto = "Standard"
- GOSUB PickStdPhoto
- ELSE
- IF hasPhoto = NN
- ;build one with TEXT2PIX
- GOSUB MakeMemberPhotoPlaceholder
- ELSE ;answer must be yup
-
- BACKSTOP
- PAGE
- NOSPELLCHECK
- WIZPIC_RE wizPic
- TYPE PICTUREANDCAPTION
- DESCRIPTION_RE photo_prmt
- NAME photo
- PROMPT P&icture:
- ARGUMENT @junk
- ENDIF
- ENDIF
-
- SETSCALE photo = 180 220
-
- SETTYPE photo = normal
-
- SETTYPE photo = picture
- COPY eval( "memberPhoto",nSel ) = photo
-
-
- ;xxxxxxxxxxxxxxxxxxxxxxxx CHOOSE DEFAULT PICTURE xxxxxxxxxxxxxxxxxxxxxxxxx
- [PickStdPhoto]
- SETTEMP caption = "Pick one of these to use until you are ready to add a digital picture. You can easily change to a different picture later."
- SETTEMP photo = unmodulepath( photo )
-
- IF type = "Pet"
- GOTO ChooseStandardPetPix
- ENDIF
- ;
- IF gender = "male"
- ; the male choices
- BACKSTOP
- PAGE
- WIZPIC wizpics\wizfm128.gif
- TYPE COMBO
- NAME photo
- DESCRIPTION_RE caption
- PROMPT P&icture:
- ARGUMENT "Canine Dad"@clip_art\people\dog_pop.gif@"clip_art\people\dog_pop.gif"
- ARGUMENT "Canine Brother"@clip_art\people\dog_bro.gif@"clip_art\people\dog_bro.gif"
- ARGUMENT "Pop Bear"@clip_art\people\papa_b.gif@"clip_art\people\papa_b.gif"
- ARGUMENT "Accounting Bird"@clip_art\people\bird2.gif@"clip_art\people\bird2.gif"
- ARGUMENT "Baseball Bird"@clip_art\people\bird3.gif@"clip_art\people\bird3.gif"
- ARGUMENT "Junior Bear"@clip_art\people\junior_b.gif@"clip_art\people\junior_b.gif"
- ARGUMENT "The Wizard Chef"@wizpics\chefwiz.gif@"wizpics\chefwiz.gif"
- ARGUMENT "Atza Nice Chef"@clip_art\people\chef3.gif@"clip_art\people\chef3.gif"
- ARGUMENT "Little Boy Wizard"@wizpics\is_boy.gif@"wizpics\is_boy.gif"
- ARGUMENT "Cartoon Boy"@clip_art\people\lad_1.gif@"clip_art\people\lad_1.gif"
- ARGUMENT "Professional Man"@clip_art\people\man_1.gif@"clip_art\people\man_1.gif"
- ARGUMENT "Casual Man"@clip_art\people\man_2.gif@"clip_art\people\man_2.gif"
- ARGUMENT "Male Silhouette"@wizpics\man.gif@"wizpics\man.gif"
-
- ELSE
- ;the female choices
- BACKSTOP
- PAGE
- WIZPIC wizpics\wizfm128.gif
- TYPE COMBO
- NAME photo
- DESCRIPTION_RE caption
- PROMPT P&icture:
- ARGUMENT "Canine Mom"@clip_art\people\dog_mom.gif@"clip_art\people\dog_mom.gif"
- ARGUMENT "Canine Sister"@clip_art\people\dog_sis.gif@"clip_art\people\dog_sis.gif"
- ARGUMENT "Mom Bear"@clip_art\people\mama_b.gif@"clip_art\people\mama_b.gif"
- ARGUMENT "Sister Bear"@clip_art\people\sis_b2.gif@"clip_art\people\sis_b2.gif"
- ARGUMENT "Shopping Bird"@clip_art\people\bird4.gif@"clip_art\people\bird4.gif"
- ARGUMENT "Little Girl Wizard"@wizpics\is_girl.gif@"wizpics\is_girl.gif"
- ARGUMENT "Cartoon Girl"@clip_art\people\girl_1.gif@"clip_art\people\girl_1.gif"
- ARGUMENT "Lady Frazzle"@clip_art\people\frazzled.gif@"clip_art\people\frazzled.gif"
- ARGUMENT "Professional Woman"@clip_art\people\fem_bus.gif@"clip_art\people\fem_bus.gif"
- ARGUMENT "Cartoon Woman"@clip_art\people\fem_car.gif@"clip_art\people\fem_car.gif"
- ARGUMENT "Modern Woman"@clip_art\people\fem_hip.gif@"clip_art\people\fem_hip.gif"
- ARGUMENT "Female Silhouette"@wizpics\woman.gif@"wizpics\woman.gif"
-
- ENDIF
-
- [ChooseStandardPetPix] ;xxxxxxxxxxxxxxx STANDARD PET PICTURE xxxxxxxx
- BACKSTOP
- PAGE
- WIZPIC wizpics\wizpet.gif
- TYPE COMBO
- NAME photo
- DESCRIPTION_RE caption
- PROMPT P&icture:
- ARGUMENT "Black Dog on Leash"@clip_art\animals\dog2.gif@"clip_art\animals\dog2.gif"
- ARGUMENT "Brown Dog Peeking"@clip_art\animals\dog3.gif@"clip_art\animals\dog3.gif"
- ARGUMENT "Black Cat on Alert"@clip_art\animals\cat.gif@"clip_art\animals\cat.gif"
- ARGUMENT "Big kitty!"@clip_art\animals\tiger.gif@"clip_art\animals\tiger.gif"
- ARGUMENT "3 Little Kittens"@clip_art\animals\kittens.gif@"clip_art\animals\kittens.gif"
- ARGUMENT "Green Parakeet"@clip_art\animals\bird_1.gif@"clip_art\animals\bird_1.gif"
- ARGUMENT "Lizard"@clip_art\animals\lizard_2.gif@"clip_art\animals\lizard_2.gif"
- ARGUMENT "Red Parrot"@clip_art\animals\bird_2.gif@"clip_art\animals\bird_2.gif"
- ARGUMENT "Fish Drawing"@clip_art\animals\fish2.gif@"clip_art\animals\fish2.gif"
- ARGUMENT "Rhino!"@clip_art\animals\rhino.gif@"clip_art\animals\rhino.gif"
-
-
- ;xxxxxxxxxx Construct a member picture placeholder xxxxxxxx
- [MakeMemberPhotoPlaceholder]
- MAKEDIR modulepath( "pictures" )
-
- SETTEMP memNameVar = "memberName",nSel
- SETTEMP file_pix_name = eval( memNameVar )
-
- SETTEMP dir = modulepath( "pictures" )
- MAKEDIR dir
- SETTEMP pictureFile = dir,"\",file_pix_name,".gif"
- SETTEMP pictureFile = uniquefile( pictureFile )
-
- SETTEMP shadowColor = "128,128,128" ;grey
-
- ; create a data file for the TEXT2PIX program
- DATAFILE modulepath( "mem_pix.cfg" )
- ARGUMENT eval( memNameVar )
- ARGUMENT textPixFont
- ARGUMENT textPixColor
- ARGUMENT shadowColor
- ARGUMENT textPixBGColor
- ARGUMENT "3 3"
- ARGUMENT "1"
- ARGUMENT "1 1 0 1" ;show text, show shadow, not transparent, convert to 256 col
- ARGUMENT pictureFile
-
- EXECUTE modulepath( "text2pix.exe" )," ",modulepath( "mem_pix.cfg" )
-
- SETTYPE pictureFile = normal
- COPY photo = pictureFile
-
- ;xxxxxxxxxxxxxxxxxxxxx REPLACE FAMILY MEMBER PHOTO xxxxxxxxxxxxxxxxxx
-
- [ReplaceMemberPhoto]
- ; preconditions: photo and oldPhoto must be set
- ; variables must be normal to call REPLACEPICTURE
- SETTYPE oldPhoto = normal
- SETTYPE photo = normal
-
- BUSY 1
- ARGUMENT "The wizard is now replacing the personal photo of this family member. It will take just a moment."
-
- ; replace in Meet The Family page
- REPLACEPICTURE oldPhoto photo 80 60 pageMeetFamily
-
- ; replace in personal page
- SETTEMP memberPageVar = "memberPage",nSel
- SETTEMP personalPage = eval( memberPageVar )
- REPLACEPICTURE oldPhoto photo 180 256 personalPage
-
- ; replace in personal linkage page
- SETTEMP memberLinkPageVar = "memberLinkagePage",nSel
- SETTEMP memberLinkPage = eval( memberLinkPageVar )
- SETTEMP hasLinkPage = istopic( memberLinkPage )
- IF hasLinkPage = YY
- REPLACEPICTURE oldPhoto photo 180 256 memberLinkPage
-
- GOSUB DeterminePersPages ;see what's there
- IF hasMPFavs = YY
- REPLACEPICTURE oldPhoto photo 180 256 pageMPFavsVar
- ENDIF
- IF hasMPActs = YY
- REPLACEPICTURE oldPhoto photo 180 256 pageMPActsVar
- ENDIF
- IF hasMPNews = YY
- REPLACEPICTURE oldPhoto photo 180 256 pageMPNewsVar
- ENDIF
- ENDIF
-
- BUSY 0
-