Tuesday, November 21st 2017, 7:01am UTC+1

You are not logged in.

  • Login
  • Register

mjanas10

Beginner

Date of registration: Oct 5th 2017

Posts: 19

1

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.

Thanks

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 410

2

Monday, November 6th 2017, 8:38am

Hi,

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.

Regards
Sven

Raash

Beginner

Date of registration: Oct 29th 2016

Posts: 10

3

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.