Community
Participate
Working Groups
The column separators in the header of a table (black lines) are too large. Their size is 2 pixels instead of 1.
The problem occurs on PocketPC 2003 and Pocket PC 2002.
Created attachment 11189 [details] A preview of the problem.
Created attachment 11192 [details] How the table should be displayed. See the column spacers.
Chrix, any idea on this one? We don't do anything special when creating the table.
I can show Felipe how to run the Pocket PC. It could be be something about the arguments we pass to LVM_SETCOLUMN which should not be set or may behave differently on Pocket PC.
Ok, show him.
Created attachment 20831 [details] A small piece of code written in C showing the too large separators. I adapted a small piece of code that displays a table on a Pocket PC. The column separator seems to be too large also. So it doesn't seem to be a bug.
Thanks Hubert! I wonder why the separators aren't large for other applications. It must have something to do with the flags that we use in CreateWindowEx().
Thanks, Closing. If by any change you find out a workaround for this problem please let us know.
With this flag LVS_NOSORTHEADER, in the CreateWindow() method, it works. But now my question is how to change this in SWT. Which style is supposed to change this behaviour.
I don't think we can use this flag just to fix this bug. See Table#widgetStyle() int widgetStyle () { int bits = super.widgetStyle () | OS.LVS_SHAREIMAGELISTS; if ((style & SWT.HIDE_SELECTION) == 0) bits |= OS.LVS_SHOWSELALWAYS; if ((style & SWT.SINGLE) != 0) bits |= OS.LVS_SINGLESEL; /* * This code is intentionally commented. In the future, * the FLAT bit may be used to make the header flat and * unresponsive to mouse clicks. */ // if ((style & SWT.FLAT) != 0) bits |= OS.LVS_NOSORTHEADER; bits |= OS.LVS_REPORT | OS.LVS_NOCOLUMNHEADER; if ((style & SWT.VIRTUAL) != 0) bits |= OS.LVS_OWNERDATA; return bits; }
I totally agree with you. The behaviour of the table, with the LVS_NOSORTHEADER, is totally different. The code you posted talks by itself ;-)
Ok.
This bug is a dup of 80392. When we provide the ability to make the header unresponsive to mouse clicks, then this flag could be used on Windows CE to make the table draw as requested (but also disable clicking on the header). *** This bug has been marked as a duplicate of 80392 ***