How can I change the size of the World ?

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

How can I change the size of the World ?

Mariano Martinez Peck
Hi folks.  Actually, I a not sure if what I want is to change the size of the World, but the size of the windows. The problem is this: the PharoCore images, when I open them, they have a little size by default. I always need to make them bigger. I have to do the same with the Dev images.  So, I would like to do that from Smalltalk side and add it to my scripts to build dev images.

Is this possible ?  how ? I  looked in Display and World, but I didn't find what I need.

Cheers

Mariano

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-project] How can I change the size of the World ?

Stéphane Ducasse
may be look for initialExtent (now that this is not only in Object :)

On Jan 26, 2010, at 8:27 PM, Mariano Martinez Peck wrote:

> Hi folks.  Actually, I a not sure if what I want is to change the size of the World, but the size of the windows. The problem is this: the PharoCore images, when I open them, they have a little size by default. I always need to make them bigger. I have to do the same with the Dev images.  So, I would like to do that from Smalltalk side and add it to my scripts to build dev images.
>
> Is this possible ?  how ? I  looked in Display and World, but I didn't find what I need.
>
> Cheers
>
> Mariano
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-project] How can I change the size of the World ?

Adrian Lienhard
Yes, in the default size of the image, the browser windows are always too small. This logic is in RealEstateAgent class>>standardWindowExtent.

In there you can hack one of the lines as follows:

^ ((allowedArea extent - (grid*(maxLevel+1*2) + (grid//2))) min: StandardSize) max: 700@450

I added the last part with max: ..., which makes the windows always at least 700@450. Maybe someday somebody comes up with a more thought through solution to the complete logic in RealEstateAgent, but until then that should work pretty well.

Cheers,
Adrian


On Jan 26, 2010, at 21:15 , Stéphane Ducasse wrote:

> may be look for initialExtent (now that this is not only in Object :)
>
> On Jan 26, 2010, at 8:27 PM, Mariano Martinez Peck wrote:
>
>> Hi folks.  Actually, I a not sure if what I want is to change the size of the World, but the size of the windows. The problem is this: the PharoCore images, when I open them, they have a little size by default. I always need to make them bigger. I have to do the same with the Dev images.  So, I would like to do that from Smalltalk side and add it to my scripts to build dev images.
>>
>> Is this possible ?  how ? I  looked in Display and World, but I didn't find what I need.
>>
>> Cheers
>>
>> Mariano
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project