Ahoj, chci se zeptat jestli by nekdo nahodou nevedel jak definovat klavesovou zkratku pro prepnuti se na nejaky konkretni tab za pouziti MoonFLTK knihovny...
S tlacitkem je to jednoduche, ma metodu shortcut() ale "group" ani "tabs" ji nemaji.
Ma nekdo nejaky napad jak toho docilit?
window = fl.window(400,400, arg[0])
tabs = fl.tabs(10,10,500-20,200-20)
aaa = fl.group(10,35,500-20,200-60,"Aaa")
b1 = fl.button(50, 60,90,25,"Button A1") b1:color(88+1)
b2 = fl.button(50, 90,90,25,"Button A2") b2:color(88+2)
b3 = fl.button(50,120,90,25,"Button A3") b3:color(88+3)
aaa:done()
bbb = fl.group(10,35,500-10,200-35,"Bbb")
b1 = fl.button( 50,60,90,25,"Button B1") b1:color(88+1)
b2 = fl.button(150,60,90,25,"Button B2") b2:color(88+3)
b3 = fl.button(250,60,90,25,"Button B3") b3:color(88+5)
b4 = fl.button( 50,90,90,25,"Button B4") b4:color(88+2)
b5 = fl.button(150,90,90,25,"Button B5") b5:color(88+4)
b6 = fl.button(250,90,90,25,"Button B6") b6:color(88+6)
bbb:done()
tabs:done()
window:show()