Let's say I have a wxTextCtrl.
I also have a text in a form of:
What I'd like to do is to display that string in that text control as:SELECT "a"."x", "b"."y" FROM "a", "b" WHERE "a".id" = "b"."id";
Code: Select all
SELECT "a"."x",
"b"."y"
FROM "a",
"b"
WHERE "a"."id" = "b"."id;
For that I need to calculate the number of spaces I need to add in order to format the string nicely.
What is the best way of doing it?
Or maybe there is a better way?
Thank you.