bug-ncurses
[Top][All Lists]
Advanced

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

A few of more CDK questions


From: Kevin Monceaux
Subject: A few of more CDK questions
Date: Wed, 18 Jun 2008 12:27:57 -0500 (CDT)
User-agent: Alpine 1.10 (DEB 962 2008-03-14)

CDK Fans,

I have a few more CDK questions.

Is there a way to set a field to "auto tab" when using traverseCDKScreen, so that when one fills a field the cursor jumps to the next field?

Is there a way to have a field's fillerCharacter displayed with the fieldAttribute attributes? I've found the setCDKEntryBackgroundAttrib function, but that also affects the field's label. For example, on displays that are capable of displaying underlined text, I might want the actual data entry field to be underlined, but not the field's label. I've achieved the desired effect with something like:

   name      = newCDKEntry (cdkscreen,
                5, 6,
                NULL,
                "</B/24>Name:<!24>     ",
                A_BOLD|A_UNDERLINE|COLOR_PAIR(56), '_', vMIXED,
                50, 0, 50,
                FALSE, FALSE);

   setCDKEntryBackgroundAttrib(name, COLOR_PAIR(56));

I'm just wondering if there's a better way to achieve the same thing.

Can CDK handle accented, or other unicode, characters. I have LANG=en_US.UTF-8 in my environment. If I try to type an accented character, such as รก, in a field it appears as two boxes instead of the intended character. I've tried with the program linked against libncurses and libncursesw and get the same results either way.




Kevin
http://www.RawFedDogs.net
http://www.WacoAgilityGroup.org
Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!

reply via email to

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