jf-roku/components/OverviewDialog.xml

35 lines
976 B
XML
Raw Normal View History

2022-03-13 08:46:03 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<component name="OverviewDialog" extends="StandardDialog">
<interface>
<field id="Title" type="string" onchange="setTitle" />
<field id="Overview" type="string" onChange="setOverview" />
</interface>
<script type="text/brightscript">
<![CDATA[
sub setTitle()
m.top.findNode("titleArea").primaryTitle = m.top.title
end sub
sub setOverview()
m.top.findNode("description").text = m.top.overview
end sub
function onKeyEvent(key as string, press as boolean) as boolean
if press = false then return false
if key = "OK" and m.top.findNode("contentArea").isInFocusChain()
m.top.close = true
end if
return false
end function
]]>
</script>
<children>
<StdDlgTitleArea id="titleArea" />
<StdDlgContentArea id="contentArea">
<StdDlgTextItem id="description"
2023-02-01 21:46:51 +00:00
namedTextStyle="normal" />
2022-03-13 08:46:03 +00:00
</StdDlgContentArea>
</children>
</component>