Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-06 Thread Hilaire
Le 05/09/2014 08:43, p...@highoctane.be a écrit : Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? It is Window theme to keep it consistant I guess -- Dr. Geo - http://drgeo.eu iStoa - http://istao.drgeo.eu

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-05 Thread p...@highoctane.be
Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? Phil Le 4 sept. 2014 23:32, Thierry Goubier thierry.goub...@gmail.com a écrit : Le 04/09/2014 23:12, kilon alios a écrit : but if I try to do openInWindow instead of openInWorld in the end it

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-05 Thread Nicolai Hess
2014-09-05 8:43 GMT+02:00 p...@highoctane.be p...@highoctane.be: Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? Phil I can not reproduce this with this code: Morph new color:Color red; hResizing: #shrinkWrap; addMorph: (

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-05 Thread Thierry Goubier
Hi Nicolai, 2014-09-05 9:19 GMT+02:00 Nicolai Hess nicolaih...@web.de: I can not reproduce this with this code: Morph new color:Color red; hResizing: #shrinkWrap; addMorph: ( 'Hello World' asMorph fontName: 'Open Sans' size: 75; emphasis:

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-05 Thread PBKResearch
Hello I have played with this on Moose 5.0 (Pharo 3.0 update: #30854) on Windows 7 Pro. For me, it is necessary to include color:Color red after openInWindow to get the red background, as Thierry said. There is another puzzle, which is that the code does not respond in any linear way to

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-05 Thread Thierry Goubier
Hi Peter, As far as I can understand, this is because TextStyle is brain dead code when it comes to font selection (and fontName:size: is a useless API). (and now I can't write code in my Workspace in 4.0 because I get a DNU from the styler for every key I type :( :( :( ) This code correctly

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-05 Thread Tim Mackinnon
Thanks everyone for all your follow up messages - I’ve learned quite a lot from such a simple question!!! With regards to the #fontName:size: being not very useful - is that something I should submit a fogbugz for (maybe there is one already there). I’m thinking the Pharo way is to try and

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-05 Thread Thierry Goubier
2014-09-05 12:13 GMT+02:00 Tim Mackinnon tim@testit.works: Thanks everyone for all your follow up messages - I've learned quite a lot from such a simple question!!! It was a pleasure to have a look and learn a bit more as well :) With regards to the #fontName:size: being not very useful -

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-05 Thread stepharo
The idea was that the color is propagated from the container. Stef On 5/9/14 08:43, p...@highoctane.be wrote: Yes there is that annoying thing with windows that set things bacl to white. Why is that indeed? Phil Le 4 sept. 2014 23:32, Thierry Goubier thierry.goub...@gmail.com

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-05 Thread stepharo
This is not without reason that I wrote a roadmap on font cleaning. https://github.com/pharo-project/pharo-workingRoadmaps Stef

[Pharo-users] How to create a red box with text in a big font?

2014-09-04 Thread Tim Mackinnon
Hi guys - I’m a bit stumped on how to create things in big text with a set background colour. I thought I understood - but it just doesn’t seem to work. I was thinking I could create a container morph, set its background colour (which works), and then put a StringMorph inside it with a set font.

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-04 Thread Alexandre Bergel
Using Roassal, I would do: -=-=-=-=-=-=-=-=-= v := RTView new. s := RTMultiCompositeShape new. s add: (RTBox new color: Color red; size: 500). s add: (RTLabel new height: 70). v add: (s elementOn: 'Hello World'). v open -=-=-=-=-=-=-=-=-= Cheers, Alexandre --

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-04 Thread Tim Mackinnon
Cool - that’s handy to know it works somewhere (and in fact, it was when playing with GT-Inspector I noticed this - so that solution would work). I’m still curious how you do it in Morphic? Tim On 4 Sep 2014, at 17:10, Alexandre Bergel alexandre.ber...@me.com wrote: Using Roassal, I would

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-04 Thread Alexandre Bergel
No idea :-) Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Sep 4, 2014, at 12:18 PM, Tim Mackinnon tim@testit.works wrote: I’m still curious how you do it in Morphic?

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-04 Thread Hilaire
Is FreeType activated in your Settings? Hilaire Le 04/09/2014 15:27, Tim Mackinnon a écrit : Hi guys - I’m a bit stumped on how to create things in big text with a set background colour. I thought I understood - but it just doesn’t seem to work. I was thinking I could create a container

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-04 Thread Nicolai Hess
Don't use fontName: fontName size: fontSize as it only creates StrikeFont font, where the max size is 24 (I think). This works font := LogicalFont familyName: 'Open Sans' pointSize: 70. tMorph := StringMorph new. tMorph contents: 'Hello World'; font: font;

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-04 Thread Thierry Goubier
Le 04/09/2014 18:18, Tim Mackinnon a écrit : Cool - that’s handy to know it works somewhere (and in fact, it was when playing with GT-Inspector I noticed this - so that solution would work). I’m still curious how you do it in Morphic? Like that: Morph new color: Color red;

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-04 Thread kilon alios
but if I try to do openInWindow instead of openInWorld in the end it turns it to white box , why ? On Thu, Sep 4, 2014 at 11:56 PM, Thierry Goubier thierry.goub...@gmail.com wrote: Le 04/09/2014 18:18, Tim Mackinnon a écrit : Cool - that’s handy to know it works somewhere (and in fact, it

Re: [Pharo-users] How to create a red box with text in a big font?

2014-09-04 Thread Thierry Goubier
Le 04/09/2014 23:12, kilon alios a écrit : but if I try to do openInWindow instead of openInWorld in the end it turns it to white box , why ? Adding the morph inside the window changes the morph color to white :( (What the heck?) If the color is changed after the openInWindow, then that