Connecting Tech Pros Worldwide Forums | Help | Site Map

Control the appearance of a launched application

Lafoopsie
Guest
 
Posts: n/a
#1: Jul 19 '05
Hi!

In my C++ program, I can launch an external program, for example:

#include <cstdlib>

int main()
{
std::system("appletviewer");
}

But is there a way to control the appearance of that application? For
example, I could say: open this application, let it appear on 300 pixels
from the left of the screen, 200 pixels from the top of the screen, and
don't show any borders.

Is this possible? Maybe with some X functions?


Your help would be great!


Greetz,
Klaas



Josh Sebastian
Guest
 
Posts: n/a
#2: Jul 19 '05

re: Control the appearance of a launched application


On Mon, 13 Oct 2003 17:52:21 +0200, Lafoopsie wrote:
[color=blue]
> Hi!
>
> In my C++ program, I can launch an external program, for example:
>
> #include <cstdlib>
>
> int main()
> {
> std::system("appletviewer");
> }
>
> But is there a way to control the appearance of that application? For
> example, I could say: open this application, let it appear on 300 pixels
> from the left of the screen, 200 pixels from the top of the screen, and
> don't show any borders.
>
> Is this possible? Maybe with some X functions?[/color]

Maybe. Try asking in a group concerned with your system. Don't most X apps
take a -geometry command-line parameter?

Josh
Moonlit
Guest
 
Posts: n/a
#3: Jul 19 '05

re: Control the appearance of a launched application


Hi,

Usually you can give X-Parameters on the command line and/or a
configuration file. X-Application are supposed to first forward these
commands to some function that does the processing of them (or of course
handle it themselves).

Do

man -k Xserver

and/or lookup the documentation for appletviewer on the www.javasoft.com
site.

Regards, Ron AF Greve.


Look up
"Lafoopsie" <klaas.geldof@student.kuleuven.ac.be> wrote in message
news:1066060336.573588@seven.kulnet.kuleuven.ac.be ...[color=blue]
> Hi!
>
> In my C++ program, I can launch an external program, for example:
>
> #include <cstdlib>
>
> int main()
> {
> std::system("appletviewer");
> }
>
> But is there a way to control the appearance of that application? For
> example, I could say: open this application, let it appear on 300 pixels
> from the left of the screen, 200 pixels from the top of the screen, and
> don't show any borders.
>
> Is this possible? Maybe with some X functions?
>
>
> Your help would be great!
>
>
> Greetz,
> Klaas
>
>[/color]


Closed Thread