%CODE{"xml"}%
TestFileBrowser_onclick(name, filepath)
document:GetPageCtrl():SetUIValue("filepath", filepath);
end
function TestFileBrowser_OnDoubleClick(name, filepath)
_guihelper.MessageBox(tostring(filepath));
end
function TestSwitchTab(name, filepath)
document:GetPageCtrl():SetUIValue("testTabs", 1);
end
function OnCheckFileBrowser(name, treeNode, filepath, Checked)
if(treeNode and filepath) then
if(Checked) then
_guihelper.MessageBox("you checked "..filepath);
else
_guihelper.MessageBox("you UNchecked "..filepath);
end
end
end
function OnCreateNodeFileBrowser(name, treeNode, filepath)
if(treeNode and filepath) then
if(string.find(filepath, "lua$"))then
-- check all *.lua file and make the text blue
treeNode.TextColor = "#0066cc";
treeNode.Checked = true;
end
end
end
function RefreshPage()
document:GetPageCtrl():SetUIValue("RefreshCounter", "page will be refreshed in 3 seconds");
document:GetPageCtrl():SetNodeValue("RefreshCounter", "Page refreshed!!!");
document:GetPageCtrl():Refresh(3);
end
function OnClickTabItem(tabpagename)
_guihelper.MessageBox(tabpagename.." is clicked after controls inside are created\n");
end
]]>
<pe:tab-item text="fileBrowser Canvas3D">
Please select from below
CheckBoxes="true" oncheck="OnCheckFileBrowser" oncreatenode="OnCreateNodeFileBrowser">
This is an canvas 3d: AssetFile= "model/05plants/01flower/01flower/flower10_v_a.x",
x=0,y=0,z=0,
}
]]>
</pe:tab-item>
<pe:tab-item text="class test" name="classTest" onclick="OnClickTabItem">
the following is from a treeview control
Start&nspb;Begin发网的计划End
some red text
<pe:editor-buttonset class="box">
<pe:editor-button text="button3.set1" class="highlightbutton"/>
<pe:editor-button text="button3.set1"/>
</pe:editor-buttonset>
</pe:tab-item>
<pe:tab-item text="alignment">
file uploader test
container alignment test
right bottomleft bottomright top_ctt:center top_ctb:center bottom_ctb:center left_ctb:center right_ct:center
</pe:tab-item>
<pe:tab-item text="pagerefresh" selected="true">
page refresh test
</pe:tab-item>
<pe:tab-item text="editor test">
some inner text some inner text some inner text some inner text some inner text some inner text
<pe:editor-buttonset>
<pe:editor-button text="button3.set1"/>
<pe:editor-button text="button3.set1"/>
</pe:editor-buttonset>
<pe:editor-text name="edtBox1" label="pe:editor-text" text="default text"/>
<pe:editor-text name="edtBox2" label="multi-line(3 rows)" text="default text" rows="3"/>
<pe:editor-divider />
<pe:editor-custom label ="pe:editor-custom" height="30"></pe:editor-custom>
<pe:editor-divider />
<pe:editor-button name="TestSubmitBtn" text="test submit" onclick="test_pe_editor_button_onclick"/>
trailing test
</pe:tab-item>
%ENDCODE%
source path
script/kids/3DMapSystemApp/mcml/test/dlg_tabs.xml
%CODE{"xml"}%
<pe:tab-item text="treeview test">
the following is from a treeview control
plain text
p style="color:#55AA22"
long text auto tree node height;long text auto tree node height;long text auto tree node height
sub node1
p style="color:#55AA22"
long text auto tree node height;long text auto tree node height;long text auto tree node height
style="position:absolute;left:87px;top:40px;width:250" and image inside a href
list 1:
list 2: long text long text long text long text long text long text long text
list 3:
</pe:tab-item>
<pe:tab-item text="editor test" selected="true">
some inner text some inner text some inner text some inner text some inner text some inner text
<pe:editor-buttonset>
<pe:editor-button text="button3.set1"/>
<pe:editor-button text="button3.set1"/>
</pe:editor-buttonset>
<pe:editor-text name="edtBox1" label="pe:editor-text" text="default text"/>
<pe:editor-text name="edtBox2" label="multi-line(3 rows)" text="default text" rows="3"/>
<pe:editor-divider />
<pe:editor-custom label ="pe:editor-custom" height="30"></pe:editor-custom>
<pe:editor-divider />
<pe:editor-button name="TestSubmitBtn" text="test submit" onclick="test_pe_editor_button_onclick"/>
trailing test
</pe:tab-item>
%ENDCODE%