Re: APP-Manager question

Pieter Grimmerink <[email protected]> Mon, 26 Apr 2004 13:22:37 +0200
Newsgroups gmane.comp.video.picogui.devel
Message-ID <[email protected]>
On Monday 26 April 2004 11:46, Groeting Claus ICM Bocholt wrote:
> Hello PGUI-Developer/User !
>
> I have some general question concerning application management.
> I saw in the configuration, that I have several options regarding
> App-management, but I don't
> know exactly the difference between these options:
>
> - Managed Rootless app manager
> - Panel app manager
> - Null app manager
>
> Can somebody explain the differences of these options ?

I suggest you try them all, and see what's the difference.
=46rom what I remember, correct me if I'm wrong:

=2Dmanaged rootless: apps can be selected/moved independently

=2Dpanel: apps are either minimised or maximised, each app has its panel wi=
th=20
buttons, by clicking them you can minimise / maximise the application widge=
t.

=2Dnull: just that, no application manager (last created app is on top)

> Currently I have a scenario, where I have several apps in one client
> registered at the pgserver using
> pgRegisterApp(PG_APP_NORMAL, "MyApp_1",0)
> pgRegisterApp(PG_APP_NORMAL, "MyApp_2",0)
> pgRegisterApp(PG_APP_NORMAL, "MyApp_3",0)
>
> When I want to show for instance MyApp_2 instead of MyApp_1 I use
>
> pgSetWidget(pgFindWidget"MyApp_1",PG_WP_SIZE, 0,0);
> pgSetWidget(pgFindWidget"MyApp_2",PG_WP_SIZE, PG_WP_ALL, 0);

That's what I do as well

> I there any possibility to bring an application to the top regardless,
> which APP is currently on the screen ?

No, I think this is the best way.
=46or my specific requirement, I created a prio-based app manager to do the=
 job.
It keeps track of the prios of all applications, and places the highest pri=
o=20
on top. Of course it has to know the application that was previously-on-top=
,=20
to change it's size to 0.
In my situation, applications do not know of eachothers priorities, they ca=
n't=20
even decide whether they should be on top or not.

> Or is there a better way to navigate between several Apps ?

I think selecting applications is an application manager job. If there isn'=
t=20
one that does what you want, create your own.

> How can I toggle between Applications, when there are more than one Client
> ?

The application manager still works, regardless of the number of clients.
If you implement the selection of apps as an application manager, you shoul=
d=20
be fine.

Regards,

Pieter



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297