diff options
Diffstat (limited to 'app/bin/cmisc.c')
-rw-r--r-- | app/bin/cmisc.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/app/bin/cmisc.c b/app/bin/cmisc.c index 227a7d0..4822540 100644 --- a/app/bin/cmisc.c +++ b/app/bin/cmisc.c @@ -127,7 +127,7 @@ static paramData_t describePLs[] = { #define I_EDITLIST_N I_EDITLIST_0+1 #define I_TEXT_0 I_EDITLIST_N - { PD_TEXT, NULL, "T1", 0, &tdata }, + { PD_TEXT, NULL, "T1", 0, &tdata, NULL, BT_HSCROLL }, #define I_TEXT_N I_TEXT_0+1 #define I_PIVOT_0 I_TEXT_N @@ -267,10 +267,18 @@ static void DescribeUpdate( } if ((ddp->mode&DESC_CHANGE) == 0) { - continue; + if ((ddp->mode&DESC_CHANGE2) == 0) + continue; } ddp->mode &= ~DESC_CHANGE; + if (ddp->type == DESC_POS) { //POS Has two fields + if (ddp->mode&DESC_CHANGE2) { + ddp->mode &= ~DESC_CHANGE2; //Second time + } else { + ddp->mode |= DESC_CHANGE2; //First time + } + } ParamLoadControl(&describePG, inx); } } @@ -343,6 +351,9 @@ static wControl_p AllocateButt(descData_p ddp, void * valueP, char * label, if (label && ddp->type != DESC_TEXT) { wControlSetLabel(describePLs[inx].control, label); describePLs[inx].winLabel = label; + } else { + wControlSetLabel(describePLs[inx].control, ""); + describePLs[inx].winLabel = ""; } return describePLs[inx].control; |