# Gui Graphics And Hot Boxes

**URL:** https://forum.highend3d.com/t/gui-graphics-and-hot-boxes/2499
**Category:** Maya
**Tags:** mel
**Created:** [January 27, 2007, 9:29pm UTC](https://forum.highend3d.com/t/gui-graphics-and-hot-boxes/2499 "2007-01-27T21:29:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![doug-hines](https://forum.highend3d.com/user_avatar/forum.highend3d.com/doug-hines/32/67_2.png) [@doug-hines](https://forum.highend3d.com/u/doug-hines)
#### Post date: [January 27, 2007, 9:29pm UTC](https://forum.highend3d.com/t/gui-graphics-and-hot-boxes/2499/1 "2007-01-27T21:29:02Z")

</div>

Question 1)Is it possible to build a large image with smaller images like you do in HTML and tables? I know that in theory this should be possible with row/columnLayout.

CODE  
rowLayout -nc 3;  
image1; image2;image3;  
image4;image5;image6;  
image7;image8;image9;  
setParent ..;

Question 2) Building custom hotboxes. Is there a resource describing how to do this? I have read the MEL reference but it is lacking in detail on much of the flags and options. Is it then possible to bind a hotbox to a picture (see question 1) so that when you click it, it opens the hotbox.. much like a popupMenu.

---

<div class="post-metadata">

### Author: ![kurianos3d](https://forum.highend3d.com/user_avatar/forum.highend3d.com/kurianos3d/32/55947_2.png) [@kurianos3d](https://forum.highend3d.com/u/kurianos3d)
#### Post date: [January 28, 2007, 3:12am UTC](https://forum.highend3d.com/t/gui-graphics-and-hot-boxes/2499/2 "2007-01-28T03:12:25Z")

</div>

chk the hotbox command   
[http://www.autodesk.com/us/maya/docs/Maya8...nds/hotBox.html](http://www.autodesk.com/us/maya/docs/Maya8...nds/hotBox.html)

---

<div class="post-metadata">

### Author: ![doug-hines](https://forum.highend3d.com/user_avatar/forum.highend3d.com/doug-hines/32/67_2.png) [@doug-hines](https://forum.highend3d.com/u/doug-hines)
#### Post date: [January 28, 2007, 9:41pm UTC](https://forum.highend3d.com/t/gui-graphics-and-hot-boxes/2499/3 "2007-01-28T21:41:22Z")

</div>

I checked out the Alias site. It is the exact same as the MEL reference files.

Is there a way to define your own labels ... below is a picture of what I am attempting to do:

![](http://3d-artists.net/folios/doughines/help/hotboxHelp.jpg)

the Define, Deformers, Rig, cmd, and cmd boxes are the hotboxes that appear after clicking on the image (button1) to activate the hotBox. Should I be looking into different methods than a hot box? Popup menus with the menus arranged in a certain way?

---

<div class="post-metadata">

### Author: ![kurianos3d](https://forum.highend3d.com/user_avatar/forum.highend3d.com/kurianos3d/32/55947_2.png) [@kurianos3d](https://forum.highend3d.com/u/kurianos3d)
#### Post date: [January 29, 2007, 4:28am UTC](https://forum.highend3d.com/t/gui-graphics-and-hot-boxes/2499/4 "2007-01-29T04:28:06Z")

</div>

oke then why u didt try marking menu .. that will work for you plz have try with marking menu

---

<div class="post-metadata">

### Author: ![daniel-faust](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@daniel-faust](https://forum.highend3d.com/u/daniel-faust)
#### Post date: [January 29, 2007, 10:03am UTC](https://forum.highend3d.com/t/gui-graphics-and-hot-boxes/2499/5 "2007-01-29T10:03:23Z")

</div>

I don't know if it's possible using mel. Marking Menus are menus and I don't think you can replace them by images. There is a plug-in which kind of does what you want to do, maybe it will help you a bit if you take a look at it:

[http://www.highend3d.com/maya/downloads/pl...a-6-7-3848.html](http://www.highend3d.com/maya/downloads/pl...a-6-7-3848.html)

## You are trying to build a pop-up window and not a marking menu or hotbox. Positioning the pop-up is quite tricky.

edit (I'm not reading the posts..., sorry)

QUOTE  
1)Is it possible to build a large image with smaller images like you do in HTML and tables? I know that in theory this should be possible with row/columnLayout.

Probably a gridLayout is the most appropiate.

QUOTE  
Question 2) Building custom hotboxes. Is there a resource describing how to do this? I have read the MEL reference but it is lacking in detail on much of the flags and options. Is it then possible to bind a hotbox to a picture (see question 1) so that when you click it, it opens the hotbox.. much like a popupMenu.

If you want to open the real hotbox then there's the hotBox command (hotBox -release closes it again, this is a bit problematic if you invoke the hotbox from something that is not a key)

to build only the star-like menus, you need to use the popupMenu command where the menuItems are positioned using the -radialPosition flag.

CODE  
gridLayout -numberOfColumns 3 -cellWidthHeight 50 50;  
image;  
&nbsp;&nbsp;popupMenu;  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -rp "N" -l "Top Label";  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -rp "S" -l "Bottom Label";  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -l "Additional Label 1";  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -l "Additional Label 2";  
image;  
&nbsp;&nbsp;popupMenu;  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -rp "N" -l "Top Label";  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -rp "S" -l "Bottom Label";  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -l "Additional Label 1";  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -l "Additional Label 2";  
image;  
&nbsp;&nbsp;popupMenu;  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -rp "N" -l "Top Label";  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -rp "S" -l "Bottom Label";  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -l "Additional Label 1";  
&nbsp;&nbsp;&nbsp;&nbsp;menuItem -l "Additional Label 2";

image;  
...  
image;  
...  
image;  
...

...
