How can I remove a picture from background ?

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

How can I remove a picture from background ?

Mariano Martinez Peck
Hi:  I do something like this:

Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'

And the picture is set as background, but then I don't know how to remove it. I look for a while but I didn't find anything.

Thanks for the help,

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: How can I remove a picture from background ?

Gary Chambers-4
World color: Color white
 
should do the trick.

Regards, Gary
----- Original Message -----
Sent: Wednesday, January 13, 2010 3:47 PM
Subject: [Pharo-project] How can I remove a picture from background ?

Hi:  I do something like this:

Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'

And the picture is set as background, but then I don't know how to remove it. I look for a while but I didn't find anything.

Thanks for the help,

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: How can I remove a picture from background ?

cedreek
In reply to this post by Mariano Martinez Peck
something like (not sure though):
World color: Color white

2010/1/13 Mariano Martinez Peck <[hidden email]>
Hi:  I do something like this:

Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'

And the picture is set as background, but then I don't know how to remove it. I look for a while but I didn't find anything.

Thanks for the help,

Mariano

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



--
Cédrick

_______________________________________________
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: How can I remove a picture from background ?

Mariano Martinez Peck
In reply to this post by Gary Chambers-4


2010/1/13 Gary Chambers <[hidden email]>
World color: Color white
 
should do the trick.


hahahahah  good hack!! Indeed, it worked :)

Thank you very much!

Mariano

 
Regards, Gary
----- Original Message -----
Sent: Wednesday, January 13, 2010 3:47 PM
Subject: [Pharo-project] How can I remove a picture from background ?

Hi:  I do something like this:

Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'

And the picture is set as background, but then I don't know how to remove it. I look for a while but I didn't find anything.

Thanks for the help,

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
Reply | Threaded
Open this post in threaded view
|

Re: How can I remove a picture from background ?

Mariano Martinez Peck
In reply to this post by cedreek
hahahahha why everybody had the same idea and I didn't ?  hahah

I seems I ask something very stupid...

Thanks anyway Cédrick

2010/1/13 Cédrick Béler <[hidden email]>
something like (not sure though):
World color: Color white

2010/1/13 Mariano Martinez Peck <[hidden email]>
Hi:  I do something like this:

Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'

And the picture is set as background, but then I don't know how to remove it. I look for a while but I didn't find anything.

Thanks for the help,

Mariano

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



--
Cédrick

_______________________________________________
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: How can I remove a picture from background ?

Gary Chambers-4
All about getting to know how Morphic works... or sometimes doesn't, as you explore further down the rabbit hole!

Regards, Gary
----- Original Message -----
Sent: Wednesday, January 13, 2010 3:56 PM
Subject: Re: [Pharo-project] How can I remove a picture from background ?

hahahahha why everybody had the same idea and I didn't ?  hahah

I seems I ask something very stupid...

Thanks anyway Cédrick

2010/1/13 Cédrick Béler <[hidden email]>
something like (not sure though):
World color: Color white

2010/1/13 Mariano Martinez Peck <[hidden email]>
Hi:  I do something like this:

Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'

And the picture is set as background, but then I don't know how to remove it. I look for a while but I didn't find anything.

Thanks for the help,

Mariano

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



--
Cédrick

_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: How can I remove a picture from background ?

cedreek
In reply to this post by Mariano Martinez Peck

hahahahha why everybody had the same idea and I didn't ?  hahah

because I looked at #setAsBackground :)

and I learn that a InfiniteForm is a color (see Morph>>color:  :)  )
 

I seems I ask something very stupid...

Thanks anyway Cédrick

2010/1/13 Cédrick Béler <[hidden email]>

something like (not sure though):
World color: Color white

2010/1/13 Mariano Martinez Peck <[hidden email]>
Hi:  I do something like this:

Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'

And the picture is set as background, but then I don't know how to remove it. I look for a while but I didn't find anything.

Thanks for the help,

Mariano

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



--
Cédrick

_______________________________________________
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



--
Cédrick

_______________________________________________
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: How can I remove a picture from background ?

cedreek
In reply to this post by Gary Chambers-4
2010/1/13 Gary Chambers <[hidden email]>
All about getting to know how Morphic works... or sometimes doesn't, as you explore further down the rabbit hole!

quite scaring actually :)

