Hi,
I try again to mimic MUI function in Reaction.
In MUI, you can start a program in iconified state using "set(app,MUIA_Application_Iconified,TRUE) ;".
With Reaction, Window seems to have to be opened before to be iconified. Therefore, you see the window a short time and it's iconified using "IDoMethod(win, WM_ICONIFY) ;"
I didn't find a Window.class parameter to start a window in iconified state.
Does it exist ?
Thank you (and sorry for all these newbies questions that I ask currently)
Must bepossible AOrganiser starts iconified....
/me goes off to rifle through my oldersrc code
....
after a quick scan I see the obvious bit, if you want to start iconified don't open the window, but I can't see where I add the icon, my program is a commodity though, perhaps that's handling it.
Does simply invoking WM_ICONIFY at startup rather WM_OPEN not work?
Thx (again ;) ) for your reply,
No, I tried to use ICONIFY before OPEN but it crashed (certainly because I added some objects after opening, as drag area).
My code was actually starting "hidden" rather than iconified, thus there was no icon.
I just modified it to start iconified and I can confirm that it is suffient to call WM_ICONIFY ob the WindowObject instead of WM_OPEN if you want to start iconified.
Your crash must be for some other reason. Perhaps you referenced the intuion window ptr but it was not valid as you hadn't opened the window yet?
Right, I added Gadgets to my window when iconified => freeze.
By adding them only when window is displayed works far better and starting with
window = (struct Window *)IDoMethod(win, WM_ICONIFY);
works fine.
Thank you