Files
playlet-piped/src/components/GridScreen/GridScreen.brs
T
2022-10-30 16:17:37 -04:00

13 lines
371 B
Plaintext

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