Thomas Dickey-2 wrote:
Perhaps you can send a short demo program - then we can discuss...
Here it is:
bool Quit=false;
static int OnChar(EObjectType cdktype,void *object,void
*clientData,chtype key)
{
Quit=true;
}
static char* choices[]={
" ",
"*"
};
int main()
{
CDKSCREEN* cdkscreen=initCDKScreen(initscr());
CDKSELECTION* sel1 =
newCDKSelection(cdkscreen,20,2,RIGHT,-4,-21,"</U>Sel1<!U>",0,0,choices,2,A_REVERSE,true,false);
CDKSELECTION* sel2 =
newCDKSelection(cdkscreen,1,2,RIGHT,-4,19,"</U>Sel2<!U>",0,0,choices,2,A_REVERSE,true,false);
bindCDKObject(vSELECTION, sel1, 'q', OnChar, 0);
bindCDKObject(vSELECTION, sel2, 'q', OnChar, 0);
drawCDKSelection(sel2,true);
while(!Quit)
{
while(activateCDKSelection(sel1,0)!=1);
if(Quit)
break;
while(activateCDKSelection(sel2,0)!=1);
}
destroyCDKSelection(sel2);
destroyCDKSelection(sel1);
destroyCDKScreen(cdkscreen);
endCDK();
return 0;
}