ui_ca = attributes ui_ca attribid:#(0xee11, 0x11ee)
(
parameters controls rollout:controls
(
)
rollout controls "Controls" rolledup:off --autoLayoutOnResize:off --category:10
(
group "Data: "
(
button one_bt "One" width:136 align:#left offset:[0,0]
button two_bt "Two" width:136 align:#right offset:[0,0]
)
on controls rolledup val do
(
format "controls >> ROLL ... val:%\t open:%\n" val controls.open
)
on controls open do
(
format "controls >> OPEN ... val:%\t\t open:%\n" ok controls.open
)
)
rollout settings "Settings" rolledup:on --autoLayoutOnResize:off --category:11
(
group "Info: "
(
button this_bt "This" width:66 align:#left offset:[0,0] across:2
button that_bt "That" width:66 align:#right offset:[0,0]
)
on settings rolledup val do
(
format "settings >> ROLL ... val:%\t open:%\n" val settings.open
)
on settings open do
(
format "settings >> OPEN ... val:%\t\t open:%\n" ok settings.open
)
)
)
undo off, redraw off
(
--try(deletereference (getclassinstances ui_ca)) catch()
suspendediting()
max create mode
delete objects
gc()
p = point name:#test isselected:on
custattributes.add p ui_ca
max modify mode
resumeediting()
)
This snippet demonstrates the issue… more specifically - incorrect UI resizing with 4K monitors, or with UI scaling factor not 1.0.
I don’t want to resize at all! I want to keep both rollouts in the original design.
If someone can do this please show me how.
What I have, when I close/open rollouts, change the command panel, select/deselect the node, the UI gets messed up in some situations.
Also, if you check the print in the listener, you’ll see that sometimes it says the rollout is open when it’s actually closed, and says it’s closed when it’s open.