Unix Programming - Info window

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2004 > Info window





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Info window
Eva Karlsson CH (AL/EAB)

2004-01-23, 4:56 pm

How can I write simple c-code to
do a pop-up window with some information
text in a Sun X environment?

/Eva
Chuck Dillon

2004-01-23, 4:56 pm

Eva Karlsson CH (AL/EAB) wrote:
quote:

> How can I write simple c-code to
> do a pop-up window with some information
> text in a Sun X environment?
>
> /Eva



Except for very trivial cases it's not possible to do "a little X". So
tread carefully.

How difficult it is depends on what you mean by "pop-up window with
some info...". How much information? Does the window have to have
controls (e.g. buttons) on it? Does it have to scroll large amounts of
text? What makes it go away?

Could you do what you want by calling an existing X application to
display the info? For example by calling up an xterm.

The best place to pursue X development is in the groups comp.windows.x.*

-- ced

--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.

Chuck Dillon

2004-01-23, 4:56 pm

Eva Karlsson CH (AL/EAB) wrote:
quote:

> How can I write simple c-code to
> do a pop-up window with some information
> text in a Sun X environment?
>
> /Eva



Except for very trivial cases it's not possible to do "a little X". So
tread carefully.

How difficult it is depends on what you mean by "pop-up window with
some info...". How much information? Does the window have to have
controls (e.g. buttons) on it? Does it have to scroll large amounts of
text? What makes it go away?

Could you do what you want by calling an existing X application to
display the info? For example by calling up an xterm.

The best place to pursue X development is in the groups comp.windows.x.*

-- ced

--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.

Stephane CHAZELAS

2004-01-23, 4:56 pm

2003/11/19, 13:18(+01), Eva Karlsson CH (AL/EAB):
quote:

> How can I write simple c-code to
> do a pop-up window with some information
> text in a Sun X environment?



system("xmessage 'some text'");

is quite an easy way.

--
Stéphane ["Stephane.Chazelas" at "free.fr"]
Stephane CHAZELAS

2004-01-23, 4:56 pm

2003/11/19, 13:18(+01), Eva Karlsson CH (AL/EAB):
quote:

> How can I write simple c-code to
> do a pop-up window with some information
> text in a Sun X environment?



system("xmessage 'some text'");

is quite an easy way.

--
Stéphane ["Stephane.Chazelas" at "free.fr"]
Chuck Dillon

2004-01-23, 4:57 pm

Stephane CHAZELAS wrote:
quote:

> 2003/11/19, 13:18(+01), Eva Karlsson CH (AL/EAB):
>
>
>
> system("xmessage 'some text'");
>
> is quite an easy way.
>



Solaris doesn't come with XFree86 not it's xmessage client AFAIK.

-- ced

--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.

Chuck Dillon

2004-01-23, 4:57 pm

Stephane CHAZELAS wrote:
quote:

> 2003/11/19, 13:18(+01), Eva Karlsson CH (AL/EAB):
>
>
>
> system("xmessage 'some text'");
>
> is quite an easy way.
>



Solaris doesn't come with XFree86 not it's xmessage client AFAIK.

-- ced

--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.

Mohun Biswas

2004-01-23, 4:57 pm

Chuck Dillon wrote:
quote:

> Solaris doesn't come with XFree86 nor it's xmessage client AFAIK.



I tend to use xterm -e, e.g.:

xterm -e sh -c "cat /etc/motd; read junk"

Though there may be a cleaner way.

MB

Mohun Biswas

2004-01-23, 4:57 pm

Chuck Dillon wrote:
quote:

> Solaris doesn't come with XFree86 nor it's xmessage client AFAIK.



I tend to use xterm -e, e.g.:

xterm -e sh -c "cat /etc/motd; read junk"

Though there may be a cleaner way.

MB

Stephane CHAZELAS

2004-01-23, 4:57 pm

2003/11/20, 08:28(-06), Chuck Dillon:
[...]
quote:

[...][QUOTE][color=darkred]
>
> Solaris doesn't come with XFree86 not it's xmessage client AFAIK.



I don't have access to a Solaris system, but xmessage is
an X utility from the X consortium, even if it's an
"unsupported" one, not specifically a XFree86 one.
http://ftp.x.org/pub/unsupported/programs/xmessage/

--
Stéphane ["Stephane.Chazelas" at "free.fr"]
Stephane CHAZELAS

2004-01-23, 4:57 pm

2003/11/20, 08:28(-06), Chuck Dillon:
[...]
quote:

[...][QUOTE][color=darkred]
>
> Solaris doesn't come with XFree86 not it's xmessage client AFAIK.



I don't have access to a Solaris system, but xmessage is
an X utility from the X consortium, even if it's an
"unsupported" one, not specifically a XFree86 one.
http://ftp.x.org/pub/unsupported/programs/xmessage/

--
Stéphane ["Stephane.Chazelas" at "free.fr"]
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com