You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Sandro Martini <sa...@gmail.com> on 2009/10/02 18:36:59 UTC

Fwd: Specifying Main Window Size in Desktop App

Hi,
a quick thing on this:

> I'm just getting familiar with Pivot. I'm having trouble setting a main frame size when running a test desktop app.

> I can size the content to it's preferred size or maximize it to the frame, but I'm having trouble sizing the frame itself.

> I've tried [width="160" height="80"] in the window tag of the wtkx file.
No Joy.

I don't remember, but there is a reason why these parameters are not
usable also from the main WTKX file ?
In some cases could be useful to specify them there, also for main
Title, and other main window parameters, but in this case all of them
optional here.

Real use case:
a Desktop application that always have to run at a certain dimension
(and maybe position), but be default, without relying on command-line
arguments ... and without hardcoding them inside the code.
Hardcoding in wtkx files is always hardcoding, but (like in
configuration files or in web pages or css styles) could be more
maintainable.

What do you think ?

Thanks,
Sandro

Re: Specifying Main Window Size in Desktop App

Posted by Sandro Martini <sa...@gmail.com>.
Hi Todd,
> This sounds like a use case for an executable jar.
Yes, this could be another use case, and better than mine :-) ...

Greg (and others), what do you think ?

Bye

Re: Specifying Main Window Size in Desktop App

Posted by Todd Volkert <tv...@gmail.com>.
This sounds like a use case for an executable jar.

On Fri, Oct 2, 2009 at 12:36 PM, Sandro Martini <sa...@gmail.com>wrote:

> Hi,
> a quick thing on this:
>
> > I'm just getting familiar with Pivot. I'm having trouble setting a main
> frame size when running a test desktop app.
>
> > I can size the content to it's preferred size or maximize it to the
> frame, but I'm having trouble sizing the frame itself.
>
> > I've tried [width="160" height="80"] in the window tag of the wtkx file.
> No Joy.
>
> I don't remember, but there is a reason why these parameters are not
> usable also from the main WTKX file ?
> In some cases could be useful to specify them there, also for main
> Title, and other main window parameters, but in this case all of them
> optional here.
>
> Real use case:
> a Desktop application that always have to run at a certain dimension
> (and maybe position), but be default, without relying on command-line
> arguments ... and without hardcoding them inside the code.
> Hardcoding in wtkx files is always hardcoding, but (like in
> configuration files or in web pages or css styles) could be more
> maintainable.
>
> What do you think ?
>
> Thanks,
> Sandro
>