Murga-Projects Forums
convertFluidToMurguaLua Issues - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: convertFluidToMurguaLua Issues (/showthread.php?tid=21)


convertFluidToMurguaLua Issues - iGame3D - 05-18-2007 06:34 PM

I'm noticing that the creation of a group or "tabs" object does not get an appropriate "end" line and that setting colors produces code that has errors.

for instance:

Code:
do local object = fltk:Fl_Double_Window(100, 100, "A window");
    window = object;
    do fltk:Fl_Button(25, 25, 25, 25, "button1");
    end -- Fl_Button* o
    do local object = fltk:Fl_Group(25, 25, 75, 75, "groupobject");
      object:box(fltk.FL_UP_BOX);
--      object:color((Fl_Color)1); -- error "(" expected near 1
-- end missing
      do local object = fltk:Fl_Tabs(50, 50, 50, 50, "tabsobject");
-- end missing
  end
  window:show();
  Fl:run();

Also if a window's class is given a name under the C++ tab then
the window code is not written out:

Code:
do fltk:Fl_Button(25, 25, 25, 25, "button1");
    end -- Fl_Button* o
  end
  window:show();
  Fl:run();



I'm going through all the widgets and getting familiar with them, so I'm sure to find some other oddities and do other strange things.