PDA

View Full Version : Positioning Floating Windows via Mel


bjoern
08-04-2005, 03:57 PM
Hi :)

Is there a way to positioning and resizing floatingWindow's via Melscript?
Like in HTML, do positioning popups

mhovland
08-04-2005, 04:48 PM
To position a window, you use the -tlc (top left corner) flag when you create the window.

window -t "testWin" -tlc 250 250 -h 150 -w 150 testWin;

To reposition the window might be more difficult, you can try editing the position of the window by editing the -tlc flag, and resize the window by editing the -h and -w flags, after the window is created, but you may have to hide the window and reshow it. I haven't tried this.

But...there is always a "but" isn't there? This will be over-ridden if the preferences have the "Remember window size and positions" set to true. You can check this in Setting and Preferences.

bjoern
08-04-2005, 11:20 PM
thanks! I'll check this out

bjoern
08-04-2005, 11:23 PM
mhh, didn't worked.
window -t "GraphEditor" -tlc 250 250 -h 150 -w 150 GraphEditor;
can you tell what's wrong here? :)

YourDaftPunk
08-05-2005, 05:26 AM
Add the "-vis yes" argument to toggle its visibility:
window -t "GraphEditorVis" -vis yes -tlc 250 250 -h 150 -w 150 GraphEditorVis;

There is also a showWindow command apparently.

I've never created a window before, but it was in the documentation man! :)

mhovland
08-05-2005, 03:10 PM
DaftPunk is correct. Although I have never used the -vis flag on creation of the window.

My method is whenever I call the window command, to make sure I immediately add the showWindow command.

CGTalk Moderation
08-05-2005, 03:10 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.