Giter Site home page Giter Site logo

Multi-line text widget about nimx HOT 4 CLOSED

yglukhov avatar yglukhov commented on May 18, 2024
Multi-line text widget

from nimx.

Comments (4)

yglukhov avatar yglukhov commented on May 18, 2024

Currently there's no such thing, but it is in near plans. I don't think tables would be handy for this. I would rather extend (and then contribute! 😉 ) existing TextField.

from nimx.

 avatar commented on May 18, 2024

Do you think it's a good idea to extend it with scrolling and line breaking? Several things can be re-used though. What do you think of Qt's approach of inheriting from a scroll bar widget?

from nimx.

yglukhov avatar yglukhov commented on May 18, 2024

@ephja, I would rather use composition and reuse existing ScrollView to embed the TextField within:

let textField = TextField.new(someRect)
textField.multiline = true
textField.autoresizingMask = { afFlexibleWidth, afFlexibleHeight }
let scrollView = newScrollView(textField) # Embedding into ScrollView

As for line breaking, eventually we will definitely need it, but I can't tell you do it or not. If you're into contributing, I can only thank you ( and maybe criticize just a bit ;) ).

from nimx.

yglukhov avatar yglukhov commented on May 18, 2024

Please, check out latest nimx samples and formatted_text module.

from nimx.

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.