Giter Club home page Giter Club logo

Comments (7)

ccoupe avatar ccoupe commented on August 11, 2024

I can't find anywhere in the manual that suggests these work. I'm assuming this an enhancement request.

By definition there is nothing to scroll in an edit_line.

from shoes3.

IanTrudel avatar IanTrudel commented on August 11, 2024

By definition there is nothing to scroll in an edit_line.

Agreed on edit_line. However, it is a normal behaviour (any GUI) to provide support for a scrollbar on an edit_box. The text can easily overflow and it would be a struggle to edit in such edit box without a scrollbar.

from shoes3.

ccoupe avatar ccoupe commented on August 11, 2024
Shoes.app do
  @a = edit_box :height => 100
  str = ""
  10.times {|i| str << "Line #{i}\n"}
  @a.text = str
  button "Display" do
   para @a.text
  end
end

A scroll bar appears. You can edit the text.

from shoes3.

IanTrudel avatar IanTrudel commented on August 11, 2024

True. Let's go back on the original topic for a second: Shoes edit_box does not respond to scroll_top, scroll_max, scroll_height, scroll and gutter. There is no way to know anything about that said scrollbar.

from shoes3.

ccoupe avatar ccoupe commented on August 11, 2024

I'd like an option to autoscroll (if needed) but that's different. Serious question. What would you do if you knew the edit_box has or doesn't have a scroll bar? What ever that reason is - can you detect that condition in the block attached to the edit_box?

from shoes3.

ccoupe avatar ccoupe commented on August 11, 2024

Something I've learned with the 3.2.24 console is that edit box could behave much more like a multi-line text editor window (both gtk and osx). It's a lot code to implement and we'd have to add some methods/styles/procs to Shoes - perhaps it would be better to just create a new control for Shoes so don't have compatibility issues to deal with.

from shoes3.

ccoupe avatar ccoupe commented on August 11, 2024

Partially addressed in #146. Good enough?

from shoes3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.