Intermec ck1 Reference Guide
Chapter 4 — SDK Components
168
CK1 SDK Programmer’s Reference Manual
otk_toggle_button_get_user_data (continued)
Parameter: tbutton
Pointer to the real instance
Return: Pointer to the specified data
OtkEditable
OtkEditable is the base type for editable components including OtkEntry,
OtkMaskEdit, OtkMemo, and OtkText.
OtkMaskEdit, OtkMemo, and OtkText.
Do not create instances of OtkEditable. Use OtkEditable as a base class
when declaring edit widgets that implement a text edit widget. Properties,
methods, and functions of OtkEditable provide basic behavior that
descendant widgets inherit as well as behavior that components can
override to customize their behavior.
when declaring edit widgets that implement a text edit widget. Properties,
methods, and functions of OtkEditable provide basic behavior that
descendant widgets inherit as well as behavior that components can
override to customize their behavior.
OtkEditable was inherited from OtkWidget. The properties are:
Property
Description
“autoset”(OTK_BOOL:Read)
Defines if the editable instance
manages its own text buffer
memory.
manages its own text buffer
memory.
“modified”(OTK_BOOL:Read/Write)
Defines if you have modified the
text of the editable instance since
the last time you set the text
content.
text of the editable instance since
the last time you set the text
content.
“readonly”(OTK_BOOL:Read/Write)
Defines if you can edit the text.
“focused”(OTK_BOOL:Read)
Defines if the editable instance
has the focus.
has the focus.
“selected_all”(OTK_BOOL:Read)
Defines if the editable instance is
selected.
selected.
“maxlength”(int:Read)
Defines the maximum size of the
text buffer.
text buffer.
“cursor_pos”(int:Read)
Defines the text cursor’s offset
position.
position.
“selstart”(int:Read)
Defines the start offset of the
marked region. If the sellength is
0, the selstart is equal to the
cursor_pos.
marked region. If the sellength is
0, the selstart is equal to the
cursor_pos.
“sellength”(int:Read)
Defines the string length of the
marked region.
marked region.
“text”(char*:Read)
Points to the text buffer.