Jump to content

[mel] Tablayout E Backgroundcolor

Recommended Posts

Ciao a tutti :)

Ho un problema: non riesco a cambiare il backgroundColor di un tabLayout.

Non ottengo errori di parsing..semplicemente non funziona: lo sfondo del tablayout è del solito grigino predefinito. E' un bug di maya? Qualcuno conosce un workaround in MEL?

A titolo di esempio, riporto qualche riga di codice che dovrebbe creare tabLayout con sfondo bianco.

window -widthHeight 200 150;
string $form = `formLayout -bgc 1.0 1.0 1.0`;
string $tabs = `tabLayout -bgc 1.0 1.0 1.0 -innerMarginWidth 5 -innerMarginHeight 5`;
formLayout -edit
-bgc 1.0 0.0 0.0
-attachForm $tabs "top" 0
-attachForm $tabs "left" 0
-attachForm $tabs "bottom" 0
-attachForm $tabs "right" 0

string $child1 = `rowColumnLayout -bgc 1.0 0.0 1.0 -numberOfColumns 2`;
setParent ..;

string $child2 = `rowColumnLayout -numberOfColumns 2`;
setParent ..;

tabLayout -edit
-tabLabel $child1 "One"
-tabLabel $child2 "Two"

Alberto Sarullo

Edited by args
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...