Article View: comp.sys.next.programmer
Article #679Re: Problem with graphics in Textobject
From: Dick Phillips
Date: Tue, 14 Apr 1992 15:44
Date: Tue, 14 Apr 1992 15:44
30 lines
1607 bytes
1607 bytes
In article <1992Apr14.030523.21437@pellns.alleg.edu> sunthej@alleg.edu (Jake) writes: > Hi all. > I've got a strange sort of problem, although I think I know the solution, > I don't know how to implement it. I'm using Jayson Adams technique for > putting graphics in a Text object (ie: > > //select the sel I want// > newImage = [[NXImage alloc] initFromFile:[openPanel filename]]; > newGraphic = [[GraphicImage alloc] initForImage:newImage]; > [[dmCardFace docView] setMonoFont:NO]; > [[dmCardFace docView] replaceSelWithCell:newGraphic]; > > My only problem is that when I have the imported image on the same line as > some text, where the picture goes past the right side of the view, the > picture appears double- once on the line with the text on it, once on the > line below it. If I delete one image they both disappear. > > It seems to me that there needs to be somekind of update to move the > picture to the next line... does anyone have any ideas how? > > Thanks a lot, > Jake > EMAIL: sunthej@alleg.edu You can eliminate this behavior with one statement: [[dmCardFace docView] setCharWrap:NO]; Dick Phillips
Technical Details
Message-ID:
<1992Apr14.154438.11697@newshost.lanl.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!hellgate.utah.edu!lanl!newsReferences:
<1992Apr14.030523.21437@pellns.alleg.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!hellgate.utah.edu!lanl!news From: rlp@lanl.gov (Dick Phillips) Subject: Re: Problem with graphics in Textobject Message-ID: <1992Apr14.154438.11697@newshost.lanl.gov> Sender: news@newshost.lanl.gov Organization: Los Alamos National Lab References: <1992Apr14.030523.21437@pellns.alleg.edu> Date: Tue, 14 Apr 1992 15:44:38 GMT Lines: 30