For instance, for background, I had a quick look at PasteUpMorph and there is backgroundMorph which might be more appropriate but I find no hooks...

Anyway... now I know I still don't want to understand morphic :)

 

Regards, Gary
----- Original Message -----
Sent: Wednesday, January 13, 2010 3:56 PM
Subject: Re: [Pharo-project] How can I remove a picture from background ?

hahahahha why everybody had the same idea and I didn't ?  hahah

I seems I ask something very stupid...

Thanks anyway Cédrick

2010/1/13 Cédrick Béler <[hidden email]>
something like (not sure though):
World color: Color white

2010/1/13 Mariano Martinez Peck <[hidden email]>
Hi:  I do something like this:

Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'

And the picture is set as background, but then I don't know how to remove it. I look for a while but I didn't find anything.

Thanks for the help,

Mariano

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



--
Cédrick

_______________________________________________
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



--
Cédrick

_______________________________________________
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: How can I remove a picture from background ?

Gary Chambers-4

Well, still many loose ends around as we refactor, that's for sure!
As for understanding Morphic, there's so much that none can know all... hence trying to simplify with Pharo. Some good stuff, some bad and even when you think you know, there's always something that comes up ,either too easy or next to impossible...

Regards, Gary
----- Original Message -----
Sent: Wednesday, January 13, 2010 4:31 PM
Subject: Re: [Pharo-project] How can I remove a picture from background ?

2010/1/13 Gary Chambers <[hidden email]>
All about getting to know how Morphic works... or sometimes doesn't, as you explore further down the rabbit hole!

quite scaring actually :)

For instance, for background, I had a quick look at PasteUpMorph and there is backgroundMorph which might be more appropriate but I find no hooks...

Anyway... now I know I still don't want to understand morphic :)

 

Regards, Gary
----- Original Message -----
Sent: Wednesday, January 13, 2010 3:56 PM
Subject: Re: [Pharo-project] How can I remove a picture from background ?

hahahahha why everybody had the same idea and I didn't ?  hahah

I seems I ask something very stupid...

Thanks anyway Cédrick

2010/1/13 Cédrick Béler <[hidden email]>
something like (not sure though):
World color: Color white

2010/1/13 Mariano Martinez Peck <[hidden email]>
Hi:  I do something like this:

Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'

And the picture is set as background, but then I don't know how to remove it. I look for a while but I didn't find anything.

Thanks for the help,

Mariano

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



--
Cédrick

_______________________________________________
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



--
Cédrick


_______________________________________________
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: How can I remove a picture from background ?

Mariano Martinez Peck
Ok...I am lazy to open a new thread...My understandings of Morphic are not even nil.

I need to programatically open a workspace and set a size to it. For example:


    Workspace new
    acceptContents: 'This is the content';
    openLabel: 'This is a label'.
   
I saw the message extent:   but is in Morphs, and this is not morph.

I would like to do something like this:


    Workspace new
    acceptContents: 'This is the content';
    openLabel: 'This is a label';
    extent: 500 @ 400.


Any tips ?

And of course, if I can choose WHERE (x and y) would be greate also.

Thanks!

Mariano

2010/1/13 Gary Chambers <[hidden email]>
Well, still many loose ends around as we refactor, that's for sure!
As for understanding Morphic, there's so much that none can know all... hence trying to simplify with Pharo. Some good stuff, some bad and even when you think you know, there's always something that comes up ,either too easy or next to impossible...

Regards, Gary
----- Original Message -----
Sent: Wednesday, January 13, 2010 4:31 PM
Subject: Re: [Pharo-project] How can I remove a picture from background ?

2010/1/13 Gary Chambers <[hidden email]>
All about getting to know how Morphic works... or sometimes doesn't, as you explore further down the rabbit hole!

quite scaring actually :)

For instance, for background, I had a quick look at PasteUpMorph and there is backgroundMorph which might be more appropriate but I find no hooks...

Anyway... now I know I still don't want to understand morphic :)

 

Regards, Gary
----- Original Message -----
Sent: Wednesday, January 13, 2010 3:56 PM
Subject: Re: [Pharo-project] How can I remove a picture from background ?

hahahahha why everybody had the same idea and I didn't ?  hahah

I seems I ask something very stupid...

Thanks anyway Cédrick

2010/1/13 Cédrick Béler <[hidden email]>
something like (not sure though):
World color: Color white

