View Single Post
# 1 04-07-2012 , 12:45 AM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522

Did QT Beak Some Mel UI Formatting?

Pre QT I know you could set the text on the iconTextButton control to have different font styles like bold, italics etc and even change the alignment. Now you get the same centered plain text and even though it's not crucial it really fuqs with the readability of my UI. I'm working on this mini material lister and I would really want the shader name to be a text button that I can double click and have it switch out for a name field then switch back once I change the name and hit enter (and I've gotten that functionality going but right now the shader name is just a simple text control rather than the iconTextButton) I want the button text to be in bold so it's not visually competing with the shader type info below it and would like them both to be left aligned and hug the swatch, ugh I'm ranting. The test window in the second image shows the result from the code I'm attaching. Am I missing something?


Code:
{
        window -tlb 1;
        
        columnLayout -adj 1 -w 200 -h 300 -cal "left";
        
        iconTextButton -al "left" 
        -l "pSphere1" 
        -fn "boldLabelFont"
        -st "iconAndTextCentered";
        
        separator -hr 1 -st "in";
        
        text -l "pSphere1" -fn "boldLabelFont";
                
        showWindow;
                      
}

Attached Thumbnails
Attached Images

- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::