bug-ncurses
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
CDK entry
From
:
吴小虎
Subject
:
CDK entry
Date
:
Thu, 12 Jun 2008 10:17:21 +0800
hi:
CDK entry.c should do some modify.
647 /*
648 * This redraws the entry field.
649 */
650 static void drawCDKEntryField (CDKENTRY *entry)
651 {
652 int infoLength = 0;
653 int x = 0;
654
655 /* Draw in the filler characters. */
656 mvwhline (entry->fieldWin, 0, x, entry->filler, entry->fieldWidth);
657
658 /* If there is information in the field. Then draw it in. */
659 if (entry->info != 0)
660 {
661 infoLength = (int)strlen (entry->info);
662
663 /* Redraw the field. */
664 if (isHiddenDisplayType (entry->dispType))
665 {
666 #if 1
667 wmove (entry->fieldWin, 0, 0);
668 for (x = entry->leftChar; x < infoLength; x++)
669 {
670 waddch (entry->fieldWin, entry->hidden);
671 }
672 #else
673 for (x = entry->leftChar; x < infoLength; x++)
674 {
675 mvwaddch (entry->fieldWin, 0, x - entry->leftChar, entry->hidden);
676 }
677 #endif
678 }
679 else
680 {
681 #if 1
682 wmove (entry->fieldWin, 0, 0);
683 for (x = entry->leftChar; x < infoLength; x++)
684 {
685 waddch (entry->fieldWin, CharOf (entry->info[x]) | entry->fieldAttr);
686 }
687 #else
688 for (x = entry->leftChar; x < infoLength; x++)
689 {
690 mvwaddch (entry->fieldWin, 0, x - entry->leftChar,
691 CharOf (entry->info[x]) | entry->fieldAttr);
692 }
693 #endif
694 }
695 #if 0
696 wmove (entry->fieldWin, 0, entry->screenCol);
697 #endif
698 }
699
700 wrefresh (entry->fieldWin);
701 }
I don't kown how to process when I press BS.
xiaohu
2008.6
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
CDK entry
,
吴小虎
<=
Re: CDK entry
,
Thomas Dickey
,
2008/06/12
Prev by Date:
Re: Fwd: cdk problem
Next by Date:
Re: CDK entry
Previous by thread:
Fwd: cdk problem
Next by thread:
Re: CDK entry
Index(es):
Date
Thread