pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

[Roassal - Spec ] How can I trigger the refresh of an inspector pane

SD
stephane ducasse
Sun, Sep 25, 2022 2:01 PM

Hi

I have a roassal pane in my inspector to display quadtrees.
I added the possibility to add a point to the inspected quadtree.
But the pane does not refresh
I have to do it by hand
and I would like to know how I can force the inspector to refresh

Hi I have a roassal pane in my inspector to display quadtrees. I added the possibility to add a point to the inspected quadtree. But the pane does not refresh I have to do it by hand and I would like to know how I can force the inspector to refresh
PM
Pierre Misse Chanabier
Sun, Sep 25, 2022 5:48 PM

Milton will probably correct me tomorrow, but in the meantime.
You need to send the message #refresh to the RoassalPresenter.
This will trigger the "script" that should have been defined.
(At least that's how it has worked for me).

For example:

  • my initialization:

memorySpace := self instantiate: SpRoassalPresenter.
memorySpace script: [ :canvas | "My creation/refresh code" ].

  • my update:

memorySpace refresh

Pierre

On 9/25/2022 4:01 PM, stephane ducasse wrote:

Hi

I have a roassal pane in my inspector to display quadtrees.
I added the possibility to add a point to the inspected quadtree.
But the pane does not refresh
I have to do it by hand
and I would like to know how I can force the inspector to refresh

Milton will probably correct me tomorrow, but in the meantime. You need to send the message #refresh to the RoassalPresenter. This will trigger the "script" that should have been defined. (At least that's how it has worked for me). For example: - my initialization: memorySpace := self instantiate: SpRoassalPresenter. memorySpace script: [ :canvas | "My creation/refresh code" ]. - my update: memorySpace refresh Pierre On 9/25/2022 4:01 PM, stephane ducasse wrote: > Hi > > I have a roassal pane in my inspector to display quadtrees. > I added the possibility to add a point to the inspected quadtree. > But the pane does not refresh > I have to do it by hand > and I would like to know how I can force the inspector to refresh >