diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-05 19:24:29 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-05 19:24:29 +0200 |
commit | 81184b836a6ddbeaca5f85781a052cb36424e37f (patch) | |
tree | 1965bd34b4e351e5148a1412e618555b72330117 /app/bin/cmisc.c | |
parent | 67d0ce65dc6a1d240e271a7cd479b60aa1dc2967 (diff) | |
parent | c1f7a0251136f6327d14a85eb5a761489551b668 (diff) |
Merge branch 'feature/upstream' into develop
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; |