View Full Version : Maya Mac and formlayout / image

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")
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

Also, I did try using the -numberOfDivisions flag but it seemed to have no effect. Thanks in advance.

05-29-2007, 05:06 PM
hmm I took a look in you code but seen nothing unusual at the driveby..
But I've been trying around with that too. Here is my example that works here:
window kasgkfWin;
formLayout -w 300 -h 300 hbresavaForm;
shelfButton -w 100 -h 100 -marginWidth 0 -marginHeight 0
-image "test_n.bmp"
-highlightImage "test_h.bmp"
-selectionImage "test_p.bmp"
-command "print\"HUHU!!\\n\""
image -w 300 -h 300 -image "test_bg.bmp"
setParent ..;
formLayout -edit
-af owahButton top 99
-af owahButton left 99
-af qwdfqwfBG top 0
-af qwdfqwfBG left 0
window -e -w 300 -h 300 kasgkfWin;
showWindow kasgkfWin;The paths may not work but everything else..

CGTalk Moderation
05-29-2007, 05:06 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.