Notifications
Clear all

[Closed] [max8] rolloutCreator and group

 rdg

hello,

I am creating a rollout with the rolloutCreator.
Is there a easy way to use groupbox or group with this tool?

I like to group my interface elements with groups :


(...)
group "my group" (
 (...)
)
(...)

How to do this with the rolloutCreator?

thank you,

Georg

5 Replies
 rdg

I see that scripts\startup\rolloutCreator.ms defines this functions.

Can some says something about the pros and cons when overloading this functions with custom code? Has someone done this before?

Georg

 rdg

it works fine.
I added a openGroup and a closeGroup function to rolloutCreatorRDG.ms.

Georg

cool can you post a screeny of how this works/looks?

 rdg

It looks like this:

It works like this:

(
 rci = rolloutCreatorRDG "rdg_rcSample" "rdg::rollout"
 rci.begin()
 rci.openGroup "the Group"
 rci.addControl #button #theButton "theButton" paramStr:"width:140"
 rci.closeGroup()
 createDialog (rci.end())
)

I added these lines to a copy of the rolloutCreator.ms:


fn openGroup name = (
 append str ("	group \"" + name + "\"(
")
),
fn closeGroup = (
 append str ("	)
") 
),

Georg

cool Thanks!!

-Baker