MultiInput: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page with "file:MultiInput.jpg '''Description''' The MultiInput control is used to input one or more data items in a friendly format. To add an MultiInput to your app, choose the ...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[file:MultiInput.jpg]]
[[file:MultiInput.jpg]]


'''Description'''
== Description ==
 
 
'''This control is part of iWebKit, which has been deprecated.'''
 


The MultiInput control is used to input one or more data items in a friendly format.
The MultiInput control is used to input one or more data items in a friendly format.
Line 7: Line 11:
To add an MultiInput to your app, choose the MultiInput icon in the Toolbar. Use the Property Editor to set the properties. The onclick event can be used to check for clicks.
To add an MultiInput to your app, choose the MultiInput icon in the Toolbar. Use the Property Editor to set the properties. The onclick event can be used to check for clicks.


'''Properties'''
== Properties ==


Standard properties are supported (“Properties”), plus:
Standard [[properties and methods|properties]] are supported, plus:


{| class = "wikitable"
{| class = "wikitable"
|-
|-
| fieldType || bigfield or smallfield. bigField is as above. smallField reserves the left half for a prompt string – see ‘prompts’ property.
| fieldType || bigfield or smallfield. bigField is as above. smallField reserves the left half for a prompt string – see ‘prompts’ property. Design Time.
|-
| getValue(''n'') || Gets the value of item ''n''. Runtime.
|-
| inputTypes || Specifies what kind of data will be input. Choices are color, email, number, password, range, search, tel, text and url. Comma separated list, with a inputType for each row. Default is text. Optional. Design Time.
|-
|-
| inputTypes || Specifies what kind of data will be input. Choices are color, email, number, password, range, search, tel, text and url. Comma separated list, with a inputType for each row. Default is text.Optional.
| inputValues || A comma separated list of the initial contents of each row. Optional. Design Time.
|-
|-
| inputValues || A comma separated list of the initial contents of each row. Optional.
| placeholders || A comma separated list of placeholders for each row. Placeholders are grayed out text to help the operator input. Does not appear for all inputTypes. Optional. Design Time.
|-
|-
| placeholders || A comma separated list of placeholders for each row. Placeholders are grayed out text to help the operator input. Does not appear for all inputTypes. Optional.
| prompts || A comma separated list of prompts, one per row. Only used if fieldType is smallfield. Optional. Design Time.
|-
|-
| prompts || A comma separated list of prompts, one per row. Only used if fieldType is smallfield. Optional
| refresh() || Recalculates the size of the scrolling area after additions or deletions. Design Time.
|-
|-
| refresh() || Recalculates the size of the scrolling area after additions or deletions.
| rows || Defines the number of rows of input items. Design Time.
|-
|-
| rows || Defines the number of rows of input items.
| setValue(''n'',''val'') || Set item ''n'' to ''val''. Runtime.
|}  
|}


'''Events'''
== Events ==


MultiInput supports the standard events.
MultiInput supports the standard [[events]].


'''Example'''
== Example ==


<pre>
<pre>
Line 44: Line 52:
</pre>
</pre>


'''Output'''
== Output ==


[[file:MultiInputOutput.jpg]]
[[file:MultiInputOutput.jpg]]
[[Category:Language Reference]]
[[Category:Controls]]
[[Category:iWebKit]]

Latest revision as of 18:53, 15 February 2014

Description

This control is part of iWebKit, which has been deprecated.


The MultiInput control is used to input one or more data items in a friendly format.

To add an MultiInput to your app, choose the MultiInput icon in the Toolbar. Use the Property Editor to set the properties. The onclick event can be used to check for clicks.

Properties

Standard properties are supported, plus:

fieldType bigfield or smallfield. bigField is as above. smallField reserves the left half for a prompt string – see ‘prompts’ property. Design Time.
getValue(n) Gets the value of item n. Runtime.
inputTypes Specifies what kind of data will be input. Choices are color, email, number, password, range, search, tel, text and url. Comma separated list, with a inputType for each row. Default is text. Optional. Design Time.
inputValues A comma separated list of the initial contents of each row. Optional. Design Time.
placeholders A comma separated list of placeholders for each row. Placeholders are grayed out text to help the operator input. Does not appear for all inputTypes. Optional. Design Time.
prompts A comma separated list of prompts, one per row. Only used if fieldType is smallfield. Optional. Design Time.
refresh() Recalculates the size of the scrolling area after additions or deletions. Design Time.
rows Defines the number of rows of input items. Design Time.
setValue(n,val) Set item n to val. Runtime.

Events

MultiInput supports the standard events.

Example

Function Button1_onclick()
  MsgBox "Value=" & MultiInput1.getValue(1)
End Function
 
Function Button2_onclick()
  MultiInput1.setValue(1,"This is the new value")
End Function

Output