| Author |
Message |
frankly
Stray Dog

Joined: 20 Mar 2003 Posts: 41
|
Posted:
Wed Apr 02, 2003 10:44 am Post subject: User Interface in UNIX |
|
Hi ppl,
I am writing the codings in C and I want to know how to make an user interface in UNIX system. I am not quite sure what can be done actually. I just want to make a window-like frame to display some outputs from my programs. I have a few programs running simultaneously and they each talk to one another. So it is like a chatroom or many client-server at the same time. Just like when I have a frame or window for program A and it sends a message to program B which has its own frame or window, and then that particular frame or window will display what is received from program A.
Kinda messy hehe, so just let me know if u don't understand what I'm asking for. Coz actually I don't really know what can be done for user interface in UNIX.
Thanz really!! |
_________________ fRaNkLy i'm FrAnKy
|
|
|
|
|
username
Stray Dog
Joined: 02 Apr 2003 Posts: 2
|
Posted:
Wed Apr 02, 2003 12:18 pm Post subject: |
|
Check out www.wxwindows.org
It's a GUI toolkit that's cross platform. There's a few flavors available for Unix OSes, one that uses GTK, one that uses Motif/X11 (I think that means it doesn't depend on desktop environments, run from X).
wxWindows also comes with a lot of other useful classes such as socket classes to create networking programs. |
|
|
|
|
|
|
frankly
Stray Dog

Joined: 20 Mar 2003 Posts: 41
|
Posted:
Wed Apr 02, 2003 6:02 pm Post subject: |
|
o hey thanz really
i just went here an downloaded the software...um....think I have to spend some time to learn how to use it....hehe |
_________________ fRaNkLy i'm FrAnKy
|
|
|
|
|
hohlecow
Tail-Wagger


Joined: 17 May 2002 Posts: 2151
Location: hungary for turkey and chile
|
Posted:
Fri Apr 04, 2003 5:57 am Post subject: |
|
if you've read my early posts, i like using Qt.
it's cross platform, so anything you write for X should also compile and work on windows, mac, or even some embedded systems.
it's completely object oriented.
it's pretty easy to use for simple apps, but powerful enough to create very complex GUIs. KDE, Opera, and some Adobe program all use Qt.
you can get up to version 3 for free for Linux, and up to version 2.3 non-commercial free for windows. check out www.trolltech.com. |
_________________ give as much as you can, and take nothing
sometimes i think if zombies were attacking us, liberals would be fighting for thier rights, "they eat brains for fuel, it's part of who they are" or "we can't descriminate against them, that's just the way they were reanimated."
trying it again: POTD (picture of the day)
|
|
|
|
|
frankly
Stray Dog

Joined: 20 Mar 2003 Posts: 41
|
Posted:
Fri Apr 04, 2003 6:01 am Post subject: |
|
wo cool thanz haha
I'm searching on google to get a place to download thaht QT hehe
[edit] o...that non commercial windows version requires VC++?
but I'm using DEV C++.... |
_________________ fRaNkLy i'm FrAnKy
|
|
|
|
|
hohlecow
Tail-Wagger


Joined: 17 May 2002 Posts: 2151
Location: hungary for turkey and chile
|
Posted:
Fri Apr 04, 2003 6:53 am Post subject: |
|
i've never used dev c++, but i am using vs.net, and i did have a pickle of a time getting it working (2.3 was built and distributed for vc6 on the windows side of things). as long as you let the linker know where the libraries are, and have the correct paths set up for the dlls, i don't see why dev c++ wouldn't work too. i might be ignorant of some other issue, i guess. |
_________________ give as much as you can, and take nothing
sometimes i think if zombies were attacking us, liberals would be fighting for thier rights, "they eat brains for fuel, it's part of who they are" or "we can't descriminate against them, that's just the way they were reanimated."
trying it again: POTD (picture of the day)
|
|
|
|
|
frankly
Stray Dog

Joined: 20 Mar 2003 Posts: 41
|
Posted:
Fri Apr 04, 2003 7:33 am Post subject: |
|
o well think I'll try that out then haha
thanz |
_________________ fRaNkLy i'm FrAnKy
|
|
|
|
|
frankly
Stray Dog

Joined: 20 Mar 2003 Posts: 41
|
Posted:
Sat Apr 05, 2003 12:20 am Post subject: |
|
o sorry guyz
just have a little follow up question
so for both of the suggested toolkits, QT and wxwindows, can they make some child windows inside the main window? I mean I'll have two programs running at the same time and I want a main window to include two child windows, each displaying the outputs of the programs
is that possible?
also for wxwindows...I've read some of the tutorials and seems like it didn't really say it supports windows XP...so is it ok? Coz I m using XP
thanz !! |
_________________ fRaNkLy i'm FrAnKy
|
|
|
|
|
hohlecow
Tail-Wagger


Joined: 17 May 2002 Posts: 2151
Location: hungary for turkey and chile
|
Posted:
Sat Apr 05, 2003 11:42 am Post subject: |
|
oh, yeah. multiple document style interfaces are not too difficult to do. i'm pretty sure there are some examples that come with the download, inside or outside a main window. |
_________________ give as much as you can, and take nothing
sometimes i think if zombies were attacking us, liberals would be fighting for thier rights, "they eat brains for fuel, it's part of who they are" or "we can't descriminate against them, that's just the way they were reanimated."
trying it again: POTD (picture of the day)
|
|
|
|
|
frankly
Stray Dog

Joined: 20 Mar 2003 Posts: 41
|
Posted:
Sat Apr 05, 2003 6:49 pm Post subject: |
|
o cool then coz I heard ppl saying u gotta make some pipes or sth for the two programs to communicate to each other
yes I'll have two programs and these programs will talk to each other using TCP, well u can simply treat these two programs as client and server actually. So I just wanna make sure it's not that nasty to get the two programs to talk to each other and having their own window inside the main window...think it'll not be that hard rite?
thanz |
_________________ fRaNkLy i'm FrAnKy
|
|
|
|
|
soup4you2
Tail-Wagger


Joined: 15 Mar 2002 Posts: 2453
Location: Desolate wastelands of Virginia
|
Posted:
Sun Apr 06, 2003 11:27 am Post subject: |
|
if your trying to learn in c take a look at cygwin it's a nix interface thats open source i beleive..
http://cygwin.com |
_________________ tomorrow will be canceled due to lack of interest
|
|
|
|
|
frankly
Stray Dog

Joined: 20 Mar 2003 Posts: 41
|
Posted:
Sun Apr 06, 2003 3:39 pm Post subject: |
|
o cool thanz
actually I have that compiler too haha
"gcc" the command line to compile right? |
_________________ fRaNkLy i'm FrAnKy
|
|
|
|
|
|
|