Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 4538 - BiDi flags for Windows (1FXQ3A2)
Summary: BiDi flags for Windows (1FXQ3A2)
Status: RESOLVED DUPLICATE of bug 15165
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All Windows All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-11 14:18 EDT by Mike Wilson CLA
Modified: 2003-01-10 19:12 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Wilson CLA 2001-10-11 14:18:33 EDT
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.
Comment 1 Steve Northover CLA 2003-01-10 19:12:29 EST

*** This bug has been marked as a duplicate of 15165 ***