I have a dialog box that displays data in a list box. It is for view only, and I use tab stops to align the data.
My question is can I dictate the alignment of the tab stop? Currently, all data is aligned "left". Certain fields, like time, or money would be best aligned "right", and a "true/false", "Yes/No" field would b e best aligned center.
the attached is what is displayed using the below code.
It may seem like a small thing, but it would be a much cleaner look if I could choose how to align on the tab stop.
Time_off.jpg
any help would be appreciated.
Thanks,
Tom
My question is can I dictate the alignment of the tab stop? Currently, all data is aligned "left". Certain fields, like time, or money would be best aligned "right", and a "true/false", "Yes/No" field would b e best aligned center.
the attached is what is displayed using the below code.
Code:
'Date Created: 09-Apr-2015 10:07:16 AM 'Last Updated: 09-Apr-2015 04:05:02 PM 'Created By : Thomas Henkel 'Updated By : Thomas Henkel 'debug(1) dim filt as C = replace_parameters("emp_id = [varN->empid]",local_variables()) list = table.external_record_content_get("Time_off","Req_date+\"|\"+req_type+\"|\"+alltrim(str(req_hrs,6,2))+\"|\"+req_ampm+\"|\"+sup_resp","dtos(req_date)",filt) dim heading as C = "Date|Type|Hours|AM/PM|Approved" Dim format as p Format.tab_stops=".8,1.7,2.2,3" Format.font="Arial,10,b" Format.odd_row_color="#254+254+193" Format.font_color_unselected="Red" heading = a5_owner_draw_list_fmt(heading,Format) Format.font="Arial,10" Format.odd_row_color="White" Format.even_row_color="Blue White" Format.font_color_unselected="Blue" Format.font_color_selected="White" Format.alternating_bands=.t. list = a5_owner_draw_list_fmt(list,Format) 'list=heading+list heading_string = "Review your Time Off Requests " ok_button_label = "&OK" cancel_button_label = "&Cancel" varC_result2 = ui_dlg_box(agency,<<%dlg% {Background=#254+254+193} {region} {text=55,1:heading_string}; {endregion}; {line=1,0}; ; {region} {text=%O={@@}%95,1:heading}; [%O={@@}%.95,8test^#list]; {endregion}; ; {line=1,0}; {region} <*15:OK> <15=cancel_button_label!CANCEL> {endregion}; %dlg%)
Time_off.jpg
any help would be appreciated.
Thanks,
Tom
Comment