Saturday, February 24th 2018, 9:21am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: Oct 5th 2017

Posts: 30


Friday, November 3rd 2017, 10:38am

Changing the parent on the go?

Dear all

Is it possible to change the parent of a child on the go? For example, I'd define one unique child window for a keyboard and hide it. Then I'd show it for a chosen parent.


SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 496


Monday, November 6th 2017, 8:38am


You might try WM_AttachWindow() and WM_DetachWindow().

But keep in mind that if the new parent is not large enough to display the keyboard it will get clipped.




Date of registration: Oct 29th 2016

Posts: 17


Tuesday, November 14th 2017, 1:19pm

For the keyboard, make an unedged window without focus. More precisely, if the focus is lost, the keyboard window fills the focus back.
The parent for him is the background. And it is always on top of other windows.