On Sun, 31 Dec 2006, Bernd Roesch wrote: > Hello Jens > > On 30.12.06, you wrote: > > > > in a LayoutHook. > > > > However, I also do have the feeling MUI requires a better way of > > achieving something like that. But until that happens I guess you really > > have to keep on using InitChange/ExitChange. > > in zune the MUIM_Group_ExitChange > > call this > > DoMethod(_win(obj), MUIM_Window_RecalcDisplay, (IPTR)obj); > > Maybe the guys who own MUI source can look on it if MUI do the same here > > in RecalcDisplay there is a routine that try to collect all objects in that > object to find new added objects.this cost speed.so if a developer know what > he want redraw it is > faster to tell direct. > > maybe Andreas help a DoMethod(current_obj, MUIM_Layout); > > at end when the correct group object is found this is called.maybe this can > call too direct on MUI ? > > > DoMethod(current_obj, MUIM_Layout); > DoShowMethod(current_obj); > MUI_Redraw(current_obj, MADF_DRAWOBJECT);
Never ever call internal MUI methods. While these methods do exist they are private. Nevertheless forcing recalc of display dimensions is expensive and should be avoided. 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/MUI/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/
