Community
Participate
Working Groups
POINT pt = new POINT ();
if ((style & SWT.VERTICAL) != 0) {
if (wParam == OS.VK_UP || wParam == OS.VK_DOWN) break;
if(this.isParentrtl()) {
step=-step;
}
pt.x = wParam == OS.VK_LEFT ? -step : step;
} else {
if (wParam == OS.VK_LEFT || wParam == OS.VK_RIGHT) break;
Event event = new Event ();
event.x = newX;
event.y = newY;
//fix trial
event.x = pt.x;
//end of fix trial
event.width = width;
event.height = height;
sendSelectionEvent (SWT.Selection, event, true);
return result;
//tmp fix start
public boolean isParentrtl() {
int parentStyle=getParent().getStyle();
return ((parentStyle&SWT.RIGHT_TO_LEFT)!=0);
//tmp fix end