2010/1/13 Mariano Martinez Peck <[hidden email]>
Hi:  I do something like this:

Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'

And the picture is set as background, but then I don't know how to remove it. I look for a while but I didn't find anything.

Thanks for the help,

Mariano

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



--
Cédrick

_______________________________________________
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



--
Cédrick


_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: How can I remove a picture from background ?

Igor Stasenko
2010/1/13 Mariano Martinez Peck <[hidden email]>:

> Ok...I am lazy to open a new thread...My understandings of Morphic are not
> even nil.
>
> I need to programatically open a workspace and set a size to it. For
> example:
>
>
>     Workspace new
>     acceptContents: 'This is the content';
>     openLabel: 'This is a label'.
>
> I saw the message extent:   but is in Morphs, and this is not morph.
>
> I would like to do something like this:
>
>
>     Workspace new
>     acceptContents: 'This is the content';
>     openLabel: 'This is a label';
>     extent: 500 @ 400.
>
>
> Any tips ?
>
> And of course, if I can choose WHERE (x and y) would be greate also.
>

Morph new openInWorld position: 100@100 ; width: 200; height: 500

> Thanks!
>
> Mariano
>
> 2010/1/13 Gary Chambers <[hidden email]>
>>
>> Well, still many loose ends around as we refactor, that's for sure!
>> As for understanding Morphic, there's so much that none can know all...
>> hence trying to simplify with Pharo. Some good stuff, some bad and even when
>> you think you know, there's always something that comes up ,either too easy
>> or next to impossible...
>> Regards, Gary
>>
>> ----- Original Message -----
>> From: Cédrick Béler
>> To: [hidden email]
>> Sent: Wednesday, January 13, 2010 4:31 PM
>> Subject: Re: [Pharo-project] How can I remove a picture from background ?
>> 2010/1/13 Gary Chambers <[hidden email]>
>>>
>>> All about getting to know how Morphic works... or sometimes doesn't, as
>>> you explore further down the rabbit hole!
>>
>> quite scaring actually :)
>> For instance, for background, I had a quick look at PasteUpMorph and there
>> is backgroundMorph which might be more appropriate but I find no hooks...
>> Anyway... now I know I still don't want to understand morphic :)
>>
>>>
>>> Regards, Gary
>>>
>>> ----- Original Message -----
>>> From: Mariano Martinez Peck
>>> To: [hidden email]
>>> Sent: Wednesday, January 13, 2010 3:56 PM
>>> Subject: Re: [Pharo-project] How can I remove a picture from background ?
>>> hahahahha why everybody had the same idea and I didn't ?  hahah
>>>
>>> I seems I ask something very stupid...
>>>
>>> Thanks anyway Cédrick
>>>
>>> 2010/1/13 Cédrick Béler <[hidden email]>
>>>>
>>>> something like (not sure though):
>>>> World color: Color white
>>>>
>>>> 2010/1/13 Mariano Martinez Peck <[hidden email]>
>>>>>
>>>>> Hi:  I do something like this:
>>>>>
>>>>> Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'
>>>>>
>>>>> And the picture is set as background, but then I don't know how to
>>>>> remove it. I look for a while but I didn't find anything.
>>>>>
>>>>> Thanks for the help,
>>>>>
>>>>> Mariano
>>>>>
>>>>> _______________________________________________
>>>>> Pharo-project mailing list
>>>>> [hidden email]
>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>>
>>>>
>>>> --
>>>> Cédrick
>>>>
>>>> _______________________________________________
>>>> 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
>>
>>
>>
>> --
>> Cédrick
>>
>> ________________________________
>>
>> _______________________________________________
>> 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
>



--
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
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: How can I remove a picture from background ?

Mariano Martinez Peck


On Wed, Jan 13, 2010 at 10:50 PM, Igor Stasenko <[hidden email]> wrote:
2010/1/13 Mariano Martinez Peck <[hidden email]>:
> Ok...I am lazy to open a new thread...My understandings of Morphic are not
> even nil.
>
> I need to programatically open a workspace and set a size to it. For
> example:
>
>
>     Workspace new
>     acceptContents: 'This is the content';
>     openLabel: 'This is a label'.
>
> I saw the message extent:   but is in Morphs, and this is not morph.
>
> I would like to do something like this:
>
>
>     Workspace new
>     acceptContents: 'This is the content';
>     openLabel: 'This is a label';
>     extent: 500 @ 400.
>
>
> Any tips ?
>
> And of course, if I can choose WHERE (x and y) would be greate also.
>

