From 9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 5 May 2018 18:22:00 +0200 Subject: New upstream version 5.1.1 --- app/bin/cmisc.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'app/bin/cmisc.c') 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; -- cgit v1.2.3