Xbasic
A5_OWNER_DRAW_LIST_FMT Function
Syntax
Formatted_List as C = a5_owner_draw_list_fmt(C input_list ,P format_style [,C mode ])
Arguments
- input_list
The list to format.
- format_style
A 'dot' variable that sets various advanced formatting options.
- mode
Character
Description
The A5_OWNER_DRAW_LIST_FMT() function takes a CR-LF delimited list, on an Xdialog, and adds 'owner-draw' formatting command to the list. (See the Learning Xdialog book for information on 'owner-draw' formatting options).
Example
? temp_list = paul|smith|boston john|king|denver harry|jones|johannesburg gretta|henry|new york Dim format as P 'set tab stops at 1 inch and 2 inches. Format.tab_stops="1,2" Format.odd_row_color="White" Format.even_row_color="Blue White" Format.odd_selected_color="Dark Blue" Format.even_selected_color="Dark Blue" Format.font="Arial,8" Format.font_color_unselected="Black" Format.font_color_selected="White" Format.group_size=1 Format.number_rows=.f. Format.alternating_bands=.t. temp_list = a5_owner_draw_list_fmt(temp_list, Format) ? temp_list = {F=Arial,8}{C=Black,White}{B=White,Dark Blue}paul{T=1}smith{T=2}boston {F=Arial,8}{C=Black,White}{B=Blue White,Dark Blue}john{T=1}king{T=2}denver {F=Arial,8}{C=Black,White}{B=White,Dark Blue}harry{T=1}jones{T=2}johannesburg {F=Arial,8}{C=Black,White}{B=Blue White,Dark Blue}gretta{T=1}henry{T=2}new york
See Also