initial commit
This commit is contained in:
commit
0eadc5da55
37 files changed
+1286
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import "pkg:/source/utils/Utils.bs"
|
||||
|
||||
sub Init()
|
||||
m.rowList = m.top.FindNode("rowList")
|
||||
m.rowList.SetFocus(true)
|
||||
m.top.ObserveField("visible", "onVisibleChange")
|
||||
end sub
|
||||
|
||||
sub OnVisibleChange() ' invoked when GridScreen change visibility
|
||||
if m.top.visible = true
|
||||
m.rowList.SetFocus(true) ' set focus to rowList if GridScreen visible
|
||||
end if
|
||||
end sub
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<component name="GridScreen" extends="Group" initialFocus="RowList">
|
||||
<script type="text/brightscript" uri="GridScreen.brs" />
|
||||
<interface>
|
||||
<field id="content" type="node" alias="RowList.content" />
|
||||
<field id="rowItemSelected" type="intarray" alwaysnotify="true" alias="RowList.rowItemSelected" />
|
||||
<field id="jumpToRowItem" type="intarray" alias="RowList.jumpToRowItem" />
|
||||
</interface>
|
||||
<children>
|
||||
<RowList
|
||||
itemComponentName="RowListItemComponent"
|
||||
id="rowList"
|
||||
translation="[50,50]"
|
||||
numRows="2"
|
||||
rowitemSize="[[320,180]]"
|
||||
rowItemSpacing="[[20,0]]"
|
||||
itemSize="[1160,270]"
|
||||
rowLabelOffset="[[50,20]]"
|
||||
focusXOffset="[50]"
|
||||
showRowLabel="[true]"
|
||||
rowFocusAnimationStyle="floatingfocus"
|
||||
/>
|
||||
</children>
|
||||
</component>
|
||||
Reference in new issue
Block a user