PDA

View Full Version : Show more items in one line if the window is made wider



MadBeardMan
October 25th, 2020, 02:44
Greetings,

Another one from me, hopefully this is possible.

I have a subwindow, inside it I have a series of controls.

XX|YY XX|YY XX|YY XX|YY XX|YY
XX|YY XX|YY

Now what I want is if the window is made wider, then the items from line 2 appear in line 1

XX|YY XX|YY XX|YY XX|YY XX|YY XX|YY
XX|YY

And if the window is made wider, then all are on the one line

XX|YY XX|YY XX|YY XX|YY XX|YY XX|YY XX|YY

Normally with HTML you'd make relate them and they'd move about depending on how much space they have. I need this.

Is it possible?

And if so, is it possible to shrink the frame they're in, or link the frame height based on the subwindow?

Cheers,
MBM

Moon Wizard
October 26th, 2020, 23:45
It can be done; but there is no layout code in FG that will do it for you automatically. You'd have to do all your own calculations based on onSizeChanged events at the window instance level.

Alternately, you could use a list with "fillwidth" tag set to do something similar; but all the child controls would need to be nested in list child windows.

Regards,
JPG