Murga-Projects Forums

Full Version: convertFluidToMurguaLua Issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

Reference URL's