----- Original Message ----- 
From: "Christian Rosentreter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 10, 2004 6:49 PM
Subject: [MUI] Re: Correct Custom Class Usage

> Maybe stupid question, but doesn't such check interfere with 
> "MUI Settings -> System -> When a program starts up... immediately 
> switch to iconified state."?

Hard question..

But this is not me who is asking for doing this :)

Window.mui/MUIA_Window_Open

NAME
MUIA_Window_Open -- (V4 ) [.SG], BOOL

FUNCTION
This little attribute can be used to open and close
a window. When opening a window, MUI does lots of
stuff to calculate sizes and positions of all
gadgets. Minimum and maximum window sizes will be
adjusted automatically.

When the minimum size of a window is too big to fit
on the screen, MUI tries to reduce font sizes and
does a new calculation. You should always design
your windows to fit on a 640*200 screen with
all fonts set to topaz/8.

When a window is closed (and you specified a
MUIA_Window_ID), MUI remembers its position
and size and uses these values during the next
opening.

After setting MUIA_Window_Open to TRUE, you should
test if MUI was able to open the window by getting
the attribute again. If you don't and if this was
the only window of your application, the user won't
be able to do any input and your application will
seem to hang.

EXAMPLE

set(window,MUIA_Window_Open,TRUE);
get(window,MUIA_Window_Open,&open);
if (!open)
{
MUI_Request(app,0,0,0,"Ok","Failed to open window.");
exit(20);
}

SEE ALSO
MUIA_Window_RootObject

Best Regards!

---
TrueArt http://www.trueart.pl



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/16uqlB/TM
--------------------------------------------------------------------~-> 

Visit http://www.amiga.dk/tumult for MUI-related
information, especially about MUI custom classes. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MUI/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to