By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

Developing a simple GUI

P: n/a
Hi,
I have a C program, and i looking to develop a simple GUI for this
program. i want to use something that is platform independent
(portable) and easy to learn.
Any suggestion is highly appreciated.
Shamli
Nov 13 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
>I have a C program, and i looking to develop a simple GUI for this
program. i want to use something that is platform independent
(portable) and easy to learn.
Any suggestion is highly appreciated.


If you want a *PORTABLE GUI*, you're pretty much limited to "ASCII
art". (or whatever character set your implementation uses, but I
don't recall hearing the terms "EBCDIC art" or "BAUDOT art" or
"Latin-1 art" used).

The "ncurses" or "curses" packages (found on but not limited to
UNIX; I believe there is an MS-DOS implementation, and telnet /
terminal emulator windows under X or Microsoft Windows that emulate
a known terminal type are also usable) are not portable (but still
do better than hard-coding for one terminal type), and depend on
you telling it the characteristics of the terminal you are using
for things like cursor positioning and clearing the screen (something
which doesn't work very well on printing terminals).

Oh, yes, portable C doesn't do meeces nor character-by-character
(not waiting for ENTER/RETURN) I/O.

Gordon L. Burditt
Nov 13 '05 #2

P: n/a
dfg
Shamli wrote:
Hi,
I have a C program, and i looking to develop a simple GUI for this
program. i want to use something that is platform independent
(portable) and easy to learn.
Any suggestion is highly appreciated.
Shamli


Start with a book. Try "The elements of user interface design".
Platform independant GUI's in C are ummm... I don't want to say
impossible but...

Nov 13 '05 #3

P: n/a
nrk
Shamli wrote:
Hi,
I have a C program, and i looking to develop a simple GUI for this
program. i want to use something that is platform independent
(portable) and easy to learn.
Any suggestion is highly appreciated.
Shamli


Unfortunately, this cannot be done portably using standard C.
<OT>
Tcl/Tk is a good option for a portable GUI, and definitely qualifies as easy
to learn in my books. You have interpreters for at least two widely used
platforms (Windows and most *NIX flavors), plus it is relatively easy to
integrate with C code.
</OT>

-nrk.
Nov 13 '05 #4

P: n/a

"Shamli" <as*****@hotmail.com> schrieb im Newsbeitrag
news:5b**************************@posting.google.c om...
Hi,
I have a C program, and i looking to develop a simple GUI for this
program. i want to use something that is platform independent
(portable) and easy to learn.
Any suggestion is highly appreciated.
Shamli


You can use libraries like ZINC, StarView, wxWindows, Tk (as in Tcl/Tk or
Perl/Tk), Qt, GTK, and so on.

Here's a list of some known GUI libraries:
http://www.geocities.com/SiliconVall...4/guitool.html

Nov 13 '05 #5

P: n/a
as*****@hotmail.com (Shamli) wrote in message news:<5b**************************@posting.google. com>...
Hi,
I have a C program, and i looking to develop a simple GUI for this
program. i want to use something that is platform independent
(portable) and easy to learn.


I think, you're looking for wxWindows ( http://www.wxwindows.org/ )

--
"If there is a God, he must be a sadist!"
http://guideme.itgo.com/atozofc/ - "A to Z of C" Project
Email: rrjanbiah-at-Y!com
Nov 13 '05 #6

P: n/a
"R. Rajesh Jeba Anbiah" wrote:
I think, you're looking for wxWindows ( http://www.wxwindows.org/ )


Eeehm, wxWindows is afaik written in C++. I don't think it will help him in
C programs.

Have a good day,

Christian
Nov 13 '05 #7

P: n/a
Thank you all for the responses.
Christian you are right about wxwindows it is for C++, What about
GLUI.
I am simply looking for a library where i can call within my code.
my GUI may have buttons, checkboxes, text boxes and a picture box
where i do simple graphics like points, lines and circiles.

Cheers,

"Christian Waluga" <cw*****@gmx.de> wrote in message news:<bq*************@news.t-online.com>...
"R. Rajesh Jeba Anbiah" wrote:
I think, you're looking for wxWindows ( http://www.wxwindows.org/ )


Eeehm, wxWindows is afaik written in C++. I don't think it will help him in
C programs.

Have a good day,

Christian

Nov 14 '05 #8

P: n/a
think you for the list,
it is really helpful.

"Ekkehard Morgenstern" <ek******************@onlinehome.de> wrote in message news:<bq**********@online.de>...
"Shamli" <as*****@hotmail.com> schrieb im Newsbeitrag
news:5b**************************@posting.google.c om...
Hi,
I have a C program, and i looking to develop a simple GUI for this
program. i want to use something that is platform independent
(portable) and easy to learn.
Any suggestion is highly appreciated.
Shamli


You can use libraries like ZINC, StarView, wxWindows, Tk (as in Tcl/Tk or
Perl/Tk), Qt, GTK, and so on.

Here's a list of some known GUI libraries:
http://www.geocities.com/SiliconVall...4/guitool.html

Nov 14 '05 #9

P: n/a
as*****@hotmail.com (Shamli) wrote in message news:<5b**************************@posting.google. com>...
Thank you all for the responses.
Christian you are right about wxwindows it is for C++, What about
GLUI.
I am simply looking for a library where i can call within my code.
my GUI may have buttons, checkboxes, text boxes and a picture box
where i do simple graphics like points, lines and circiles.


You may find the Leonardo C Library useful... Although in its infancy
compared to wxWindows or Qt (great C++ tools that have been around for
a decade), the Leonardo Library makes it fairly easy to create simple
GUI apps with basic widgets and 2D graphics (OpenGL support coming
soon).

Check out: http://www.leonardo-vm.org/ll.shtml

Cheers, Camil
Nov 14 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.