RTMultiCompositeShape + Bitmap

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

RTMultiCompositeShape + Bitmap

rosariosm
This post was updated on .
Hello,

When i try to add a vertical/horizontal layout to a RTMultiCompositeShape that has a Bitmap shape, it cant render the layout because a TRBitmapShape dont understand #extent.

For example:

        | element label bitmap composite view |

        label := RTLabel new text: 'hello'.
        bitmap := RTBitmap new form: (Form dotOfSize: 10).
        composite := (RTMultiCompositeShape with: label with: bitmap) vertical.

        element := RTElement new addShape: composite.
        view := RTView new
                add: element;
                open

Thanks!
Rosario
Reply | Threaded
Open this post in threaded view
|

Re: RTMultiCompositeShape + Bitmap

abergel
Hi Rosario!

Well spotted! Please, update Trachel to enjoy the bug fix

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Nov 20, 2014, at 10:39 AM, rosariosm <[hidden email]> wrote:

Hello,

When i try to add a vertical/horizontal layout to a RTMultiCompositeShape
that has a Bitmap shape, it cant render the layout because a RTBitmal dont
understand #extent.

For example:

| element label bitmap composite view |

label := RTLabel new text: 'hello'.
bitmap := RTBitmap new form: (Form dotOfSize: 10).
composite := (RTMultiCompositeShape with: label with: bitmap) vertical.

element := RTElement new addShape: composite.
view := RTView new
add: element;
open

Thanks!
Rosario




--
View this message in context: http://forum.world.st/RTMultiCompositeShape-Bitmap-tp4791277.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|

Re: RTMultiCompositeShape + Bitmap

rosariosm
Hi Alex!

I have updated trachel but it still doesnt work. I think i found another bug. Look at this new example:


 | element label bitmap composite  text |

        text :=   (WriteStream on: ' ')
                nextPutAll: 'string1';
                nextPut: Character cr;
                nextPutAll: 'string2';
                contents.

        label := RTLabel new text: text.
        bitmap := RTBitmap new form: (Form dotOfSize: 10).
        composite := (RTMultiCompositeShape with: bitmap with: label) vertical.

        element := RTElement new addShape: composite.
       

RTLabel in trachel becomes a TRCompositeShape (because the text has two lines) and a TRCompositeShape doesnt understand #extent.


Thanks,
Rosario
Reply | Threaded
Open this post in threaded view
|

Re: RTMultiCompositeShape + Bitmap

abergel
Hi Rosario,

I have updated trachel but it still doesnt work.

What do you mean? I have the following:



I think i found another
bug. Look at this new example:


| element label bitmap composite  text |

text :=   (WriteStream on: ' ')
nextPutAll: 'string1';
nextPut: Character cr;
nextPutAll: 'string2';
contents.

       label := RTLabel new text: text.
       bitmap := RTBitmap new form: (Form dotOfSize: 10).
       composite := (RTMultiCompositeShape with: bitmap with: label)
vertical.

       element := RTElement new addShape: composite.

I cannot reproduce the problem.
I have the following:


However, I see a new problem here. Is that the bitmap should be above the label. And it is not. 
I will work on it.

Cheers,
Alexandre



RTLabel in trachel becomes a TRCompositeShape (because the text has two
lines) and a TRCompositeShape doesnt understand #extent.


Thanks,
Rosario




--
View this message in context: http://forum.world.st/RTMultiCompositeShape-Bitmap-tp4791277p4791565.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



Reply | Threaded
Open this post in threaded view
|

Re: RTMultiCompositeShape + Bitmap

abergel
Acabo de el problema de componer composite shapes.



Avisame como va.

Saludos,
Alexandre


On Nov 25, 2014, at 10:06 AM, Alexandre Bergel <[hidden email]> wrote:

Hi Rosario,

I have updated trachel but it still doesnt work.

What do you mean? I have the following:

<Screen Shot 2014-11-25 at 10.03.36 AM.png>


I think i found another
bug. Look at this new example:


| element label bitmap composite  text |

text :=   (WriteStream on: ' ')
nextPutAll: 'string1';
nextPut: Character cr;
nextPutAll: 'string2';
contents.

       label := RTLabel new text: text.
       bitmap := RTBitmap new form: (Form dotOfSize: 10).
       composite := (RTMultiCompositeShape with: bitmap with: label)
vertical.

       element := RTElement new addShape: composite.

I cannot reproduce the problem.
I have the following:

<Screen Shot 2014-11-25 at 10.05.39 AM.png>

However, I see a new problem here. Is that the bitmap should be above the label. And it is not. 
I will work on it.

Cheers,
Alexandre