Morph new openInWorld position: 100@100 ; width: 200; height: 500



Thanks Igor. I am REALLY newbie. I want a workspace to do that, not a Morph. Workspace is not in the Morph hierarchy and thus, it does not understand that message. Maybe I can put a workspace inside that morph ?
 
> Thanks!
>
> Mariano
>
> 2010/1/13 Gary Chambers <[hidden email]>
>>
>> Well, still many loose ends around as we refactor, that's for sure!
>> As for understanding Morphic, there's so much that none can know all...
>> hence trying to simplify with Pharo. Some good stuff, some bad and even when
>> you think you know, there's always something that comes up ,either too easy
>> or next to impossible...
>> Regards, Gary
>>
>> ----- Original Message -----
>> From: Cédrick Béler
>> To: [hidden email]
>> Sent: Wednesday, January 13, 2010 4:31 PM
>> Subject: Re: [Pharo-project] How can I remove a picture from background ?
>> 2010/1/13 Gary Chambers <[hidden email]>
>>>
>>> All about getting to know how Morphic works... or sometimes doesn't, as
>>> you explore further down the rabbit hole!
>>
>> quite scaring actually :)
>> For instance, for background, I had a quick look at PasteUpMorph and there
>> is backgroundMorph which might be more appropriate but I find no hooks...
>> Anyway... now I know I still don't want to understand morphic :)
>>
>>>
>>> Regards, Gary
>>>
>>> ----- Original Message -----
>>> From: Mariano Martinez Peck
>>> To: [hidden email]
>>> Sent: Wednesday, January 13, 2010 3:56 PM
>>> Subject: Re: [Pharo-project] How can I remove a picture from background ?
>>> hahahahha why everybody had the same idea and I didn't ?  hahah
>>>
>>> I seems I ask something very stupid...
>>>
>>> Thanks anyway Cédrick
>>>
>>> 2010/1/13 Cédrick Béler <[hidden email]>
>>>>
>>>> something like (not sure though):
>>>> World color: Color white
>>>>
>>>> 2010/1/13 Mariano Martinez Peck <[hidden email]>
>>>>>
>>>>> Hi:  I do something like this:
>>>>>
>>>>> Form setBackgroundFromImageFileNamed: '/Users/mariano/Pharo/body.png'
>>>>>
>>>>> And the picture is set as background, but then I don't know how to
>>>>> remove it. I look for a while but I didn't find anything.
>>>>>
>>>>> Thanks for the help,
>>>>>
>>>>> Mariano
>>>>>
>>>>> _______________________________________________
>>>>> Pharo-project mailing list
>>>>> [hidden email]
>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>>
>>>>
>>>> --
>>>> Cédrick
>>>>
>>>> _______________________________________________
>>>> 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
>>
>>
>>
>> --
>> Cédrick
>>
>> ________________________________
>>
>> _______________________________________________
>> 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
>



--
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
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: How can I remove a picture from background ?

Henrik Sperre Johansen
On 13.01.2010 22:56, Mariano Martinez Peck wrote:


On Wed, Jan 13, 2010 at 10:50 PM, Igor Stasenko <[hidden email]> wrote:
2010/1/13 Mariano Martinez Peck <[hidden email]>:
> Ok...I am lazy to open a new thread...My understandings of Morphic are not
> even nil.
>
> I need to programatically open a workspace and set a size to it. For
> example:
>
>
>     Workspace new
>     acceptContents: 'This is the content';
>     openLabel: 'This is a label'.
>
> I saw the message extent:   but is in Morphs, and this is not morph.
>
> I would like to do something like this:
>
>
>     Workspace new
>     acceptContents: 'This is the content';
>     openLabel: 'This is a label';
>     extent: 500 @ 400.
>
>
> Any tips ?
>
> And of course, if I can choose WHERE (x and y) would be greate also.
>

Morph new openInWorld position: 100@100 ; width: 200; height: 500



Thanks Igor. I am REALLY newbie. I want a workspace to do that, not a Morph. Workspace is not in the Morph hierarchy and thus, it does not understand that message. Maybe I can put a workspace inside that morph ?

