|
From: | Fu Steve X |
Subject: | RE: addCDKScrollItem function in CDK |
Date: | Thu, 24 Mar 2005 15:43:34 -0500 |
BTW, I didn't install any ncurses. Simply use whatever is with the OS, redHat9 or solaris8.
-----Original Message-----
From: Thomas Dickey [mailto:address@hidden]
Sent: Thursday, March 24, 2005 3:32 PM
To: Fu Steve X
Cc: 'address@hidden'
Subject: RE: addCDKScrollItem function in CDK
On Thu, 24 Mar 2005, Fu Steve X wrote:
> Thanks for the quick response!
>
> I checked out the latest CDK tarball and played with it. The new
> addCDKScrollItem did work for normal case where the initial listSize
> is greater than the height of the SCROLL. In this case you have to
> scroll up and down to view the whole list.
>
> But when the initial listSize is less than the height of the SCROLL,
> you can only view the a SCROLL of effective height as the initial
> listSize even you already added some items and the defined height is
> larger. This is on RedHat9.
yes - I hadn't looked closely at scroll.c for a while, and was puzzling over that part of it last night. But I can see that it would do what
you're describing. (will investigate to see what improvement can be
made).
> It appears the ToggleSize didn't get incremented in addCDKScrollItem.
> Please take a look into it.
yes - I didn't notice that (I see it's not updated for deleteCDKScrollItem
either). But that wouldn't explain the core dump (unless toggleSize is
zero, and you are for instance using Sun's curses - I don't recall if it
does any error checking for that case).
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |