# HG changeset patch # User Frank Benoit # Date 1204480310 -3600 # Node ID 073094250126d48ce731410c68f4f31d3f72e623 # Parent 40dae5136e84c2f42018d4df78bfc420b9eb159b Added texts to the items. The ToolItems tooltip works now on linux, the TabItems tooltip is still the shell text. diff -r 40dae5136e84 -r 073094250126 dwtsnippets/tooltips/Snippet41.d --- a/dwtsnippets/tooltips/Snippet41.d Sun Mar 02 18:46:18 2008 +0100 +++ b/dwtsnippets/tooltips/Snippet41.d Sun Mar 02 18:51:50 2008 +0100 @@ -7,7 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation - * D Port: + * Port to the D programming language: * Jesse Phillips gmail.com *******************************************************************************/ @@ -31,15 +31,19 @@ auto string = "This is a string\nwith a new line."; auto display = new Display (); auto shell = new Shell (display); - auto folder = new TabFolder (shell, DWT.BORDER); + + TabFolder folder = new TabFolder (shell, DWT.BORDER); folder.setSize (200, 200); auto item0 = new TabItem (folder, 0); + item0.setText( "Text" ); item0.setToolTipText ("TabItem toolTip: " ~ string); auto bar = new ToolBar (shell, DWT.BORDER); bar.setBounds (0, 200, 200, 64); + ToolItem item1 = new ToolItem (bar, 0); + item1.setText( "Text" ); item1.setToolTipText ("ToolItem toolTip: " ~ string); shell.setToolTipText ("Shell toolTip: " ~ string);