comparison dwtx/ui/forms/widgets/SharedScrolledComposite.d @ 78:4ac9946b9fb5

Forms work with first test
author Frank Benoit <benoit@tionex.de>
date Sat, 24 May 2008 08:33:56 +0200
parents 5d489b9f966c
children
comparison
equal deleted inserted replaced
77:26c6c9dfd13c 78:4ac9946b9fb5
228 Control c = getContent(); 228 Control c = getContent();
229 Rectangle area = getClientArea(); 229 Rectangle area = getClientArea();
230 setMinSize(area.width, c.getSize().y); 230 setMinSize(area.width, c.getSize().y);
231 } 231 }
232 232
233 private void handleScheduleReflow(bool flushCache) {
234 if (!isDisposed())
235 reflow(flushCache);
236 reflowPending = false;
237 }
233 private void scheduleReflow(bool flushCache) { 238 private void scheduleReflow(bool flushCache) {
234 if (delayedReflow) { 239 if (delayedReflow) {
235 if (reflowPending) { 240 if (reflowPending) {
236 updateSizeWhilePending(); 241 updateSizeWhilePending();
237 return; 242 return;
238 } 243 }
239 getDisplay().asyncExec( dgRunnable( (bool flushCache) { 244 getDisplay().asyncExec( dgRunnable( &handleScheduleReflow, flushCache));
240 if (!isDisposed())
241 reflow(flushCache);
242 reflowPending = false;
243 }, flushCache));
244 reflowPending = true; 245 reflowPending = true;
245 } else 246 } else
246 reflow(flushCache); 247 reflow(flushCache);
247 } 248 }
248 249