ComboBox and Tab character '\t'

  • Thread starter Thread starter A.M-SG
  • Start date Start date
A

A.M-SG

Hi,

I am trying to show TAB character (char(9) or '\t') in a combobox dropdown
list, but it doesn't show it. Is there anyway to show '\t' as a TAB in
dropdown list text?



If I can show \t in dropdown text, then I can make it like multicolumn list.
This trick used to work back in win16 days.



Thank you,

Alan
 
Hi Alan,

Based on my test, the Drop Down list did not recognize the "\t" as a
special character.
Even if in the Win32 MFC ComboBox Control, it did not recognize the "\t" as
a special character.

So far, as a workaround, I think you may need to calculate the text length
and fill the space to workaround the issue.
e.g.
if we want add a string "A\tB", we can biuld a string "A B".
If there are multiple strings which needs to align, we need to fill
according to the concrete scenario.
e.g.
A B
AA B
AAA B

Thanks for your understanding!


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top