Hi,

Sorry for not replying earlier. Thanks Nicolai for picking this one up. I missed the initial mail.

The initialExtent does not make sense for presentation, and anyway, you would not want to change an inspector when you are inside a flow. If I understand correctly, Clement would want that when he spawns an inspector window on a new object, to set the window size to something else.

The idea of having a gtInitialWindowExtent is intriguing, but it won't really work. The problem is that an object can have associated presentations in several external packages, so defining the initial extent in one of them might not work for the other ones.

But, I was more thinking of a different mechanism that remembers the size of the inspector every time you change it, and have the next window take that size into account. I am even considering having this size cached by the class of the object (not sure yet if that makes sense). What do you think?

Cheers,
Doru


On Mon, Nov 24, 2014 at 12:57 PM, Nicolai Hess <nicolaihess@web.de> wrote:
2014-11-12 15:14 GMT+01:00 Clément Bera <bera.clement@gmail.com>:
Hello,

I would like for specific objects to change the default window size of the glamour inspector (Basically a bigger window will be opened by default for these objects). This is because I extended my inspectors to provide roassal visualization that are quite large.

How can I do it ?

For example I would like something like that:

MyObject>>#gtInitialWindowExtent
    < gtInitialWindowExtent >
    ^ 800@1000

Clement



I think this is not doable.
You can change the method with the inspector pragma to be called with the context (inspector instance)

gtInspectorItemsIn: composite inContext: aGTInspector
    <gtInspectorPresentationOrder: 30>

instead of

gtInspectorItemsIn: composite
    <gtInspectorPresentationOrder: 30>

this way you have access to the glamour inspector. Unfortunately it does not have any
window extent property.

Maybe we can move the initialExtent property from GLMBrowser up to GLMPresentation?
That way it would be accessible and usable for this aGTInspector argument.



Nicolai






--
www.tudorgirba.com

"Every thing has its own flow"