Drawing graphics with OB

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

Drawing graphics with OB

Alexandre Bergel-4
Hi David and others,

Each OBNode understand the message definition. In the first version of  
OB, this definition method is supposed to return an instance of  
OBDefinition or one of its subclass.
I saw a way to have a graphical object instead of the text pane. What  
is the trick to achieve this?

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






_______________________________________________
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: Drawing graphics with OB

David Röthlisberger-2
Hi Alex,

> Each OBNode understand the message definition. In the first version of  
> OB, this definition method is supposed to return an instance of  
> OBDefinition or one of its subclass.
> I saw a way to have a graphical object instead of the text pane. What  
> is the trick to achieve this?

What I did is to use OBClosableDefinitionPanel that has an #exchangeContentWith:
aMorph method where you can pass any morph that gets displayed instead of the text
that is usually there.
We could extend that to be able to also use "visualization definitions" directly in
OBNode, but I haven't yet done this. The visualizations I added get displayed on the
execution of a command, by default there is always a text definition shown that can
get exchanged with a visualization at runtime.

David

_______________________________________________
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: Drawing graphics with OB

Alexandre Bergel
Thanks David,
I will dive into it

Cheers,
Alexandre


On 19 Mar 2009, at 10:14, David Röthlisberger wrote:

> Hi Alex,
>
>> Each OBNode understand the message definition. In the first version  
>> of
>> OB, this definition method is supposed to return an instance of
>> OBDefinition or one of its subclass.
>> I saw a way to have a graphical object instead of the text pane. What
>> is the trick to achieve this?
>
> What I did is to use OBClosableDefinitionPanel that has an  
> #exchangeContentWith:
> aMorph method where you can pass any morph that gets displayed  
> instead of the text
> that is usually there.
> We could extend that to be able to also use "visualization  
> definitions" directly in
> OBNode, but I haven't yet done this. The visualizations I added get  
> displayed on the
> execution of a command, by default there is always a text definition  
> shown that can
> get exchanged with a visualization at runtime.
>
> David
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

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






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