Community
Participate
Working Groups
The following bits should be twiddled for (almost) correct BiDi implementation Control.createHandle() widgetExtStyle() | OS.WS_EX_RIGHT | OS.WS_EX_LEFTSCROLLBAR | OS.WS_RTLREADING Button.widgetStyle() [checkbox or radio buttons only] #define BS_LEFTTEXT 0x00000020L OS.BS_LEFTTEXT Button( SWT.RIGHT ) Label( SWT.RIGHT ) Table, TableItem, TableColumn( SWT.RIGHT ) MenuItem.widgetStyle() OS.MFT_RIGHTORDER Group & ~OS.WS_EX_RIGHT (that is, the right justification doesn't work correctly) MessageBox.open() #define MB_RTLREADING 0x00100000L #define MB_RIGHT 0x00080000L bits |= OS.MB_RTLREADING | OS.MB_RIGHT; int code = OS.MessageBox (hwndParent, buffer1, buffer2, bits ); TabItem.setText() #define TCIF_RTLREADING 0x0004 tcItem.mask |= TCIF_RTLREADING Tree.widgetStyle() TVS_RTLREADING NOTES: Windows clears the OS.WS_EX_RIGHT flag when cycling through code pages with the keyboard (Alt-Shift). Also TabFolder TCS_RIGHTJUSTIFY doesn't do anything. It has a value of 0, so "oring" it in doesn't do anything. In Table, forcing LVCFMT_RIGHT on columns doesn't work. This is a known bug. McQ (2/2/01 3:31:00 PM) - We will use this PR as a placeholder for BiDi discussions. Note that as of this date, BiDi is not in plan for R1.0 of Eclipse. SN (9/18/01 10:50:23 AM) It is likely we will need to use the new mirroring bits for 98 and 2000 instead of the bits that are described in this PR. The mirroring bits are the only way to get the shell to have the close box on the right.
*** This bug has been marked as a duplicate of 15165 ***