Scale not shown
yidabu
yidabu.spam at gmail.com
Thu Jun 19 14:51:17 PDT 2008
Simple one, Snippet45,not work correctly too:
import dwt.DWT;
import dwt.widgets.Display;
import dwt.widgets.Shell;
import dwt.widgets.Scale;
import dwt.dwthelper.utils;
public static void main (String [] args) {
Display display = new Display ();
Shell shell = new Shell (display);
Scale scale = new Scale (shell, DWT.BORDER);
scale.setSize (200, 64);
scale.setMaximum (40);
scale.setPageIncrement (5);
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
--
yidabu <yidabu.spam at gmail.com>
http://www.dsource.org/projects/dwin
D 语言-中文(D Chinese):
http://www.d-programming-language-china.org/
http://bbs.d-programming-language-china.org/
http://dwin.d-programming-language-china.org/
http://scite4d.d-programming-language-china.org/
More information about the Digitalmars-d-dwt
mailing list