Thanks for the examples. The OnMouseUp, kills the default operation, OnClicked is ignored. Maybe there's just something wrong with my event handler assignment:
lua Code:
local function BBS_GetActiveTabs(tabControl)
local children = {}
local counter = tabControl:GetNumChildren()
for i=1, counter do
local child = tabControl:GetChild(i)
if (child:GetType() == CT_CONTROL) then
-- add a handler for each control
-- TODO: add one handler to the parent and handle tab changes
child:SetHandler("OnClicked", function(self)
BBS_SearchBoxOnTextChanged(bbs.editbox)
end)
children[i] = child
end
end
return children
end