View Composer sizing increment

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

View Composer sizing increment

Shaping-3
How do I change the minimum default size change in the View composer?  It
seems to be about three pixels now.


Shaping


Reply | Threaded
Open this post in threaded view
|

Re: View Composer sizing increment

Chris Uppal-3
Shaping wrote:

> How do I change the minimum default size change in the View composer?

It looks as if it's hard-wired at 5 by ViewComposer>>defaultGridResolution.
You could customise that in any of several ways:

1) Hack that method.

2) Create a trivial subclass of ViewComposer which overrides that method and
tell the system to use your subclass instead of the default VC (the
#viewComposerClass option under "Development System" in the User Preferences),

3) Hook the #viewOpened: event which is trigered off the ViewComposer class,
and send #grid: to the new instance.

(I know that (1) is by far the simplest, but I thought I'd mention that
other -- more structured -- options exist, which may not be so obvious.)

    -- chris


Reply | Threaded
Open this post in threaded view
|

Re: View Composer sizing increment

Shaping-3
Chris Uppal" <[hidden email]> wrote in message
news:42075a52$1$38046$[hidden email]...

> Shaping wrote:
>
>> How do I change the minimum default size change in the View composer?
>
> It looks as if it's hard-wired at 5 by
> ViewComposer>>defaultGridResolution.
> You could customise that in any of several ways:
>
> 1) Hack that method.
>
> 2) Create a trivial subclass of ViewComposer which overrides that method
> and
> tell the system to use your subclass instead of the default VC (the
> #viewComposerClass option under "Development System" in the User
> Preferences),
>
> 3) Hook the #viewOpened: event which is trigered off the ViewComposer
> class,
> and send #grid: to the new instance.
>
> (I know that (1) is by far the simplest, but I thought I'd mention that
> other -- more structured -- options exist, which may not be so obvious.)
>

Logical suggestions, but why do we not simply parameterize this value (class
side) and include it in User Preferences?

Shaping


Reply | Threaded
Open this post in threaded view
|

Re: View Composer sizing increment

Chris Uppal-3
Shaping wrote:

> Logical suggestions, but why do we not simply parameterize this value
> (class side) and include it in User Preferences?

Are you asking me or OA ?

If me, then I have no idea.  If you want to create your own VC with that
parameter exposed, then it would only be the work of a couple of minutes.

But it seems like a fair suggestion / enhancement request for OA.

    -- chris


Reply | Threaded
Open this post in threaded view
|

Re: View Composer sizing increment

Andy Bower-3
> > Logical suggestions, but why do we not simply parameterize this
> > value (class side) and include it in User Preferences?
>
> Are you asking me or OA ?
>
> If me, then I have no idea.  If you want to create your own VC with
> that parameter exposed, then it would only be the work of a couple of
> minutes.
>
> But it seems like a fair suggestion / enhancement request for OA.

Ok, added as enhancement request #1653.

Best regards

Andy Bower
Dolphin Support
www.object-arts.com