Is there some way to align column titles with the columns in an xdialog list box. Right now, I can do this by trial and error, but if I run the xdialog on a different computer, the titles are mis-aligned. vcTitlerow is the variable with the list box column title. I built the list box initially using the genie and the advance button. Is there an option to add a title?
Thank you,
Ron
Code:
DIM GLOBAL vList as C DIM vOrder as C dim dlg_title as C = "Lookup Envelope Number" DIM vFilter as C DIM SHARED varC_result as C = "" DIM XDialogStyle as P XDialogStyle.AccentColor = "blue white" '"off white" XDialogStyle.Color = "blue white" DIM vcTitleRow AS C vcTitleRow = "Env#" + space(6) + "Last, First Name" + space(10) + "Name" + space(30) + "Street" + space(42) + "City" startover: '' set auto_list_vList 'order' and 'filter' variables vReturn = "\" \"+envnumber + \"|\" + Alphid + \"|\" + name + \"|\" + address2 + \"|\" + city" vOrder = "envnumber" vFilter = "alphid <> 'save!!!'" auto_list_vList = table.external_record_content_get("fam2006",vReturn ,vOrder ,vFilter) Dim format as p Format.tab_stops=".5,2,3.75,5.75" Format.odd_row_color="White" Format.even_row_color="White" Format.odd_selected_color="Dark Blue" Format.even_selected_color="Dark Blue" Format.font="Arial,10" Format.font_color_unselected="Black" Format.font_color_selected="White" Format.lastbutton="OK" Format.group_size=1 Format.number_rows=.f. Format.alternating_bands=.f. 'Apply 'owner draw' formatting information to the list auto_list_vList = a5_owner_draw_list_fmt(auto_list_vList,Format) temp_count = w_count(auto_list_vList,crlf()) DELETE a_vList DIM a_vList[temp_count] as c a_vList.initialize(auto_list_vList) close_button_label = "&Close" varC_result = ui_dlg_box(dlg_title,<<%dlg% {Windowstyle=Gradient Horizontal} {xmargin=3,3} {region};;;; {color=Black on White}; {font=arial,10,b} {text=%H=R%130,vcTitlerow}; {region} [%d;O={@@}%.130,20vList^#a_vList];;;; {endregion}; {region} <*12,1.5=close_button_label!CLOSE> {endregion}; %dlg%,<<%code% if a_dlg_button = "closeSettingChanged" then a_dlg_button = "" p.closeAfterFind = flagCloseAfterFind a5_save_settings("Find_Item",p) end if IF a_dlg_Button = "Close" ui_modeless_dlg_close(dlg_title) END IF %code%) END
Ron
Comment