Photovor
9 years agoVisitor
Using registry values inside dialog?
So I'm using the new ScreenGraph APIs, and I'm showing a keyboarddialog, and I want to pre-set the text (and then save any changed text) from the registry. Any anyone provide an example of how I would do that?
My keyboard dialog looks like this:
ScreenID would be blank on the first time this dialog appeared, but would then be set to the text that they entered from this screen every time after. I need this to persist in the registry.
My keyboard dialog looks like this:
function showdialog()
keyboarddialog = createObject("roSGNode", "KeyboardDialog")
keyboarddialog.backgroundUri = "pkg:/images/rsgde_dlg_bg_hd.9.png"
keyboarddialog.buttons=["Save","Cancel"]
keyboarddialog.title = "Enter Location ID"
keyboarddialog.text = ScreenID
m.top.dialog = keyboarddialog
end function
ScreenID would be blank on the first time this dialog appeared, but would then be set to the text that they entered from this screen every time after. I need this to persist in the registry.