RTLabel in trachel becomes a TRCompositeShape (because the text has two
lines) and a TRCompositeShape doesnt understand #extent.


Thanks,
Rosario




--
View this message in context: http://forum.world.st/RTMultiCompositeShape-Bitmap-tp4791277p4791565.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



Reply | Threaded
Open this post in threaded view
|

Re: RTMultiCompositeShape + Bitmap

EstebanLM
wrong list?
in any case, wrong language ;)

Esteban

On 25 Nov 2014, at 17:31, Alexandre Bergel <[hidden email]> wrote:

Acabo de el problema de componer composite shapes.

<Screen Shot 2014-11-25 at 12.30.36 PM.png>

Avisame como va.

Saludos,
Alexandre


On Nov 25, 2014, at 10:06 AM, Alexandre Bergel <[hidden email]> wrote:

Hi Rosario,

I have updated trachel but it still doesnt work.

What do you mean? I have the following:

<Screen Shot 2014-11-25 at 10.03.36 AM.png>


I think i found another
bug. Look at this new example:


| element label bitmap composite  text |

text :=   (WriteStream on: ' ')
nextPutAll: 'string1';
nextPut: Character cr;
nextPutAll: 'string2';
contents.

       label := RTLabel new text: text.
       bitmap := RTBitmap new form: (Form dotOfSize: 10).
       composite := (RTMultiCompositeShape with: bitmap with: label)
vertical.

       element := RTElement new addShape: composite.

I cannot reproduce the problem.
I have the following:

<Screen Shot 2014-11-25 at 10.05.39 AM.png>

However, I see a new problem here. Is that the bitmap should be above the label. And it is not. 
I will work on it.

Cheers,
Alexandre



RTLabel in trachel becomes a TRCompositeShape (because the text has two
lines) and a TRCompositeShape doesnt understand #extent.


Thanks,
Rosario




--
View this message in context: http://forum.world.st/RTMultiCompositeShape-Bitmap-tp4791277p4791565.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: RTMultiCompositeShape + Bitmap

abergel
Ah sorry, it was the right list, but indeed the wrong language.
Since Rosario is probably from South America, my brain did an override  :-)

Cheers,
Alexandre


> On Nov 25, 2014, at 12:33 PM, Esteban Lorenzano <[hidden email]> wrote:
>
> wrong list?
> in any case, wrong language ;)
>
> Esteban
>
>> On 25 Nov 2014, at 17:31, Alexandre Bergel <[hidden email]> wrote:
>>
>> Acabo de el problema de componer composite shapes.
>>
>> <Screen Shot 2014-11-25 at 12.30.36 PM.png>
>>
>> Avisame como va.
>>
>> Saludos,
>> Alexandre
>>
>>
>>> On Nov 25, 2014, at 10:06 AM, Alexandre Bergel <[hidden email]> wrote:
>>>
>>> Hi Rosario,
>>>
>>>> I have updated trachel but it still doesnt work.
>>>
>>> What do you mean? I have the following:
>>>
>>> <Screen Shot 2014-11-25 at 10.03.36 AM.png>
>>>
>>>
>>>> I think i found another
>>>> bug. Look at this new example:
>>>>
>>>>
>>>> | element label bitmap composite  text |
>>>>
>>>> text :=   (WriteStream on: ' ')
>>>> nextPutAll: 'string1';
>>>> nextPut: Character cr;
>>>> nextPutAll: 'string2';
>>>> contents.
>>>>
>>>>        label := RTLabel new text: text.
>>>>        bitmap := RTBitmap new form: (Form dotOfSize: 10).
>>>>        composite := (RTMultiCompositeShape with: bitmap with: label)
>>>> vertical.
>>>>
>>>>        element := RTElement new addShape: composite.
>>>
>>> I cannot reproduce the problem.
>>> I have the following:
>>>
>>> <Screen Shot 2014-11-25 at 10.05.39 AM.png>
>>>
>>> However, I see a new problem here. Is that the bitmap should be above the label. And it is not.
>>> I will work on it.
>>>
>>> Cheers,
>>> Alexandre
>>>
>>>>
>>>>
>>>> RTLabel in trachel becomes a TRCompositeShape (because the text has two
>>>> lines) and a TRCompositeShape doesnt understand #extent.
>>>>
>>>>
>>>> Thanks,
>>>> Rosario
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context: http://forum.world.st/RTMultiCompositeShape-Bitmap-tp4791277p4791565.html
>>>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>>>
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: RTMultiCompositeShape + Bitmap

rosariosm
Hi!

I just tested it in a clean image and now it works fine. Thanks a lot.

Cheers,
Rosario