Hello all,
I need to display a "table" of information, and I would like it to look like a table (i.e. information in columns ).
The problem is that it looks differently, in different computes/OSes.
I could count the characters, and add spaces, but different characters have a different size on screen
I wanted to "\t" in order avoid the fact that different characters have a different size on screen, but it looks as if the message box completely ignores the "\t".
Any advice as to how can I solve it ?
Is there a way to make all characters to have the same size on a specific message-box ?
I tried to search, but found nothing about this issue.
Thanks
zmau
show "Table like" with wxMessageBox
Re: show "Table like" with wxMessageBox
I do not think this would possible and the only solution would be to use a custom dialog instead of wxMessageDialog / wxMessageBox().
Re: show "Table like" with wxMessageBox
I meant to create one, basically mimicking wxMessageDialog but with having a grid-like control. Which one (e.g., wxListCtrl in report mode, wxGrid, grid of wxStaticTexts, ...) depends on the amount of information you need to present to the useer. Or, if you feel adventurous, you could use read-only wxTextCtrl set to look like a static text; where you obtain the "column" widths with its GetTextExtent() and set the tab stops accordingly (via wxTextAttr).