comparison mde/gui/Gui.d @ 65:891211f034f2

Changes to widgets: widgets may now get strings as creation data. Strings for TextWidgets can be set in files (in a temporary mannor).
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 29 Jun 2008 15:40:37 +0100
parents 66d555da083e
children cee261eba249
comparison
equal deleted inserted replaced
64:cc3763817b8a 65:891211f034f2
157 if (widg !is null) { 157 if (widg !is null) {
158 // Bring to front 158 // Bring to front
159 windows = w ~ windows[0..i] ~ windows[i+1..$]; 159 windows = w ~ windows[0..i] ~ windows[i+1..$];
160 160
161 widg.clickEvent (cast(wdabs)cx,cast(wdabs)cy,b,state); 161 widg.clickEvent (cast(wdabs)cx,cast(wdabs)cy,b,state);
162 requestRedraw; // in case we've only moved to front
162 return; // only pass to first window 163 return; // only pass to first window
163 } 164 }
164 } 165 }
165 } 166 }
166 167