Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 #50216 is a reply to message #44637] Mon, 27 August 2018 19:10 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DockWindow->Button hover paint bug
Next Topic: Control4U issue with IExplorer
Goto Forum:
  


Current Time: Thu Mar 28 22:17:26 CET 2024

Total time taken to generate the page: 0.01300 seconds