From: Albert Wagner Date: 2001-12-31T04:40:39+09:00 Subject: [ruby-talk:29752] Re: Formatted Text Pane > Can it do different fonts, bold and regular face, italic, etc? > Yes. All of the above and more. You can even embed arbitrary windows and images into the text. > What's a good way to learn about it? Is there a book, a web site, a > brain transplant, someone in Michigan to pair with ... Ah, that's the rub. There is a short intro chapter to Tk in general in the pickaxe book, where it is recommended that you use the Perl/Tk Pocket Reference from O'Reilly. (You don't have to know Perl, I don't. Translation to the Ruby syntax is fairly straightforward) But the best doc in terms of explaining the concepts independent of syntax is the Tk Commands section of the manual pages: http://dev.scriptics.com/man/tcl8.3/TkCmd/contents.htm More specifically: http://dev.scriptics.com/man/tcl8.3/TkCmd/text.htm These can be downloaded for use locally. There is also the beginnings of a tutorial by Kero Van Gelder http://httpd.chello.nl/k.vangelder/ruby/learntk/ I also would be willing to help, though I am certainly not a guru; just an enthusiastic explorer. I have used the text widget as the base for several other custom widgets in Ruby: folding trees with embedded buttons, single/multiple selection lists, and a table browser/editor with different editing behaviour for different types of cells (string, integer, float, boolean, list, etc.) I haven't tried it yet, but I think the text widget is supposed to be able to output itself in postscript. Cheers, Albert > > Thanks! > > Ronald E Jeffries > http://www.XProgramming.com > http://www.objectmentor.com