The code below does never show any ToolTips?
on WinXP.
A similar thing in elphi works as expected.
Anything else I need to activate?
module ttt;
import tango.util.log.Trace;
import dwt.DWT;
import dwt.widgets.all;
import dwt.layout.all;
int main(char[][] args){
Display display= new Display();
Shell shell = new Shell(display, DWT.SHELL_TRIM);
shell.setLayout(new FillLayout());
shell.setToolTipText("ttt of shell");
try{
shell.setToolTipText("ttt of shell");
}catch(Exception e){
Trace.formatln("cannot reset ttt on shell: {}", e.msg);
}
Button b = new Button(shell, DWT.PUSH);
b.setText("Button");
b.setToolTipText("ttt of Button b");
try{
b.setToolTipText("ttt on b again");
}catch(Exception e){
Trace.formatln("cannot reset ttt on b: {}", e.msg);
}
Button c = new Button(shell, DWT.PUSH);
c.setText("Button");
c.setToolTipText("ttt of Button c");
try{
c.setToolTipText("ttt on c again");
}catch(Exception e){
Trace.formatln("cannot reset ttt on b: {}", e.msg);
}
shell.pack();
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep();
}
display.dispose();
return 0;
}