[15582] in Athena Bugs

home help back first fref pref prev next nref lref last post

Motif 1.1.2 bug

daemon@ATHENA.MIT.EDU (Dipti Suthar)
Mon Oct 20 09:14:46 1997

Date: Mon, 20 Oct 1997 09:10:05 -0400 (EDT)
From: Dipti Suthar <dipti@bluestone.com>
To: direct@osf.org
Cc: bugs@MIT.EDU, Dipti Suthar <dipti@chagall.bluestone.com>


              OSF Problem Report
          =================================


Submitter Information (Include Email address at miminum) 
---------------------

Submitter Name:            Ken Boi
Organization:              Reuters
Email Address:             ken.boi@reuters.com
Phone:                     630-574-7424 x.2765
OSF License Number:        
Licensee's Defect Number:  


Hardware/Software Configuration
-------------------------------

Offering and Version:    MWM 1.2
Component (Module):      ScrolledWindow/ScrolledText widgets
Client Hardware:         Sun Ultra 1
Client Software:         SunOS, Solaris 5.5.1
Server Hardware:    
Server Software:    
Compiler:        

Problem Description
-------------------

Severity Level: Minor

Date of First Occurrence: 

One Line Description:

    ScrolledWindow/scrolledText sporadically does not scroll properly to
line 1.

Full Description:

    I have a scrolledWindow/scrolledText widget where I display status 
    messages. These messages are placed into the text widget using the 
    XmTextInsert function. I keep track of the text position for each 
    subsequent text insertion, as I do not fill the text field with a 
    single text insertion request, but rather multiple requests. The 
     problem does not occur all the time. One requirement is that there 
    be at least the minimum number of lines which causes the vertical
    scrollbar to become active (i.e., there are lines which can be scrolled
    up or down). 

    If I single-line scroll the text window up to the top, then 
    occasionally I get a sort of phantom line which is always associated 
    with the FIRST line in the scrolled text window (I will attempt to 
    detail this below graphically). The phantom line is composed of text 
    from the first line, but only those characters which come after the 
    24TH character position in line 1. So what I found to be consistent, 
    is that the problem shows up at line 2 of the text window and the 
    phantom characters are composed of all characters from the 24th 
    position to end-of-line which comprise line 1. But, the problem only 
    occurs sporadically. It may take me 5 attempts before it occurs.

    If I have the scrolled text window scrolled to this phantom line and 
    I were to increase the size of the window to show all lines without 
    the vertical scrollbar, then the window text is refreshed and the 
    phantom characters go away. Very odd!

    I have placed some debug statements into the code to display the 
    contents of the scrolled text window (XmTextGetString) and the 
    contents are complete and look exactly as I want it. 

    EXAMPLE SCROLLED TEXT WINDOW OUTPUT
    -----------------------------------
    Good output:
       line 1: The quick brown fox jumped over the fence.
       line 2: This is test line 1.
       line 3: - This is also a test line.
       line 4: This is test line 2.

    Problem output:
       line 2: ed over the fence.
       line 3: This is test line 1.
       line 4: - This is also a test line.
       line 5: This is test line 2.

    If I now scroll the problem output up to the first line:
       line 1: The quick brown fox jumped over the fence.
       line 2: This is test line 1.
       line 3: - This is also a test line.
       line 4: This is test line 2.

    Is this a known bug in Motif for scrolled text windows?
 
Repeat By:

    Can't provide an example.

Proposed Solution:

    Do not have a solution.


------------------------------------------------------------------------
Any views expressed in this message are those of the individual  sender,
except  where  the  sender  specifically  states them to be the views of
Reuters Ltd.



home help back first fref pref prev next nref lref last post