]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dropdown.cpp
Add Text class with multiline support
[libs/gltk.git] / source / dropdown.cpp
index cbd7ee437111bc3726b1c0ba988471638142140b..5e19ed9ca8534a1aeb27bf8aa8b72a63e16ab4a3 100644 (file)
@@ -11,6 +11,7 @@ Distributed under the LGPL
 #include "panel.h"
 #include "part.h"
 #include "style.h"
+#include "text.h"
 
 using namespace std;
 
@@ -98,7 +99,8 @@ void Dropdown::render_special(const Part &part) const
        if(part.get_name()=="text")
        {
                if(list.get_selected_index()>=0)
-                       render_text(part, list.get_selected());
+                       Text(style, list.get_selected()).render(part, geom);
+                       //render_text(part, list.get_selected());
        }
        else if(part.get_name()=="list" && dropped)
                list.render();