[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scroll in CDK

From: Thomas Dickey
Subject: Re: Scroll in CDK
Date: Tue, 8 Mar 2005 19:29:02 -0500
User-agent: Mutt/1.5.6+20040907i

On Tue, Mar 08, 2005 at 02:30:29PM -0500, Fu Steve X wrote:
> Tom,
> A couple of things about the Scroll widget are illustrated in the test
> program at the end of this message. The test program is based on the sample
> scroll_ex.c.
> 1. I invoke the function deleteCDKScrollItem( ) to delete an item then
> re-draw the Scroll. The numbers do not get re-set when re-drawing the Scroll
> if the Boolean numbers is turned on, They are now 1,2,4... since 3 is
> deleted.

yes - I see that (hadn't noticed it before).  I'll add that one to my to-do
list (changing it isn't simple, since CDK's only storing the formatted
strings).  The corresponding addCDKScrollItem() has the same problem.

> 2. The following line is needed to avoid a core dump when deleting all items
> and reset the scroll with new items.
>       scrollList->item = 0; 
> I think it is because the function call CDKfreeChtypes at line #846 in
> createCDKScrollItemList. Not sure why it is needed to be freed. If it is
> really needed, probably the scrollp->item should be set to NULL in
> deleteCDKScrollItem when the listSize==0.

not exactly - I see this one was an incorrect loop limit in deleteCDKScrollItem.

Thomas E. Dickey <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]