PDA

View Full Version : How add Rollout in (right-click) menu toolbars?


CRoLL
07-23-2009, 12:29 AM
Hello all!

question: What line need be added to create the my rollout when pressed right-click on the UI interface in the list of menu toolbars? See picture ...
Sorry for my bad English! if you do not understand.

my script :blush:

macroScript ViewsRollout
category:"crollTools"
internalCategory:"Views Dialog"
buttonText:"croll Views Dialog"
tooltip:"croll Views Dialog"

(--start local scope

global crollviews
try(cui.UnRegisterDialogBar crollviews)catch()
try(destroydialog crollviews)catch()

rollout crollviews "1"
(
button btn1 " T" pos:[0,0] width:18 height:17
on btn1 pressed do
(
viewport.setType #view_top -- set active viewport to Top view
)
button btn2 " B" pos:[18,17] width:18 height:17
on btn2 pressed do
(
viewport.setType #view_bottom -- set active viewport to Bottom view
)
button btn3 " F" pos:[0,17] width:18 height:17
on btn3 pressed do
(
viewport.setType #view_front -- set active viewport to Front view
)
button btn4 " L" pos:[0,34] width:18 height:17
on btn4 pressed do
(
viewport.setType #view_left -- set active viewport to left view
)
button btn5 " R" pos:[18,34] width:18 height:17
on btn5 pressed do
(
viewport.setType #view_right -- set active viewport to right view
)
button btn6 " B" pos:[18,0] width:18 height:17
on btn6 pressed do
(
viewport.setType #view_back -- set active viewport to back view
)

)

cui.RegisterDialogBar crollviews style:#(#cui_dock_left, #cui_dock_right, #cui_floatable, #cui_handles)
createdialog crollviews 33 59 bgcolor:(color 255 255 255) style:#(#style_toolwindow, #style_titlebar, #style_sysmenu)
cui.DockDialogBar crollviews #cui_dock_left

)--end script


http://funkyimg.com/t2/242/540/rollout.jpg (http://funkyimg.com/viewer.php?img=/2/242/540/rollout.jpg)

denisT
07-23-2009, 01:35 AM
i could find any way to do it from script. you have to do it manually - "Customize..." --> "Toolbars" --> "New"... :(

CRoLL
07-23-2009, 01:56 AM
denisT
I know This
but I want to do it from script:)

me too not find script, to add its rollout in this menu.:blush:

CRoLL
07-23-2009, 12:19 PM
may be something write in line rcmenu?but that...

CreateDialog <Rollout> [<height> <width> <position_x> <position_y>]\
[pos:<Point2>] [width:<integer>] [height:<integer>] \
[bgcolor:<color>] [fgcolor:<color>] \
[bitmap:<bitmap>] {bmpstyle:<bmpstyle> \
[menu:<RCMenu>] [style:<array>] [modal:<boolean>] \ [escapeEnable:<boolean>] [lockHeight:<boolean>] [lockWidth: <boolean>]

CRoLL
07-23-2009, 07:35 PM
can anyone help me? Really Anybody Does not know? :cry::blush:

denisT
07-23-2009, 09:49 PM
can anyone help me? Really Anybody Does not know? :cry::blush:

I know! Don't waste your time. You can't easy create any new toolbar and you can't add your script to any already existent toolbars from a script. But hypothetically it's possible. And I can do it.

If you are expert enough here is a way:

1. get current cui file
2. modify its CUIWindows setting to add name and type of your newly created toolbar
3. create new section (name of your toolbar) and add new settings for you toolbar (Rank, SubRank, ... , ItemCount, etc)
4. add list of items (your mascros and their buttons) to this section
5. save cui file
6. and load this file again...

But I really don't recommend doing it. You can screw up yours and anyone else's max easily.

Good luck!

PEN
07-23-2009, 10:38 PM
You can do it quite easily using the menuMan interface.

denisT
07-23-2009, 10:46 PM
You can do it quite easily using the menuMan interface.

no way... CRoLL wants to add new toolbar. Not a new item to menu. Only registered toolbars appear in this RC menu.

CGTalk Moderation
07-23-2009, 10:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.