Hi Denis, yes, the configuration is outdated, sorry :( But just load the Rubric package. It should work under 3.0, (just uncheck the deprecation warning dialog setting). regarding how the package is structured: - Rubric-Editing-Core contains the Text*Area classes which are forks from the old TextMorph related classes. So I guess a big part of this category is already outdated because of TxText. - Rubric-Editing-Widgets contains the PluggableTextMorph equivalent which is RubScrolledTextMorph. Side and over rulers (line numbers, icon manager, column drawer, bottom annotation pane, code size feed back, adornment, â¦) are implemented by the RubScrolledTextExtra hierarchy. You will tell us but I think that it should be possible to plug RubScrolledTextMorph with a TxMorph. Cheers Alain On 1 juin 2013, at 13:12, Denis Kudriashov <dionisiydk@gmail.com> wrote:
Hi.
Do you have script to load Rubric? I try few times to load it by configuration without success. I want to compare Rubric with TxText. Maybe you already compare it? Rubric examples are nice. But I always want to know how it works under hood
Best regards, Denis
2013/6/1 plantec <alain.plantec@yahoo.com>
On 1 juin 2013, at 10:26, plantec <alain.plantec@yahoo.com> wrote:
On 1 juin 2013, at 01:25, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Would it be possible to have an element of the text responsive to some interaction? For example, if in my text field I enter the value 100. Can I click on it (and remain the mouse button down) and move the mouse to increase or decrease this numerical value?
| area seg blk | area := RubEditingArea new beWrapped; withoutSelectionBar. area setTextWith: 'Click on 0'. seg := RubPlainSegmentMorph inTextArea: area from: 10 to: 11. blk := [ seg replaceTextWith: (seg text string asNumber + 1) asString]. seg on: #mouseDown send: #value to: blk. seg on: #mouseStillDown send: #value to: blk. seg beExtendable. area addSegment: seg. area openInWorld
now I imagine that with TxMorph it should be possible to insert whatever morph at a given place instead of a RubPlainSegmentMorph. :)
Cheers Alain
Alain
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.