On Sat, 30 Dec 2006, Andreas Falkenhahn wrote: > > Hi, > > what method is suggested to force a complete refresh of a custom class from > within that class? > I want MUI to send a MADF_DRAWOBJECT message with RPTAG_DrawBounds set to the > full dimensions of my class.
MUI_Redraw(obj, MADF_DRAWOBJECT); ? > I figured out that the trick with MUIM_Group_InitChange/ExitChange works but > I wonder if there's > a nicer way because I'm not so sure if Init/ExitChange still works correctly > with MUI4. > > If I'd know the RPTAG_DrawBounds of my custom class, I could use > MADF_DRAWUPDATE > to do the refresh of course. If MUI sends a MADF_DRAWOBJECT and wants my > class to > completely redraw itself, does RPTAG_DrawBounds then equal to > > rect.MinX = _mleft(obj) > rect.MinY = _mtop(obj) > rect.MaxX = _mright(obj) > rect.MaxY = _mbottom(obj) ?? No. RPTAG_DrawBounds is a lowlevel intuition feature and tells size of damaged window layer. It is intended to optimize window refresh when layer is partially obscured by other window. If you want forced update and do full refresh you should set private flag before calling MUI_Redraw(obj, MADF_DRAWOBJECT); in your custom class. > If that would be the case, I could drop the MUIM_Group_InitChange/ExitChange > stuff > and simply use MADF_DRAWUPDATE. > > By the way, my custom class is in a scroll group. > > Any ideas? > > Greets, > > Andreas > -- > "Remember: It's nice to be important but it's more important to be nice!" > > > > > Visit http://www.amiga.dk/tumult for MUI-related > information, especially about MUI custom classes. > Yahoo! Groups Links > > > > -- www.morphos-team.net 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/
