Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Making a GUI(Event handler in Eclipse CDT)
Making a GUI [message #1852996] Tue, 14 June 2022 10:40 Go to next message
Kurt Struevy is currently offline Kurt StruevyFriend
Messages: 45
Registered: May 2016
Member
Hello,
I love to use eclipse for doing several projects. Eclips is a good tool.
I checked for a way how to make a GUI using eclipse 2022-06.
I installed successful the WindowBuilder plugin.
But I cannot find any tutorial or howto for programming a GUI C/C++application .
There are some good tutorials for using WindowBuilder as java application.
But there is no way to include something like an EventHandler to the C++ application.
Has anybody an idea how to make this?
Thanks a lot in advance.
Kurt
Re: Making a GUI [message #1853017 is a reply to message #1852996] Tue, 14 June 2022 18:36 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 739
Registered: August 2014
Senior Member
WindowBuilder is for Java.

For C/C++ you need to select the widget kit to be used, according to the operating system on your computer.


--

Tauno Voipio
Re: Making a GUI [message #1853096 is a reply to message #1853017] Fri, 17 June 2022 13:05 Go to previous messageGo to next message
Kurt Struevy is currently offline Kurt StruevyFriend
Messages: 45
Registered: May 2016
Member
Hi Tauno Voipio,
thanks a lot for your answer.
I tried to find some information with widget kit but I didn't find any solution.
There are some questions


  1. what plugin must I install to make the widget kit available?
  2. do I get it from Eclipse marketplace?
  3. what are the steps to make a simple widge?
  4. must I make a C/C++ project firs where I add a widget?

[Updated on: Fri, 17 June 2022 13:06]

Report message to a moderator

Re: Making a GUI [message #1853099 is a reply to message #1853096] Fri, 17 June 2022 17:02 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 739
Registered: August 2014
Senior Member
What you need to make depends on the operating system you are targeting the code for.

For UNIXish systems (Linux, BSD etc), the graphical system is the X windowing system. It has its own functions to call, and there are several different widget kits to choose from. Usually you need to use the same your desktop uses.

For MacOS, there are own windowing system calls to use. The same applies to Windows, but of course different from MacOS.

There are multi-platform GUI toolkits, but the subject is largish to handle here, Google may help.


--

Tauno Voipio

[Updated on: Fri, 17 June 2022 17:03]

Report message to a moderator

Re: Making a GUI [message #1853110 is a reply to message #1853099] Sat, 18 June 2022 11:34 Go to previous messageGo to next message
Kurt Struevy is currently offline Kurt StruevyFriend
Messages: 45
Registered: May 2016
Member
Hi Tauno Voipio,
thanks for your answer.
I can't find any way how to make this.
What you describe is the second step.
But I miss any hint how to install or access the widget kit tool?
Google does not show a page where I can find a solution. I'm sorry. Maybe I'm too stupid?
I use successfully Eclipse CDT 2022-06.
index.php/fa/42209/0/
But I find no instruction how to install or add a widget kit.
Is there no instruction how to do it.
Maybe somebody else has a hint for me.
Thanks in advence
  • Attachment: Eclipse.JPG
    (Size: 68.08KB, Downloaded 174 times)

[Updated on: Sat, 18 June 2022 11:35]

Report message to a moderator

Re: Making a GUI [message #1853114 is a reply to message #1853110] Sat, 18 June 2022 17:04 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 739
Registered: August 2014
Senior Member
It is a long way to learn to create a GUI program using C/C++;

I have an older book about basic GUI programming for the X Window System,
J. Robert Brown, X Window Programming from scratch, QUE Books, ISBN 0-7897-2372-7. It is about 780 pages.

You might be better off by starting with Java and its GUI tools. They are supported by Eclipse and WindowBuilder. Google for Java Swing programming.


--

Tauno Voipio
Previous Topic:pinMode PWM: Unable to do this when using /dev/gpiomem. Try sudo?
Next Topic:Specified include directories are not included in generated C-compile command line
Goto Forum:
  


Current Time: Sat Feb 04 03:58:14 GMT 2023

Powered by FUDForum. Page generated in 0.56837 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top