I have tried the following to put tabs in a combobox with no success.
Has anyone some suggestions?
Thanks, Ian
CONTROL ADD COMBOBOX, hDlg, %IDC_PRODUCT, , 120, 205, 235, 235, %WS_CHILD _
OR %WS_VISIBLE OR %WS_TABSTOP OR %WS_VSCROLL OR %CBS_DROPDOWN OR _
%CBS_SORT OR %CBS_UPPERCASE, %WS_EX_LEFT OR %WS_EX_LTRREADING OR _
%WS_EX_RIGHTSCROLLBAR
DIM tabstops(2) AS LONG
LOCAL a AS LONG
FOR a=0 TO 2
tabstops(a)=VAL(READ$(a+1))
NEXT a
DATA 450, 222, 300
STATIC cbi AS COMBOBOXINFO
STATIC hCombo, hComboEdit AS LONG
hCombo = GetDlgItem(hDlg, %IDC_PRODUCT)
cbi.cbSize = SIZEOF(cbi)
GetComboBoxInfo(hCombo, cbi)
hComboEdit = cbi.hwndList
SendMessage hComboEdit, %LB_SETTABSTOPS, 2, VARPTR(tabstops(0))
'then add data to the combobox with
COMBOBOX ADD hDlg, %IDC_PRODUCT, PARSE$(txt, 1) & $TAB & PARSE$(txt, 2) & $TAB & PARSE$(txt, 3)
Has anyone some suggestions?
Thanks, Ian
CONTROL ADD COMBOBOX, hDlg, %IDC_PRODUCT, , 120, 205, 235, 235, %WS_CHILD _
OR %WS_VISIBLE OR %WS_TABSTOP OR %WS_VSCROLL OR %CBS_DROPDOWN OR _
%CBS_SORT OR %CBS_UPPERCASE, %WS_EX_LEFT OR %WS_EX_LTRREADING OR _
%WS_EX_RIGHTSCROLLBAR
DIM tabstops(2) AS LONG
LOCAL a AS LONG
FOR a=0 TO 2
tabstops(a)=VAL(READ$(a+1))
NEXT a
DATA 450, 222, 300
STATIC cbi AS COMBOBOXINFO
STATIC hCombo, hComboEdit AS LONG
hCombo = GetDlgItem(hDlg, %IDC_PRODUCT)
cbi.cbSize = SIZEOF(cbi)
GetComboBoxInfo(hCombo, cbi)
hComboEdit = cbi.hwndList
SendMessage hComboEdit, %LB_SETTABSTOPS, 2, VARPTR(tabstops(0))
'then add data to the combobox with
COMBOBOX ADD hDlg, %IDC_PRODUCT, PARSE$(txt, 1) & $TAB & PARSE$(txt, 2) & $TAB & PARSE$(txt, 3)
Comment