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++ Core » Control with window handle
Control with window handle [message #12625] Sun, 11 November 2007 15:47 Go to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
I need to have a control with window handle (on linux), something like GLCtrl but with no OpenGL initialization... just an XWindow inside.
I'm trying to duplicate parts of GLCtrl, but I stumbled upon the need to access some core private stuffs, as GLCtrl does.
Checking CtrlCore, I see that GLCtrl is made friend of Ctrl class to allow low level access.

Wouldn't be better to have a windowed control ? SOmetimes it's useful.... lurking inside code it seems to me that DHCtrl (on windows) have a window handle.

Ciao

Max

p.s.: for now I'll do it with this damn'd trick of
#define private public
#include <CtrlLib/CtrlLib.h>
#undef private

sigh...

[Updated on: Sun, 11 November 2007 15:56]

Report message to a moderator

Re: Control with window handle [message #12627 is a reply to message #12625] Sun, 11 November 2007 18:37 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
mdelfede wrote on Sun, 11 November 2007 09:47

I need to have a control with window handle (on linux), something like GLCtrl but with no OpenGL initialization... just an XWindow inside.
I'm trying to duplicate parts of GLCtrl, but I stumbled upon the need to access some core private stuffs, as GLCtrl does.
Checking CtrlCore, I see that GLCtrl is made friend of Ctrl class to allow low level access.

Wouldn't be better to have a windowed control ? SOmetimes it's useful.... lurking inside code it seems to me that DHCtrl (on windows) have a window handle.



There is one: DHCtrl, unfortunately, only implemnted for Win32.

Maybe you could provide X11 implementation, that would be pretty good thing.

Mirek
Re: Control with window handle [message #12632 is a reply to message #12627] Sun, 11 November 2007 18:58 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
luzr wrote on Sun, 11 November 2007 18:37



There is one: DHCtrl, unfortunately, only implemnted for Win32.

Maybe you could provide X11 implementation, that would be pretty good thing.



Ahhh, ok... maybe I can try, after I'll finish writing my control maybe I'll get enough skills to do it.
BTW, it should not be too different of MainWindow implementation....

GLCtrl has some sort of it, but I've got the feeling that it's missing many things.

Ciao

Max
Re: Control with window handle [message #12649 is a reply to message #12632] Mon, 12 November 2007 10:20 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Well, I'm trying to make a windowed X11 control, but that's not so easy.... just to criticise a bit, Upp code is not very well commented, I guess... to understand what it does is really difficult sometimes.
Previous Topic: How to convert String to char ?
Next Topic: Juste simple question ~
Goto Forum:
  


Current Time: Thu Mar 28 12:17:10 CET 2024

Total time taken to generate the page: 0.01012 seconds