Quote |
Maybe, but I still think it's a window manager issue. 0,0 works for me. I haven't tried it with Fluxbox or JWM yet. |
Code Sample |
---- CONFIGURATION -- menu: label="command" my_menu={ Aterm="aterm -fn proggy", Dillo="dillo", DSLpanel="cpanel.lua" } size=11 -- text size bh=16 -- button height bw=100 -- button width table_size=3 -- number of table items ---- END CONFIGURATION barw=table_size*bw w=fltk:Fl_Window(Fl:w()/2-barw/2,0,barw,bh,"MLmenu") w:callback(function() end) butt_pack=fltk:Fl_Pack(0,0,barw,bh) butt_pack:type(fltk.FL_HORIZONTAL) butt={} cnt=1 for k,v in pairs(my_menu) do butt[cnt]=fltk:Fl_Button(0,0,bw,bh) butt[cnt]:label(k) butt[cnt]:labelsize(size) butt[cnt]:callback(function() os.execute(v.." &") end) butt[cnt]:box(fltk.FL_BORDER_BOX) cnt=cnt+1 end fltk:Fl_End() w:border(0) w:show() Fl:run() |