Re: [Pharo-users] Rubric events

2015-10-02 Thread Alain Plantec via Pharo-users
--- Begin Message ---
Hello Miguel,
Did you tried to subscribe to RubTextUpdatedInModel through the model of the 
morph (and not directly the morph) ?
Cheers
Alain


> On 30 Sep 2015, at 16:52, Miguel Campusano  wrote:
> 
> Hello,
> I'm working on modifying the styling of text by using RubTextSegmentMorph. 
> The problem is that the text could be modified dynamically by selecting 
> another text, so the styling must be modified.
> I want to use the announcements system of Rubric but something weird happens. 
> When I subscribe to the announce RubTextUpdatedInModel of the 
> RubScrolledTextMorph, the styling sometimes works, sometimes doesn't.
> What I noticed in the method RubScrolledTextMorph>>whenTextUpdatedInModel:
> the announcement is done before setting the text in the morph and if I change 
> this to make the announcement after setting the text, everything works fine.
> 
> So my question is:
> Is there something special to announcer the set of the text before actually 
> setting it? Is it ok to change it? 
> OR
> Is another way to do what I want to do?
> 
> Bests,
> Miguel


--- End Message ---


Re: [Pharo-users] Rubric events

2015-10-02 Thread Marcus Denker
This mails arrived here empty. 

> On 02 Oct 2015, at 08:36, Alain Plantec via Pharo-users 
>  wrote:
> 
> 
> 
> 
> 




Re: [Pharo-users] Rubric events

2015-10-02 Thread Miguel Campusano
Yes, I tried.
For what I see is the that the text of the morph still have not been setter
when this announcement is triggered

On Fri, Oct 2, 2015 at 8:36 AM Alain Plantec via Pharo-users <
pharo-users@lists.pharo.org> wrote:

> Hello Miguel,
> Did you tried to subscribe to RubTextUpdatedInModel through the model of
> the morph (and not directly the morph) ?
> Cheers
> Alain
>
>
> > On 30 Sep 2015, at 16:52, Miguel Campusano 
> wrote:
> >
> > Hello,
> > I'm working on modifying the styling of text by using
> RubTextSegmentMorph. The problem is that the text could be modified
> dynamically by selecting another text, so the styling must be modified.
> > I want to use the announcements system of Rubric but something weird
> happens. When I subscribe to the announce RubTextUpdatedInModel of the
> RubScrolledTextMorph, the styling sometimes works, sometimes doesn't.
> > What I noticed in the method
> RubScrolledTextMorph>>whenTextUpdatedInModel:
> > the announcement is done before setting the text in the morph and if I
> change this to make the announcement after setting the text, everything
> works fine.
> >
> > So my question is:
> > Is there something special to announcer the set of the text before
> actually setting it? Is it ok to change it?
> > OR
> > Is another way to do what I want to do?
> >
> > Bests,
> > Miguel
>
>
>


Re: [Pharo-users] Rubric events

2015-10-02 Thread Peter Uhnák
On Fri, Oct 2, 2015 at 8:54 AM, Marcus Denker <marcus.den...@inria.fr>
wrote:

> This mails arrived here empty.
>

Interesting. Gmail says for that mail "{no text body}", but if I click on
it I see the content:

---

From: Alain Plantec <alain.plan...@yahoo.com>
To: Any question about pharo is welcome <pharo-users@lists.pharo.org>
Cc:
Date: Fri, 2 Oct 2015 08:36:27 +0200
Subject: Re: [Pharo-users] Rubric events
Hello Miguel,
Did you tried to subscribe to RubTextUpdatedInModel through the model of
the morph (and not directly the morph) ?
Cheers
Alain