[Gtk-sharp-list] Gtk.TextView, space separated values

Pedro Guridi pipiten at gmail.com
Sun Apr 20 09:45:53 EDT 2008


(sorry the spam.. I forgot the proper subject.., my apologies..)


Hi all,

 I have a file with space separated values, which I load it into a TextView.
 This it's an example how it looks like when I open it in gedit, or if
 I just print it line by line to the terminal with Console.write() :

 ...
 1277   5412L2              1       5        0        0     00:07       1   LIS
 1277   5413L2              1       5        0        0     00:07       1   LIS
 1277   5414L2              1       5        0        0     00:07       1   LIS
 1127   5355L2              1       5   1000       25    02:00       5  Pampa
 1127   5353L2              1       5   1000       25    01:40       5  Pampa
 ..

 But when I load it into the textview, some columns position changes, like this:

 1277   5412L2              1       5      0        0     00:07       1   LIS
 1277   5413L2              1       5      0        0     00:07       1   LIS
 1277   5414L2              1       5      0        0     00:07       1   LIS
 1127   5355L2              1       5   1000       25     02:00       5  Pampa
 1127   5353L2              1       5   1000       25     01:40       5  Pampa

 I need to find a way to be able to show the text in the correct format
 ( maybe a fixed font, or a Gtk.TextTag? just guessing.. )

 I would appreciate any help, thanks in advance,

 Mono version: 1.9
 Gtk-Sharp version: 2.10.0
 Ubuntu Gutsy x32.


 Pedro Guridi


More information about the Gtk-sharp-list mailing list