PG graphics
Quote from Forum Archives on December 12, 1997, 12:40 pmPosted by: antone <antone@...>
I am using the PICT.FLTR from PG 4.3 in a project. I do some drawing
(PICTURE ON/PICTURE OFF) and then attach it to a picture window using FN
PICTattach(PictureHandle&). Later I need to modify the picture on screen
so I do the following:oldPictureHandle& = PICTURE
PICTURE ON (0,0)-(Right%,Bottom%)
PICTURE (0,0), oldPictureHandle&
'drawing actions here
PICTURE OFF, newPictureHandle&
FN PICTattach(newPictureHandle&)The modified PICT is substituted for the old PICT in the picture
window, and all scrolling, etc. seems to work fine until I print the
PICT. The problem is that the modified PICT is printed correctly, but
when the print dialog is done, and the picture window is refreshed, the
old PICT is put back in the window and the modifications are lost.Do any PG users know why this happens and how to prevent it? Secondly,
how do I direct my drawing directly to the GWorld for modification of the
PICT stored there?Sincerely,
Anton (a novice at everything) Ehrhardt
antone@creighton.edu
Posted by: antone <antone@...>
(PICTURE ON/PICTURE OFF) and then attach it to a picture window using FN
PICTattach(PictureHandle&). Later I need to modify the picture on screen
so I do the following:
oldPictureHandle& = PICTURE
PICTURE ON (0,0)-(Right%,Bottom%)
PICTURE (0,0), oldPictureHandle&
'drawing actions here
PICTURE OFF, newPictureHandle&
FN PICTattach(newPictureHandle&)
The modified PICT is substituted for the old PICT in the picture
window, and all scrolling, etc. seems to work fine until I print the
PICT. The problem is that the modified PICT is printed correctly, but
when the print dialog is done, and the picture window is refreshed, the
old PICT is put back in the window and the modifications are lost.
Do any PG users know why this happens and how to prevent it? Secondly,
how do I direct my drawing directly to the GWorld for modification of the
PICT stored there?
Sincerely,
Anton (a novice at everything) Ehrhardt
antone@creighton.edu