Graphical Windows with C++

This is a discussion on Graphical Windows with C++ within the Linux Programming forums, part of the Platform Specific Boards category; In kdesktop, how do i make a window with graphics thats not a game? I assume this uses the XWindows, ...

  1. #1
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373

    Graphical Windows with C++

    In kdesktop, how do i make a window with graphics thats not a game? I assume this uses the XWindows, but i dont know how to actually make a window in it because i cnat find a decent tutorial. Im using Mandrake 10.0, if it makes any difference. I know that i can do it in Gnome using GTK, I dont know hardly any KDE commands though. Thanks in advance, if you could understand that :P
    This war, like the next war, is a war to end war.

  2. #2
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    well gtk is more considered to be on gnome but of course it is on kde also. You don't have to know any "Kde commands"(whatever that is) but you do have to learn a whole lot of functions for gtk that follow c syntax(This is called an API). If you are in kde you might want to look into qt. There is no linux.h like in windows. So you need to use api's that are popular and work.
    [edit]forgot Xwindowing system is written in Xaw, you know when you startx for the first time without any window/desktop manager.

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    Xlib and Xt/Athena are pretty much standard. You can use those if you don't want to have dependency on a library like that. But it is far more difficult.

    qt
    gtk
    motif

    are all good starting points. These are called "widget sets" which derive from the Xt widgets. To do what you want to do, you will most definitely go down the road of using widgets.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  4. #4
    Registered User gandalf_bar's Avatar
    Join Date
    Oct 2003
    Posts
    92
    www.gtkmm.org
    www.wxwidgets.org

    They are all written in C++. It is free.
    A man asked, "Who are you?"
    Buddha answered, "I am awaked."

  5. #5
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Well, i tried QT, but i can never figure it out, i go step by step in the tutorial, and when it says to get a icon or something, i can lok all over the place, and not find the required files...

    I didnt know that GTK would work on KDE, then again, i dont know much about Linux, either, lol.

    Thanks for the links, ill look into them.

    I also oredered a book that should have it in there.. But if you guys know any other good books, let me know.

    The book im getting is called Beginning Linux Programming, if ya'll ever heard of it. Probably wont help me much, but ill try
    This war, like the next war, is a war to end war.

  6. #6
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    maybe advanced linux programming I bought it, but they have an online version for free

  7. #7
    Registered User gandalf_bar's Avatar
    Join Date
    Oct 2003
    Posts
    92
    Beginning Linux Programming???? That is very good. From wrox, isn't it? I give two thumbs up.
    A man asked, "Who are you?"
    Buddha answered, "I am awaked."

  8. #8
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Got it. Yes, it's from wrox, and it looks nice. I never knew that Xterm could have a calender like that! lol.

    Well, ill give this a shot.

    I'll post if i have any other problems.
    Thank you all!
    This war, like the next war, is a war to end war.

  9. #9
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    it's all about ADLP
    Advanced Linux Programming

    -LC
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 98/2000 programming in Windows XP
    By Bill83 in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:16 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21