*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
super(parent, x, y, width, fixed, text, enterAction, updateAction);
}
super(parent, x, y, width, fixed, text, enterAction, updateAction);
}
- getScreen().hLineXY(0, 0, getWidth(), GraphicsChars.HATCH, fieldColor);
+ hLineXY(0, 0, getWidth(), backgroundChar, fieldColor);
- getScreen().hLineXY(0, 0, getWidth() - 2, '*',
- fieldColor);
+ hLineXY(0, 0, getWidth() - 2, '*', fieldColor);
- getScreen().putStringXY(0, 0, text.substring(windowStart, end),
- fieldColor);
+ putStringXY(0, 0, text.substring(screenToTextPosition(windowStart),
+ screenToTextPosition(end)), fieldColor);