On Sun, 31 Dec 2006, Andreas Falkenhahn wrote:

> On 31.12.2006 at 09:32 Ilkka Lehtoranta wrote:
> 
> >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.
> 
> That was my idea, too. But the problem is: I need to know the dimensions of
> my custom class in mDraw(). When MUI does a MADF_DRAWOBJECT it sets
> RPTAG_DrawBounds to the area that shall be refreshed. If I call 
> MADF_DRAWOBJECT
> with a private flag set, I need to obtain the _full_ dimensions of my custom 
> class
> in an other way because RPTAG_DrawBounds does not contain any valid
> rectangle. Is that possible?

Not at all. There is no direct relation with MUI and RPTAG_DrawBounds.

What is wrong with _mleft(), _mtop(), _mwidth() and _mheigth() macros? 
These are your custom class display dimensions after all.

Just use RPTAG_DrawBounds (if present) to optimize drawing.


  Ilkka



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/
 

Reply via email to