Updating controls with the same parent during development

So, I created a new control with label and editing (like the standard TLabelEdit).

Controls inherit from TCustomEdit.

The label receives the same parent by overriding the SetParent method.

When I now move the control during development, it will only move the “editing part” of the control and leave the shortcut in its original position, as in this video I made:

http://gfycat.com/QuarrelsomeWildHammerkop

The birthday label remains in the same place, moving the control.

Is there a way to update both positions in desinger when moving / moving a control?

I registered window messages using Spy ++, but did not move the messages while moving.

Even adding a timer and trying to adjust the label size in 20 ms does not work ...

+5
source share

Source: https://habr.com/ru/post/1236070/


All Articles