ajk48n
07-23-2003, 06:01 AM
If I have this code:
window;
columnLayout;
$but = `button -label "Label" -align "center" -w 100`;
showWindow;
Now if this is run:
button -edit -label "Label" -align "left" -w 100 $but;
the alignment doesn't change. If this is run:
button -edit -label "New Label" -align "right" -w 100 $but;
the alignmnet does change, because , I think, the button is forced to redaw the label, so then must re-evaluate the alignment. Is there anyway to force the button to redraw itself with the new alignmnet.
I know you could rename the label to something temporary, and then rename it back, but I was wondering if there was a more succint way to do it.
window;
columnLayout;
$but = `button -label "Label" -align "center" -w 100`;
showWindow;
Now if this is run:
button -edit -label "Label" -align "left" -w 100 $but;
the alignment doesn't change. If this is run:
button -edit -label "New Label" -align "right" -w 100 $but;
the alignmnet does change, because , I think, the button is forced to redaw the label, so then must re-evaluate the alignment. Is there anyway to force the button to redraw itself with the new alignmnet.
I know you could rename the label to something temporary, and then rename it back, but I was wondering if there was a more succint way to do it.
