Problem
- If you want to create a button with a type-in dialog including a caption, you must send the caption in the
Text property delimited by zero-bytes: '\0Caption\0Text'.
Current API
inSim.send(new IS_BTN({
ReqI: 1,
L: 60,
T: 4,
W: 20,
H: 5,
TypeIn: 20,
Text: '\0Caption\0Text',
}))
Proposed API
inSim.sendButton({
requestId: 1,
left: 60,
top: 4,
width: 20,
height: 5,
text: 'Text',
typeIn: 20,
caption: 'Caption',
})
Problem
Textproperty delimited by zero-bytes:'\0Caption\0Text'.Current API
Proposed API