kattkieru
05-26-2007, 04:26 AM
Hi all,
I'm on Maya PLE 7.0 if that makes a difference-- I'm having trouble getting the big background image I want in my formlayout to be behind everything else. I've tried putting it last (which is what's generally suggested), and I've tried putting it first, but essentially, the only time I see my buttons is if I put it last and then scroll up or down. When I do that the buttons are visible while scrolling, although the image vanishes.
I wonder if this is a mac issue? Most of the info on the topic seems to have vanished off the web, so I was hoping someone could help. Thanks in advance.
Here's my code:
scrollLayout -hst 0 mainscroll;
columnLayout maincol;
//------------------------------------------------------------
// form layout -- background goes last?
formLayout -w 280 -h 346 bodyPartForm;
symbolButton -w 16 -h 16
-i ($imagedir + "button_blue.xpm")
headButton;
popupMenu;
menuItem -l "Select Children";
menuItem -l "Key With Children";
image -w 280 -h 346 -i ($imagedir + "background.tga") background;
helpLine -h 20 cpHelpLine;
formLayout -e
-af headButton "top" 16
-af headButton "left" 16
-af background "top" 0
-af background "left" 0
-ac cpHelpLine "top" 0 bgImage
-af cpHelpLine "left" 0
-af cpHelpLine "right" 0
bodyPartForm;
Also, I did try using the -numberOfDivisions flag but it seemed to have no effect. Thanks in advance.
I'm on Maya PLE 7.0 if that makes a difference-- I'm having trouble getting the big background image I want in my formlayout to be behind everything else. I've tried putting it last (which is what's generally suggested), and I've tried putting it first, but essentially, the only time I see my buttons is if I put it last and then scroll up or down. When I do that the buttons are visible while scrolling, although the image vanishes.
I wonder if this is a mac issue? Most of the info on the topic seems to have vanished off the web, so I was hoping someone could help. Thanks in advance.
Here's my code:
scrollLayout -hst 0 mainscroll;
columnLayout maincol;
//------------------------------------------------------------
// form layout -- background goes last?
formLayout -w 280 -h 346 bodyPartForm;
symbolButton -w 16 -h 16
-i ($imagedir + "button_blue.xpm")
headButton;
popupMenu;
menuItem -l "Select Children";
menuItem -l "Key With Children";
image -w 280 -h 346 -i ($imagedir + "background.tga") background;
helpLine -h 20 cpHelpLine;
formLayout -e
-af headButton "top" 16
-af headButton "left" 16
-af background "top" 0
-af background "left" 0
-ac cpHelpLine "top" 0 bgImage
-af cpHelpLine "left" 0
-af cpHelpLine "right" 0
bodyPartForm;
Also, I did try using the -numberOfDivisions flag but it seemed to have no effect. Thanks in advance.
