How to set the text size of a widget with GPScript?

I have this slider:

I want to move/reposition other sliders. However, when I make them smaller and bigger then the text portion (height) is not the same as before. See example after making it smaller and bigger again:

image

This is done manually, however with using the GPScript function SetWidgetBounds I get similarly issues regarding the height of the text part.

There is also a function called SetWidgetBoundsFromOtherWidget, however that function also changes the position which is unwanted. I.e. it is not possible to change only the widget width/height and position separately.
Neither there is a function to set the text height.

Is there a solution for this problem?

No responses at all?

GUI manipulation from GPScript is just very basic and was never really meant to be a thing. We added a couple of functions over the years but never really fleshed it out. We have just never seen it as an important need for the vast majority of our user base so there was never really any focus on it

1 Like

Thank you for your reply.
Knowing this also gives me useful info, in this case I just ‘move’ the widgets instead of changing the size.

I understand that I maybe use scripts quite a lot, probably being a software engineer biases that :slight_smile: