🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #669

Problem with graphics in Textobject

#669
From: Jake
Date: Tue, 14 Apr 1992 03:05
22 lines
1372 bytes
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
Technical Details
Message-ID: <1992Apr14.030523.21437@pellns.alleg.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!fs7.ece.cmu.edu!pellns.alleg.edu!news

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!fs7.ece.cmu.edu!pellns.alleg.edu!news
From: sunthej@alleg.edu (Jake)
Subject: Problem with graphics in Textobject
Message-ID: <1992Apr14.030523.21437@pellns.alleg.edu>
Sender: news@pellns.alleg.edu
Organization: Allegheny College
Date: Tue, 14 Apr 1992 03:05:23 GMT
Lines: 22