diff mde/gui/widget/layout.d @ 99:5de5810e3516

Implemented an editable TextContent widget; it's now possible to edit text options using the GUI. The widget supports moving the text entry-point using arrows and home/end, but there's no visual indicator or edit-point setting using the mouse.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 14 Nov 2008 12:44:32 +0000
parents 2a364c7d82c9
children 42e241e7be3e
line wrap: on
line diff
--- a/mde/gui/widget/layout.d	Wed Nov 12 13:18:51 2008 +0000
+++ b/mde/gui/widget/layout.d	Fri Nov 14 12:44:32 2008 +0000
@@ -247,7 +247,7 @@
     }
     
     // Resizing columns & rows
-    void clickEvent (wdabs cx, wdabs cy, ubyte b, bool state) {
+    int clickEvent (wdabs cx, wdabs cy, ubyte b, bool state) {
         debug scope (failure)
                 logger.warn ("clickEvent: failure");
         if (b == 1 && state == true) {
@@ -257,7 +257,7 @@
             
             // find col/row's resizeD & resizeU
             if (col.findResizeCols (cx - x) && row.findResizeCols (cy - y))
-                return;		// unable to resize
+                return 0;		// unable to resize
             
             dragX = cx;
             dragY = cy;
@@ -265,6 +265,7 @@
             mgr.addClickCallback (&endCallback);
             mgr.addMotionCallback (&resizeCallback);
         }
+	return 0;
     }
     
     void draw () {