RTMultiCompositeShape + Bitmap
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.
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 <rosariosantamarina1@gmail.com> 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.
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 -- 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.
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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Acabo de el problema de componer composite shapes. Avisame como va. Saludos, Alexandre
On Nov 25, 2014, at 10:06 AM, Alexandre Bergel <alexandre.bergel@me.com> 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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
wrong list? in any case, wrong language ;) Esteban
On 25 Nov 2014, at 17:31, Alexandre Bergel <alexandre.bergel@me.com> 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 <alexandre.bergel@me.com <mailto:alexandre.bergel@me.com>> 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- <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 <http://www.bergel.eu/> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu <http://www.bergel.eu/> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
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 <estebanlm@gmail.com> wrote:
wrong list? in any case, wrong language ;)
Esteban
On 25 Nov 2014, at 17:31, Alexandre Bergel <alexandre.bergel@me.com> 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 <alexandre.bergel@me.com> 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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi! I just tested it in a clean image and now it works fine. Thanks a lot. Cheers, Rosario -- View this message in context: http://forum.world.st/RTMultiCompositeShape-Bitmap-tp4791277p4792375.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (3)
-
Alexandre Bergel -
Esteban Lorenzano -
rosariosm