Notifications
Clear all

[Closed] Trouble with Rollouts and Control resize

Hello, everybody! I’ve got a real problem with rollout looks.
I’ve started with “ListView” .NET control, but to localize the problem show it with usual EditText, becouse it’s the same with any control, which can change it’s height.

So, I have a control in a rollout, and I need to change it’s height depending on how many lines are to be in it. The resize itself works OK, everything is visible and clear. But the trouble appears when a rollout is rolled up and back down, some lower parts are not displayed.
When a control increases it’s height, no area below the initial height is displayed.
When a control decreases it’s height, no lower line of rollout is displayed.

Please take a look at this small script and tell, if that can be fixed with 3DS MAX 9 …

 
rollout smallAreaRollout "smallArea" width:162 height:10
(
 button btn3 "30 » 50" pos:[0,0] width:100 height:30
 edittext et "EditText" pos:[150,0] width:100 height:30 enabled:true across:20
 
 on btn3 pressed do
 (
  smallAreaRollout.Height = 50
  et.Height = 50
 )
) 
rollout bigAreaRollout "bigArea" width:162 height:10
(
 button btn3 "500 » 50" pos:[0,0] width:100 height:30
 edittext et "EditText" pos:[150,0] width:100 height:500 enabled:true across:20
 
 on btn3 pressed do
 (
  bigAreaRollout.Height = 50
  et.Height = 50
 )
)
 
testFloater = newRolloutFloater "Test Floater" 500 700
addRollout smallAreaRollout testFloater
addRollout bigAreaRollout testFloater

It really bugs me off with creating an importer macroscript. Please help anyone.