Alignment of More Than Two Text in Correct Format for CListBox.
-
Hi all, i have to Append the String Values in CListBox just Like ClistCtrl Does. I mean i am appending the String values inside the ClistBox with some Gaps but they are not Alligned Properly. I have to Display just like CListControl. Code: ----- CListBox.AddString("one"+ "-----------------" +"1"); //Equal Space Padding automatically depending on Chars in List. CListBox.AddString("Twently"+ "-------------" +"2"); The Padding of Small and Big charters in CListBox must just appear as CListCtrl. Give a solution for this. Thanks, Uday.
-
Hi all, i have to Append the String Values in CListBox just Like ClistCtrl Does. I mean i am appending the String values inside the ClistBox with some Gaps but they are not Alligned Properly. I have to Display just like CListControl. Code: ----- CListBox.AddString("one"+ "-----------------" +"1"); //Equal Space Padding automatically depending on Chars in List. CListBox.AddString("Twently"+ "-------------" +"2"); The Padding of Small and Big charters in CListBox must just appear as CListCtrl. Give a solution for this. Thanks, Uday.
I am not sure I understand your question but I suspect that your CListBox is using a proportional font so individual characters are only as wide as they need to be. You probably want to use a fixed width font, such as Courier, where each character is the same width in pixels.
Just say 'NO' to evaluated arguments for diadic functions! Ash
-
Hi all, i have to Append the String Values in CListBox just Like ClistCtrl Does. I mean i am appending the String values inside the ClistBox with some Gaps but they are not Alligned Properly. I have to Display just like CListControl. Code: ----- CListBox.AddString("one"+ "-----------------" +"1"); //Equal Space Padding automatically depending on Chars in List. CListBox.AddString("Twently"+ "-------------" +"2"); The Padding of Small and Big charters in CListBox must just appear as CListCtrl. Give a solution for this. Thanks, Uday.