I have a problem with combobox displays (not due to recent versions).
I explain : I use tables where there is a description and an id , the table is added like this
AADD(MESVARS():TABVAR[12],ORI->LIBELLE + " " + STR(ORI->NUMERO,6) )
where there is a title and an id that i can retreive ,
i want the combobox to display the string (table) as it is , now it is "shrinking" it with trims and this is not good
i have set an image to explain it better, i need a fixed alignment for all items (items may include blank characters) , this is loaded from resource , i join the resource
Thanks for help,
Richard
- Code: Select all Expand view
STATDLG DIALOG DISCARDABLE 3, 12, 300, 228
STYLE WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Statistiques "
FONT 10, "Tahoma"
{
CONTROL "OK", IDOK, "Button", BS_DEFPUSHBUTTON|WS_TABSTOP, 0, 204, 42, 21
CONTROL "Annuler", IDCANCEL, "Button", WS_TABSTOP, 254, 205, 42, 21
CONTROL "Sélection", 401, "Static", SS_CENTER|WS_BORDER|WS_GROUP, 1, 4, 60, 27
CONTROL "Tous les Détails", 205, "Button", BS_RADIOBUTTON, 66, 99, 66, 12, WS_EX_TRANSPARENT
CONTROL "Total Récapitulatif", 206, "Button", BS_RADIOBUTTON, 66, 112, 72, 12, WS_EX_TRANSPARENT
CONTROL "Type de Statistiques", 402, "Static", SS_CENTER|WS_BORDER|WS_GROUP, 1, 99, 60, 27
CONTROL "", 201, "ComboBox", WS_BORDER|CBS_DROPDOWNLIST|CBS_NOINTEGRALHEIGHT|WS_VSCROLL|WS_TABSTOP, 64, 4, 229, 135 <---------------- THIS IS THE COMBOBOX
CONTROL "Période Sélectionnée", 403, "Static", SS_CENTER|WS_BORDER|WS_GROUP, 1, 53, 60, 27
CONTROL "Du", 404, "Static", SS_CENTER|WS_BORDER|WS_GROUP, 63, 53, 23, 14
CONTROL "", 207, "Edit", WS_BORDER|WS_TABSTOP, 90, 53, 60, 15
CONTROL "Au", 405, "Static", SS_CENTER|WS_BORDER|WS_GROUP, 63, 73, 23, 14
CONTROL "", 208, "Edit", WS_BORDER|WS_TABSTOP, 90, 73, 60, 15
CONTROL "Format Export", 407, "Static", SS_CENTER|WS_BORDER|WS_GROUP, 140, 172, 60, 14
CONTROL "ASCII (Texte)", 211, "Button", BS_RADIOBUTTON, 209, 184, 58, 12, WS_EX_TRANSPARENT
CONTROL "Excel", 210, "Button", BS_RADIOBUTTON, 209, 169, 58, 12, WS_EX_TRANSPARENT
CONTROL "Listing", 212, "Button", BS_RADIOBUTTON, 66, 142, 65, 12, WS_EX_TRANSPARENT
CONTROL "Graphique", 213, "Button", BS_RADIOBUTTON, 66, 156, 65, 12, WS_EX_TRANSPARENT
CONTROL "Type de Sortie", 406, "Static", SS_CENTER|WS_BORDER|WS_GROUP, 1, 145, 60, 17
CONTROL "Fichier Exporté", 214, "Button", BS_RADIOBUTTON, 66, 172, 65, 12, WS_EX_TRANSPARENT
CONTROL "Préciser Niveau Détail", 3, "Button", WS_TABSTOP, 140, 99, 90, 12
}