UF_DRF_text_s (view source)
Defined in: uf_drf_types.h
Also known as:
- UF_DRF_text_t
- UF_DRF_text_p_t
Overview
text specification
set the desired TEXT ENTRY MODE preference (with UF_DRF_set_preferences)
to activate the desired component of the text structure
MPI[7] TEXT ENTRY MODE
1 = ONLY AUTOMATIC TEXT
2 = AUTOMATIC TEXT and APPENDED TEXT
3 = ONLY MANUAL TEXT
4 = MANUAL TEXT and APPENDED TEXT
an example of initializing the appended_text element of the structure in a C++ program:
UF_DRF_text_t drf_text;
char appended_text[3][133] = { "Appended Text Line 1",
"Appended Text Line 2",
"Appended Text Line 3" };
drf_text.lines_app_text = 3;
drf_text.appended_text = appended_text;
The type of the appended_text field now specifies the length of
the character string in order to avoid errors from some compilers.
This has the added benefit of eliminating the cast formerly
required in the appended_text field assignment above.
Using the new data type here is an example of initializing the appended_text field
of the UF_DRF_text_t struct in a C++ program:
UF_DRF_text_t drf_text;
UF_DRF_one_apptext_line_t appended_text[] = { "Appended Text Line 1",
"Appended Text Line 2",
"Appended Text Line 3" };
drf_text.lines_app_text = 3;
drf_text.appended_text = appended_text;
This is the preferred method as there is no longer any dependence on the size of 133.
Data Members
user_dim_text
char *
lines_app_text
int
appended_text
UF_DRF_one_apptext_line_t *