Change Child Widget position or binding in Compound Widget

Hi all

I have a compound widget with two buttons in it (left and right). Each button value has a binding to a structure variable inside the compound widget.

For example the Button left has a binding to “xJogPos” and the Button right to “xJogNeg”.

Is there a way that the user can define where inside the compund widget he wants to have the button left?

Or can I somehow dynamically change the structure binding inside my compound widget? So the left buttons binding is active to “xJogPs” or “xJogNeg”?

Or is the only way to go to make two individual compound widgets?

Thanks

Hi Stefan,

maybe you can put the two buttons inside the CompoundWidget into a GroupBox (childPositioning=relative) and use float property (left / right) as nonbindable property.

Unfortunately you can not bind this property.

But maybe this is an option for you. :slight_smile:

Sincerly Simon

2 Likes

Hi Simon

Perfect, that’s what I was looking for.

Not bindable is not an issue for me. It doesn’t need to be changed at runtime; it’s just a configuration, basically.

1 Like