|
|
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DHCtrl for GTK backend - help needed
|
|
|
|
Re: DHCtrl for GTK backend - help needed [message #44635 is a reply to message #44618] |
Fri, 01 May 2015 21:43 |
Zbych
Messages: 327 Registered: July 2009
|
Senior Member |
|
|
Klugier wrote on Sun, 26 April 2015 12:59
So, I would like to ask you it is possible in current upp gtk implementation to develop DHCtrl? Did you do any progress since your last post?
I made some progress. Attached version seems to be working. I tested it with embedded chromium and everything looks fine except keyboard events (embedded application doesn't receive key up/down events).
[Updated on: Sat, 02 May 2015 13:37] Report message to a moderator
|
|
|
|
Re: DHCtrl for GTK backend - help needed [message #44637 is a reply to message #44621] |
Sat, 02 May 2015 14:10 |
|
Klugier
Messages: 1082 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
mirek wrote on Sun, 26 April 2015 14:01
However, one possible plan is to turn the whole thing around: Create a new alternative Gtk backend that is using GL on toplevel window...
Hello Mirek,
I think we should develop polished and working OpenGL for GTK backend. Like we do on all other major platforms. So, I think DHCtrl is a step in good direction. When we did this It shouldn't be difficult to implement good GLCtrl.
Sincerely,
Klugier
[Updated on: Sat, 02 May 2015 14:10] Report message to a moderator
|
|
|
Re: DHCtrl for GTK backend - help needed [message #50216 is a reply to message #44637] |
Mon, 27 August 2018 19:10 |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Hi,
I revive this old topic because I'm trying to get DHCtrl work in GTK mode.
I tested the code posted here, it's sort of working (blinking a lot, but I guess that's solvable)
but the real caveat is that I can't add more than ONE of such to any upp TopWindow.
As I've seen, UPP is implemented using JUST one GTK top control (which is windowed) and all the
rest is drawn inside it.
The problem is that if we want to implement a windowed GTK control it should be added to the main
GTK one, and the Window type just accepts ONE widget inside it.
So, for example, having a TabBar with many pages and a DHCtrl in each page can't work.
Even using the more modern GtkArea will not work, because of this problem. We can add ONE of
it to the application, but it will crash when trying to add a second one.
I think that this problem can't be solved in GTK without some big changes in GTK core in UPP.
Ciao
Massimo
EDIT : it could be (maybe) solved using plain X11 code to add a window to the main one, and handling repositioning from inside
the DHCtrl code.
[Updated on: Mon, 27 August 2018 19:13] Report message to a moderator
|
|
|
|
|
|
|
|
Re: DHCtrl for GTK backend - help needed [message #50282 is a reply to message #50280] |
Wed, 12 September 2018 09:11 |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Yep... at least, on my computer. I don't know if my mail server is throwing away UPP emails, but it's quite unlikely.
I've got this problem since first day in forum. Never got an e-mail from forum...
|
|
|
Goto Forum:
Current Time: Fri Sep 20 06:00:55 CEST 2024
Total time taken to generate the page: 0.03143 seconds
|
|
|