Number: 794

Date: 23-Apr-84 14':31':49

Submitter: Sannella.PA

Source: Halasz.pa

Subject: TEDIT.OBJECT.CHANGED does NOT work under BUTTONEVENTFN for an IMAGEOBJ

Assigned To: 

Attn: 

Status: Declined

In/By: 

Problem Type: Bug

Impact: Serious

Difficulty: Moderate

Frequency: Everytime

Priority: Hopefully

System: Text

Subsystem: TEdit

Machine: 

Disk: 

Lisp Version: 

Source Files: 

Microcode Version: 

Memory Size: 

File Server: 

Server Software Version: 

Disposition: 

Description: '
Date': 19 Apr 84 20':49 PST'
From': Halasz.pa'
Subject': TEdit': TEDIT.OBJECT.CHANGED does NOT work under  BUTTONEVENTFN for an IMAGEOBJ'
To': TEditSupport.pa'
cc': Halasz.pa'
'
TEdit System Date': 13-Apr-84 11':44':53'
Lisp System Date': 16-Apr-84 12':58':26'
Machine': Dorado (Halasz)'
Microcode version': 24,4'
Memory size': 10000'
Frequency': Always'
Impact': Serious (for PSA project)'
'
TEDIT.OBJECT.CHANGED does not work when called under the objects BUTTONEVENTINFN.  But this is exactly where it is needed most, since if the button event causes a change in the objects dimensions or its display, TEDIT should redisplay it.'
'
Under these circumstances TEDIT.OBJECT.CHANGED seems to call the objects ImageBox Fn okay.  And in fact changes TEDIT notion of the object''s size.  But it never calls the obkects DISPLAYFN and never repaints the object.  And it also never reformats the text around the object if the object changes size.'
'
'
Frank'
'
[JDS, IN DECLINING':  Within the BUTTONEVENTINFN, the window''s clipping region is restricted to the object''s image area, to prevent spurious over-writes and simplify lots of code, and besides because the spec says so.  Hence, there''s no way TEDIT.OBJECT.CHANGED can do what you want.  The correct course is for your BUTTONEVENTINFN to return the atom CHANGED (I think--check the updated spec), whereupon TEdit will update the screen]'


Workaround: 

Test Case: 

Edit-By: Sybalsky

Edit-Date: 20-Jul-84 09':56':48