This commit is contained in:
parent
004f29b6a7
commit
ec336c5d67
|
@ -2,21 +2,14 @@ sub init()
|
||||||
m.name = m.top.findNode("label")
|
m.name = m.top.findNode("label")
|
||||||
m.value = m.top.findNode("value")
|
m.value = m.top.findNode("value")
|
||||||
|
|
||||||
m.top.layoutDirection = "horiz"
|
m.name.width = 240
|
||||||
m.top.vertAlignment = "top"
|
m.name.height = 75
|
||||||
|
|
||||||
m.name.width = 250
|
|
||||||
m.name.height = 80
|
|
||||||
|
|
||||||
m.name.vertAlign = "center"
|
m.name.vertAlign = "center"
|
||||||
m.name.horizAlign = "center"
|
m.name.horizAlign = "center"
|
||||||
|
|
||||||
' TODO - calculate "width" better... this is total item - (label + spacings)
|
|
||||||
m.value.width = 1000 - 230
|
|
||||||
m.value.height = 80
|
|
||||||
|
|
||||||
m.value.hintText = "Enter a value..."
|
m.value.hintText = "Enter a value..."
|
||||||
m.value.maxTextLength = 100
|
m.value.maxTextLength = 120
|
||||||
end sub
|
end sub
|
||||||
|
|
||||||
sub itemContentChanged()
|
sub itemContentChanged()
|
||||||
|
|
|
@ -6,9 +6,8 @@ sub init()
|
||||||
|
|
||||||
m.top.observeField("itemSelected", "onItemSelected")
|
m.top.observeField("itemSelected", "onItemSelected")
|
||||||
|
|
||||||
m.top.itemSize = [1000, 80]
|
m.top.itemSize = [750, 75]
|
||||||
m.top.itemSpacing = [0, 20]
|
m.top.itemSpacing = [0, 25]
|
||||||
m.top.vertAlign = "middle"
|
|
||||||
|
|
||||||
m.top.setfocus(true)
|
m.top.setfocus(true)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
translation="[150, 150]" />
|
translation="[150, 150]" />
|
||||||
<ConfigList
|
<ConfigList
|
||||||
id="configOptions"
|
id="configOptions"
|
||||||
translation="[150, 250]" />
|
translation="[150, 240]" />
|
||||||
<Button
|
<Button
|
||||||
id="submit"
|
id="submit"
|
||||||
text="Submit"
|
text="Submit"
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
<label text=""
|
<label text=""
|
||||||
id="alert"
|
id="alert"
|
||||||
font="font:MediumSystemFont"
|
font="font:MediumSystemFont"
|
||||||
translation="[150, 550]" />
|
translation="[150, 555]" />
|
||||||
</children>
|
</children>
|
||||||
<script type="text/brightscript" uri="scene.brs"/>
|
<script type="text/brightscript" uri="scene.brs"/>
|
||||||
</component>
|
</component>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user