-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedding a window as a ChildWindow #1800
Comments
The trick is to call BeginChild instead of Begin...? |
As I said it is a minor thing. But the obvious thing would be to signal to the embedded window that it should call BeginChild instead of Child. The trick I was looking for is having the first instance, the embedder, making this decision. Anyway, I am now settling on just adding a boolean to the arguments of the window-functions , like hexeditor(id, ..., show, child) now. |
Yes that’s how I would be doing it. The embedder can’t signal it to the embedded via a generic manner.
Not sure what exactly is your usage context, this is the kind of thing that a Docking system (#351) would take care of (essentially redirecting the output of a window) - but it that would be tailored for the specific purpose of docking.
|
@phed: are you happy with this, can we close the thread or it is still an open topic for you? |
Oh sorry, I was happy with the answer. Just close.
|
Is it possible to embed a window into another one?
I was happy to find that I could use child windows to create paned layouts, and that you could build on these windows with ::BeginChild(id) with the same ID later.
However, is there a way to embed a window that has been created with ::Begin(id) into a child-window in a similar manner? Reason is that I want to re-use code that creates regular windows..
Not very important, but I feel like there's a trick I am missing.
The text was updated successfully, but these errors were encountered: