bug-ncurses
[Top][All Lists]
Advanced

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

Re: setCDKRadioCurrentItem in latest CDK


From: Thomas Dickey
Subject: Re: setCDKRadioCurrentItem in latest CDK
Date: Tue, 10 May 2005 12:22:12 -0400 (EDT)

On Tue, 10 May 2005, Fu Steve X wrote:

After the updating to cdk-5.0-20050424, my application quit working.  I
found it was the function call:

        setCDKRadioCurrentItem(Radio, 0)

It is defined in the header file cdk_int.h as:
        #define scroller_KEY_HOME(w) \
     (w)->currentTop   = 0; \
     (w)->currentItem = 0; \
     (w)->currentHigh = 0
Probably the attribute selectedItem is missing.

So I put the following to my code to work around it.
        Radio->selectedItem = 0;
     Radio->currentItem = 0;
     Radio->currentHigh = 0;

thanks (that does sound like you've identified the fix).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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