Project

General

Profile

Bug #2168

Updated by Eugenie Lyzenko over 10 years ago

Another attribute drawing mismatch has been found for combo-box widget. This is the runtime issue. There must be one " " character space without underlining between combo-box entry field and combo-box drop-down button. This can only be seen on screenshots attached. The original pictures are: combo-box-4gl-windows.jpg, combo-box-4gl-linux.jpg, combo-box-opened-4gl-windows.jpg, combo-box-opened-4gl-linux.

The current P2J respective behavior picture files are: combo-box-p2j-windows.jpg, combo-box-p2j-linux.jpg, combo-box-opened-p2j-windows.jpg, combo-box-opened-p2j-linux.

Fortunately the fix is simple: we need to replace one line in com/goldencode/p2j/ui/chui/ComboBoxImpl.java:
from
<pre>
... line 67
screen().at(screenLocation())
.append(display, dc)
.at(screenLocation().offset(display.length(), 0))
.append(' ', dc)
.append("[V]", pf);
...
</pre>
to
<pre>
...
screen().at(screenLocation())
.append(display, dc)
.at(screenLocation().offset(display.length(), 0))
.append(' ', dc.withoutUnderline())
.append("[V]", pf);
...
</pre>
This change fixes the issue.

Back