Mercurial > projects > mde
diff mde/gui/widget/Floating.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 | 30470bc19ca4 |
children | 42e241e7be3e |
line wrap: on
line diff
--- a/mde/gui/widget/Floating.d Wed Nov 12 13:18:51 2008 +0000 +++ b/mde/gui/widget/Floating.d Fri Nov 14 12:44:32 2008 +0000 @@ -149,8 +149,8 @@ return this; // no match } - void clickEvent (wdabs cx, wdabs cy, ubyte b, bool state) { - if (event > subWidgets.length) return; + int clickEvent (wdabs cx, wdabs cy, ubyte b, bool state) { + if (event > subWidgets.length) return 0; if (b == 1 && state == true) { active = event; with (sWData[active]) { @@ -180,6 +180,7 @@ } } } + return 0; } protected: