I think i did what Josh said.
this code make 'Link' button in scripts/menu.lua
local gui = GUI:Create(context)
--Create a link button
GameMenu.newbutton = Widget:Button("NEW GAME",100,gui:GetBase():GetSize().y/2-60,300,20,gui:GetBase())
GameMenu.newbutton:SetString("style","Link")
GameMenu.newbutton:SetAlignment(1,0,0,0)
GameMenu.options = Widget:Button("OPTIONS",100,gui:GetBase():GetSize().y/2-10,300,20,gui:GetBase())
GameMenu.options:SetString("style","Link")
GameMenu.options:SetAlignment(1,0,0,0)
GameMenu.quit = Widget:Button("QUIT",100,gui:GetBase():GetSize().y/2+40,300,20,gui:GetBase())
GameMenu.quit:SetString("style","Link")
GameMenu.quit:SetAlignment(1,0,0,0)
i write this code in c++.
gui = Leadwerks::GUI::Create(Leadwerks::Context::GetCurrent());
Leadwerks::Widget* base = gui->GetBase();
btn_start = Leadwerks::Widget::Button("start", 100, 100, 100, 50, base);
btn_start->SetString("style", "Link");
Could i know what i did worng?