[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A few of more CDK questions
From: |
Thomas Dickey |
Subject: |
Re: A few of more CDK questions |
Date: |
Wed, 18 Jun 2008 19:44:11 -0400 (EDT) |
On Wed, 18 Jun 2008, Kevin Monceaux wrote:
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?
no (I believe that's yet another code change)
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,
The filler character is a character+video attributes, so you should
be able to just OR it with the color.
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!!!
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net