Custom GUI with wxWidgets and other questions

This forum is reserved for everything you want to talk about. It could be about programming, opinions, open source programs, development in general, or just cool stuff to share!
Obelix
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Jan 02, 2017 4:19 pm

Custom GUI with wxWidgets and other questions

Postby Obelix » Tue Jan 03, 2017 1:14 am

I am looking for gui library for c++ with customization - not native looking. I want create application with my custom graphics, that will be looks same on all OS. Able to resize it, and use svg graphics for display gui.

1. The main question is, it is possible create custom looking application, like Blender3D, Steam, Krita (graphic), Reaper (audio) with wxWidgets?
2. If 1. is yes, how hard it will be (I am learning c++, and I think, I am on level when I want use some gui)? Or is it better use other library? (I know Qt but I want avoid it)
3. It is possible connect to wxWidgets some library? Skia, AGG or SDL.

PS. sorry for my english.

User avatar
doublemax
Moderator
Moderator
Posts: 10742
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Custom GUI with wxWidgets and other questions

Postby doublemax » Tue Jan 03, 2017 8:58 am

See my answer to a similar question here: viewtopic.php?p=174376#p174376

It is possible connect to wxWidgets some library? Skia, AGG or SDL.
Depends on what you mean with "connect to". It is possible to use any almost other library together with wxWidgets.
Use the source, Luke!

Obelix
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Jan 02, 2017 4:19 pm

Re: Custom GUI with wxWidgets and other questions

Postby Obelix » Tue Jan 03, 2017 9:43 am

Thanks, I was read this answer when I searched for custom gui with wxWidgets. How hard it will be, for beginner, create completly custom gui (listboxes, choice controls, like something in topic with your answer and more) ? It will be ok, when I am still learning C++ ?

doublemax wrote:
It is possible connect to wxWidgets some library? Skia, AGG or SDL.
Depends on what you mean with "connect to". It is possible to use any almost other library together with wxWidgets.
I mean, create some widgets with own graphics rendered with Skia, AGG, or make window where will be graphics manipulations. And SDL for own keyboard input and sound.

Btw. I am not interest in to game creation. But more for audio applications or maybe graphics program.

User avatar
doublemax
Moderator
Moderator
Posts: 10742
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Custom GUI with wxWidgets and other questions

Postby doublemax » Tue Jan 03, 2017 1:55 pm

How hard it will be, for beginner, create completely custom gui (listboxes, choice controls, like something in topic with your answer and more) ? It will be ok, when I am still learning C++ ?
Hard to tell, it won't be easy when you're new to both C++ and wxWidgets. However, once you understood how to create custom controls in general, the principle is always the same: You have a blank canvas and everything that shall appear there, must be drawn by you with wxDC methods: http://docs.wxwidgets.org/trunk/classwx_d_c.html

Then you will have to react on mouse (and maybe keyboard) events to modify the control.

The real work is the logic of each control. E.g. if you wanted to write a text control from scratch, you'd not only have to draw the content - which would be easy - but you also have to deal with cursor movement, text selection and stuff like that.

create some widgets with own graphics rendered with Skia, AGG, or make window where will be graphics manipulations. And SDL for own keyboard input and sound.
I don't know Skia, but with AGG for example you could render into a RGBA buffer, convert that to a wxBitmap and display it. Regarding SDL, there was a SDL control for wxWidgets once, but i can't remember its exact name. When you google a bit, you may find it. OTOH handling mouse and keyboard events in SDL is a little difficult, because it will be fighting with wxWidgets for the events. But i don't know enough about SDL to say more about it.
Use the source, Luke!


Return to “Open Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest