summaryrefslogtreecommitdiff
path: root/app/bin/cmisc.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-07-10 23:05:17 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-07-10 23:05:17 +0200
commitc120c7bcbcf115ecc2a6668f4c7f45b3d4a5bc86 (patch)
tree5550610553d1b1d7236d052b6e956b22e0bb4883 /app/bin/cmisc.c
parent67d0ce65dc6a1d240e271a7cd479b60aa1dc2967 (diff)
parent26d299964db18cb71c2c6a5be4864479ba82d54f (diff)
Merge branch 'release/debian/5.1.1-1'debian/5.1.1-1
Diffstat (limited to 'app/bin/cmisc.c')
-rw-r--r--app/bin/cmisc.c15
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;