Ralph Shnelvar
2010-Sep-06 07:51 UTC
[fxruby-users] Multiline text widget with text wrap without scroll bars?
Does a multiline widget with text wrap capability exist that does not have scroll bars? I attempted to set the visible attribute to the child scroll bars to false in an FXText tool .... but that does not seem to work. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100906/10e0cb43/attachment.html>
dave L
2010-Sep-06 08:48 UTC
[fxruby-users] Multiline text widget with text wrap without scroll bars?
the FXtext tool does have a wrap option, Have you looked for that? checked out google ? or even gone to http://www.fxruby.org/doc/examples.html check out the examples their? below is a snippet from the babelfish.rb script. FXText.new(sunkenFrame, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y) last tip is this www.fxruby.org/doc/api/classes/Fox/FXText.html HTH Dave. ________________________________ From: Ralph Shnelvar <ralphs at dos32.com> To: fxruby-users at rubyforge.org Sent: Mon, 6 September, 2010 7:51:27 PM Subject: [fxruby-users] Multiline text widget with text wrap without scroll bars? Multiline text widget with text wrap without scroll bars? Does a multiline widget with text wrap capability exist that does not have scroll bars? I attempted to set the visible attribute to the child scroll bars to false in an FXText tool .... but that does not seem to work. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100906/8f5fbad7/attachment-0001.html>
Ralph Shnelvar
2010-Sep-07 20:07 UTC
[fxruby-users] Multiline text widget with text wrap without scroll bars?
dave, Of course I tried. I spent hours. I have scoured the ''Net, read Lyle''s book, looked at the hierarchies. Nothing I have tried has turned off the damned scroll bars in a FXText object. I, of course, tried to run babelfish.rb. Of course, it wouldn''t run ... - - - babelfish.rb:4:in `require'': no such file to load -- tranexp (LoadError) from babelfish.rb:4 - - - So I installed the gem. Reran ... - - - babelfish.rb:4:in `require'': no such file to load -- tranexp (LoadError) from babelfish.rb:4 - - - A mystery since gem list --local produces (in part) tranexp (1.0.1) I don''t know what screen output babelfish is supposed to generate, but I am simply unable to create a FXText object that does not present scroll bars to the user. Ralph Monday, September 6, 2010, 2:48:02 AM, you wrote: the FXtext tool does have a wrap option, Have you looked for that? checked out google ? or even gone to http://www.fxruby.org/doc/examples.html check out the examples their? below is a snippet from the babelfish.rb script. FXText.new(sunkenFrame, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y) last tip is this www.fxruby.org/doc/api/classes/Fox/FXText.html HTH Dave. From: Ralph Shnelvar <ralphs at dos32.com> To: fxruby-users at rubyforge.org Sent: Mon, 6 September, 2010 7:51:27 PM Subject: [fxruby-users] Multiline text widget with text wrap without scroll bars? Does a multiline widget with text wrap capability exist that does not have scroll bars? I attempted to set the visible attribute to the child scroll bars to false in an FXText tool .... but that does not seem to work. -- Best regards, Ralph mailto:ralphs at dos32.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100907/9284e4ce/attachment.html>
Lyle Johnson
2010-Sep-07 20:43 UTC
[fxruby-users] Multiline text widget with text wrap without scroll bars?
On Tue, Sep 7, 2010 at 3:07 PM, Ralph Shnelvar <ralphs at dos32.com> wrote:> Does a multiline widget with text wrap capability exist that does not have scroll bars? > > I attempted to set the visible attribute to the child scroll bars to false in an FXText tool .... but that does not seem to work.The code for my first attempt, just seeing what an FXText with wordwrap turned on looks like, is here: http://gist.github.com/569051 When I run this one, I don''t get a horizontal scrollbar but I do see a vertical one. So I looked at the API documentation and saw that FXText is a subclass of FXScrollArea, then looked at that class'' documentation to see what its options are. The code for my second attempt is here: http://gist.github.com/569058 The only difference here is in the options passed to FXText.new (I mixed-in VSCROLLER_NEVER to turn off the vertical scrollbar). When I run this version, I don''t get either scrollbar. Hope this helps, Lyle
Ralph Shnelvar
2010-Sep-09 02:25 UTC
[fxruby-users] Multiline text widget with text wrap without scroll bars?
Lyle, It isn''t perfectly what I want ... but it got close. Thank you ever so much! Ralph Tuesday, September 7, 2010, 2:43:10 PM, you wrote: LJ> On Tue, Sep 7, 2010 at 3:07 PM, Ralph Shnelvar <ralphs at dos32.com> wrote:>> Does a multiline widget with text wrap capability exist that does not have scroll bars?>> I attempted to set the visible attribute to the child scroll bars to false in an FXText tool .... but that does not seem to work.LJ> The code for my first attempt, just seeing what an FXText with LJ> wordwrap turned on looks like, is here: LJ> http://gist.github.com/569051 LJ> When I run this one, I don''t get a horizontal scrollbar but I do see a LJ> vertical one. So I looked at the API documentation and saw that FXText LJ> is a subclass of FXScrollArea, then looked at that class'' LJ> documentation to see what its options are. The code for my second LJ> attempt is here: LJ> http://gist.github.com/569058 LJ> The only difference here is in the options passed to FXText.new (I LJ> mixed-in VSCROLLER_NEVER to turn off the vertical scrollbar). When I LJ> run this version, I don''t get either scrollbar. LJ> Hope this helps, LJ> Lyle LJ> _______________________________________________ LJ> fxruby-users mailing list LJ> fxruby-users at rubyforge.org LJ> http://rubyforge.org/mailman/listinfo/fxruby-users -- Best regards, Ralph mailto:ralphs at dos32.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100908/3c592109/attachment.html>