Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Separate table columns on Mac OS
Separate table columns on Mac OS [message #545813] Fri, 09 July 2010 05:03 Go to next message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
When I create a Table in Ubuntu/Windows, there are vertical lines between table columns. But on Mac they run together. Is there a way to show such lines on Mac as well? I don't see any relevant style bits for this.

[Updated on: Fri, 09 July 2010 05:04]

Report message to a moderator

Re: Separate table columns on Mac OS [message #546220 is a reply to message #545813] Mon, 12 July 2010 04:29 Go to previous messageGo to next message
Lakshmi Shanmugam
Messages: 274
Registered: July 2009
Location: India
Senior Member
Hi Alexey,

You can use table.setLinesVisible(true).
This will show the vertical lines between columns and on mac it'll also show the alternating row colors in the background.

HTH,


Lakshmi P Shanmugam
Re: Separate table columns on Mac OS [message #546232 is a reply to message #545813] Mon, 12 July 2010 05:03 Go to previous messageGo to next message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
Weird. On Ubuntu, I get vertical grid whether or not I call setLinesVisible, but in different styles, and alternating rows with setLinesVisible(true). On Mac, setLinesVisible(true) gives me alternating rows, but no vertical grid (with swt.jar from http://download.eclipse.org/eclipse/downloads/drops/R-3.5.2- 201002111343/download.php?dropFile=swt-3.5.2-cocoa-macosx-x8 6_64.zip, version.txt says "version 3.557"). Can't test on Windows at the moment.

[Updated on: Mon, 12 July 2010 05:05]

Report message to a moderator

Re: Separate table columns on Mac OS [message #546248 is a reply to message #546232] Mon, 12 July 2010 05:47 Go to previous message
Lakshmi Shanmugam
Messages: 274
Registered: July 2009
Location: India
Senior Member
setLinesVisible(true) draws the horizontal rows and vertical grid lines on all platforms in the platform specific way. On cocoa, the vertical lines were not being drawn in 3.5, this is fixed in version 3.6.

Lakshmi P Shanmugam
Previous Topic:SWT tree: auto resize all columns
Next Topic:Why finalize method not overriden for system resource classes?
Goto Forum:
  


Current Time: Fri Aug 29 18:41:24 EDT 2014

Powered by FUDForum. Page generated in 0.01911 seconds