Not to mention, position: moves by a delta (don't ask me why), so that would derive from whatever position is decided by openInWorld.
I imagine this is not what you want.
Try:
(Workspace new
    acceptContents: 'This is the content';
   embeddedInMorphicWindowLabeled: 'This is a label')
    position: 50@50;
    extent: 500 @ 400;
    openAsIs

Cheers,
Henry


_______________________________________________
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: How can I remove a picture from background ?

Mariano Martinez Peck


2010/1/13 Henrik Sperre Johansen <[hidden email]>
On 13.01.2010 22:56, Mariano Martinez Peck wrote:


On Wed, Jan 13, 2010 at 10:50 PM, Igor Stasenko <[hidden email]> wrote:
2010/1/13 Mariano Martinez Peck <[hidden email]>:
> Ok...I am lazy to open a new thread...My understandings of Morphic are not
> even nil.
>
> I need to programatically open a workspace and set a size to it. For
> example:
>
>
>     Workspace new
>     acceptContents: 'This is the content';
>     openLabel: 'This is a label'.
>
> I saw the message extent:   but is in Morphs, and this is not morph.
>
> I would like to do something like this:
>
>
>     Workspace new
>     acceptContents: 'This is the content';
>     openLabel: 'This is a label';
>     extent: 500 @ 400.
>
>
> Any tips ?
>
> And of course, if I can choose WHERE (x and y) would be greate also.
>

Morph new openInWorld position: 100@100 ; width: 200; height: 500



Thanks Igor. I am REALLY newbie. I want a workspace to do that, not a Morph. Workspace is not in the Morph hierarchy and thus, it does not understand that message. Maybe I can put a workspace inside that morph ?

Not to mention, position: moves by a delta (don't ask me why), so that would derive from whatever position is decided by openInWorld.
I imagine this is not what you want.
Try:
(Workspace new

    acceptContents: 'This is the content';
   embeddedInMorphicWindowLabeled: 'This is a label')
    position: 50@50;
    extent: 500 @ 400;
    openAsIs


Henry: I hope you never leave the Pharo community :)

Thank you very much. That did the trick!!!

Now...a helpmer method for this in Workspace!
 
Cheers,
Henry


_______________________________________________
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: How can I remove a picture from background ?

Stan Shepherd
In reply to this post by Mariano Martinez Peck
Mariano Martinez Peck wrote
On Wed, Jan 13, 2010 at 10:50 PM, Igor Stasenko <siguctua@gmail.com> wrote:

> 2010/1/13 Mariano Martinez Peck <marianopeck@gmail.com>:
> > Ok...I am lazy to open a new thread...My understandings of Morphic are
> not
> > even nil.
> >
> > I need to programatically open a workspace and set a size to it. For
> > example:
> >
> >
> >     Workspace new
> >     acceptContents: 'This is the content';
> >     openLabel: 'This is a label'.
> >
> > I saw the message extent:   but is in Morphs, and this is not morph.
> >
> > I would like to do something like this:
> >
> >
> >     Workspace new
> >     acceptContents: 'This is the content';
> >     openLabel: 'This is a label';
> >     extent: 500 @ 400.
> >
> >
> > Any tips ?
> >
> > And of course, if I can choose WHERE (x and y) would be greate also.
> >
>
> Morph new openInWorld position: 100@100 ; width: 200; height: 500
>
>

Thanks Igor. I am REALLY newbie. I want a workspace to do that, not a Morph.
Workspace is not in the Morph hierarchy and thus, it does not understand
that message. Maybe I can put a workspace inside that morph ?

(Workspace new embeddedInMorphicWindowLabeled: 'Welcome to Pharo') position: 100@100 ; width: 200; height: 500; openInWorld

:)
Reply | Threaded
Open this post in threaded view
|

Re: How can I remove a picture from background ?

Henrik Sperre Johansen
On 13.01.2010 23:19, Stan Shepherd wrote:
>    
> (Workspace new embeddedInMorphicWindowLabeled: 'Welcome to Pharo')
> position:
> 100@100 ; width: 200; height: 500; openInWorld
>
> :)
>
>    
Try evaluating that twice in a row and see if your Workspace opens at
the same spot ;)

Cheers,
Henry

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