LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index » Code Warriors
Author Message
frankly
Stray Dog


Joined: 20 Mar 2003
Posts: 41

Post Posted: Wed Apr 02, 2003 10:44 am   Post subject: User Interface in UNIX Reply with quote Back to top  

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!! Very Happy

_________________
fRaNkLy i'm FrAnKy
View user's profile Send private message
username
Stray Dog


Joined: 02 Apr 2003
Posts: 2

Post Posted: Wed Apr 02, 2003 12:18 pm   Post subject: Reply with quote Back to top  

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.
View user's profile Send private message
frankly
Stray Dog


Joined: 20 Mar 2003
Posts: 41

Post Posted: Wed Apr 02, 2003 6:02 pm   Post subject: Reply with quote Back to top  

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 Smile

_________________
fRaNkLy i'm FrAnKy
View user's profile Send private message
hohlecow
Tail-Wagger
Tail-Wagger


Joined: 17 May 2002
Posts: 2151
Location: hungary for turkey and chile

Post Posted: Fri Apr 04, 2003 5:57 am   Post subject: Reply with quote Back to top  

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)
View user's profile Send private message Send e-mail Visit poster's website AIM Address
frankly
Stray Dog


Joined: 20 Mar 2003
Posts: 41

Post Posted: Fri Apr 04, 2003 6:01 am   Post subject: Reply with quote Back to top  

wo cool thanz haha
I'm searching on google to get a place to download thaht QT hehe Mr. Green

[edit] o...that non commercial windows version requires VC++?
but I'm using DEV C++.... Shocked

_________________
fRaNkLy i'm FrAnKy
View user's profile Send private message
hohlecow
Tail-Wagger
Tail-Wagger


Joined: 17 May 2002
Posts: 2151
Location: hungary for turkey and chile

Post Posted: Fri Apr 04, 2003 6:53 am   Post subject: Reply with quote Back to top  

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)
View user's profile Send private message Send e-mail Visit poster's website AIM Address
frankly
Stray Dog


Joined: 20 Mar 2003
Posts: 41

Post Posted: Fri Apr 04, 2003 7:33 am   Post subject: Reply with quote Back to top  

o well think I'll try that out then haha
thanz Mr. Green

_________________
fRaNkLy i'm FrAnKy
View user's profile Send private message
frankly
Stray Dog


Joined: 20 Mar 2003
Posts: 41

Post Posted: Sat Apr 05, 2003 12:20 am   Post subject: Reply with quote Back to top  

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 Very Happy
thanz !! Mr. Green

_________________
fRaNkLy i'm FrAnKy
View user's profile Send private message
hohlecow
Tail-Wagger
Tail-Wagger


Joined: 17 May 2002
Posts: 2151
Location: hungary for turkey and chile

Post Posted: Sat Apr 05, 2003 11:42 am   Post subject: Reply with quote Back to top  

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)
View user's profile Send private message Send e-mail Visit poster's website AIM Address
frankly
Stray Dog


Joined: 20 Mar 2003
Posts: 41

Post Posted: Sat Apr 05, 2003 6:49 pm   Post subject: Reply with quote Back to top  

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 Very Happy

_________________
fRaNkLy i'm FrAnKy
View user's profile Send private message
soup4you2
Tail-Wagger
Tail-Wagger


Joined: 15 Mar 2002
Posts: 2452
Location: Desolate wastelands of Virginia

Post Posted: Sun Apr 06, 2003 11:27 am   Post subject: Reply with quote Back to top  

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
View user's profile Send private message Send e-mail
frankly
Stray Dog


Joined: 20 Mar 2003
Posts: 41

Post Posted: Sun Apr 06, 2003 3:39 pm   Post subject: Reply with quote Back to top  

o cool thanz
actually I have that compiler too haha
"gcc" the command line to compile right? Mr. Green

_________________
fRaNkLy i'm FrAnKy
View user's profile Send private message
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!