On Sun, 11 Nov 2007 09:16:04 +0100
Marc Santhoff [EMAIL PROTECTED] wrote:
[...]
Only out of curiosity:
Wouldn't a X Windows window ID do? I think that's the equivalent to
WinAPIs handles.
GDK_WINDOW_XWINDOW (GTK_WIDGET (my_window)-window);
is the function/macro to use then.
[...]
Am Sonntag, den 11.11.2007, 12:21 +0100 schrieb Mattias Gaertner:
On Sun, 11 Nov 2007 09:16:04 +0100
Marc Santhoff [EMAIL PROTECTED] wrote:
[...]
Only out of curiosity:
Wouldn't a X Windows window ID do? I think that's the equivalent to
WinAPIs handles.
GDK_WINDOW_XWINDOW
I would try using the Parent property. What's the difference between
Parent and ParentWindow?
--
Felipe Monteiro de Carvalho
_
To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
archives
Hello Felipe,
I would try using the Parent property. What's the difference between
Parent and ParentWindow?
Thanks for the tip, but I tried that already. Parent needs a
TWinControl, which I don't have. I only have the window handle. I tried
FindControl(Handle : THandle) : TWinControl (or
Felipe Monteiro de Carvalho schrieb:
Is the interface of your SDK fixed? I mean, can't you ask users of the
SDK to pass a TForm or something instead of a system handle?
Yes, it is fixed (it's the VST Plugin SDK). I also have written some
host code for these plugins, but since the
Yes I'd wish to do so. I have windows and OSX here (I guess I can test
the GTK part in OSX). What I don't have is much time, so I'd really like
to only implement that function. Do you have a link where I can find
instructions about how to do so?
I don't think there are instructions. I just
On Sat, 10 Nov 2007 13:01:55 +0100
Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote:
Yes I'd wish to do so. I have windows and OSX here (I guess I can
test the GTK part in OSX). What I don't have is much time, so I'd
really like to only implement that function. Do you have a link
where
Mattias Gaertner wrote:
I think ParentWindow is very widgetset specific (see below). Probably
it will work cross platform very limited. See at end for an
alternative solution.
- AFAIK under winapi you can stack handles even of different processes.
gtk does not allow this. I don't know about
Ok, just for the records: I tried to do it with
TWinForm.CreateParented(ParentWindow: hwnd), but I get an access
violation. So that does not work.
I think ParentWindow is very widgetset specific (see below). Probably
it will work cross platform very limited.
Ok, thanks for the information.
On Sat, 10 Nov 2007 15:55:38 +0300
Al Boldi [EMAIL PROTECTED] wrote:
Mattias Gaertner wrote:
I think ParentWindow is very widgetset specific (see below).
Probably it will work cross platform very limited. See at end for an
alternative solution.
- AFAIK under winapi you can stack
Right now I have made it very simple and as expected it doesn't work. I
implemented it as:
{--
TWinControl CreateParentedControl
--}
class
On Sat, 10 Nov 2007 14:41:18 +0100
Christian Budde [EMAIL PROTECTED] wrote:
Right now I have made it very simple and as expected it doesn't work.
I implemented it as:
{--
TWinControl CreateParentedControl
Hello Mattias,
If you only need a reparented control, that will not get focus,
get incorrect mouse and keyboard events and will likely crash, then it
is easier to implement only CreateParented. ;)
I not sure if I understand correctly what you meant with this. For sure
I don't want it to
Mattias Gaertner wrote:
Maybe my statement was not clear: The Parent/Child connection is the
main problem. It would be easier to handle the child/parent
relationship by the LCL and keep the 1:1 mapping between controls and
handles.
So, all that is needed is a TForeignHandleControl with a
Christian Budde wrote:
Ok, just for the records: I tried to do it with
TWinForm.CreateParented(ParentWindow: hwnd), but I get an access
violation. So that does not work.
I think ParentWindow is very widgetset specific (see below). Probably
it will work cross platform very limited.
Ok,
Hello,
I once asked here, if someone knows any replacement for the Delphi function:
MyForm.ParentWindow := HWnd(AnotherForm.Handle);
I need this to make a form stored in a DLL is move into another form
(called MyForm here). I tried
Parent := FindControl(AnotherForm.Handle)
but I
Hi again,
I'm now missing a procedure to 'host' a form in a different window given
only by a handle. In Delphi it's as simple as
MyForm.ParentWindow := HWnd(Handle);
It directly uses Windows.SetParent(FHandle, Value); from the WinAPI. At
the moment I'm still on Windows, but I'd like to find
17 matches
Mail list logo